Skip to content

[ADD] website_sale_background_post: defer eCommerce invoice posting t…#462

Open
maq-adhoc wants to merge 1 commit into
ingadhoc:18.0from
adhoc-dev:18.0-H-85958-MAQ
Open

[ADD] website_sale_background_post: defer eCommerce invoice posting t…#462
maq-adhoc wants to merge 1 commit into
ingadhoc:18.0from
adhoc-dev:18.0-H-85958-MAQ

Conversation

@maq-adhoc

Copy link
Copy Markdown
Contributor

…o background

New module that prevents ARCA errors from blocking cart confirmation by queueing website sale invoices for background validation instead of posting synchronously.

Depends on account_background_post + website_sale. Key overrides:

  • payment.transaction: to_defer computed field + _post_process injects force_background_post context for qualifying transactions
  • account.move.action_post: defers out_invoice moves (sets background_post=True), passes payment moves through normally
  • account.move.line._check_amls_exigibility_for_reconciliation: allows reconciling draft invoice lines with the payment within the same transaction

@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@maq-adhoc maq-adhoc force-pushed the 18.0-H-85958-MAQ branch 2 times, most recently from 91dff90 to baa0ad5 Compare June 22, 2026 19:44
Comment thread website_sale_background_post/models/account_move.py Outdated
Comment thread website_sale_background_post/models/payment_transaction.py
Comment thread website_sale_background_post/models/account_move.py Outdated
…o background

New module that prevents ARCA errors from blocking cart confirmation by queueing
website sale invoices for background validation instead of posting synchronously.

Depends on account_background_post + website_sale. Key overrides:
- payment.transaction: to_defer computed field + _post_process injects
  force_background_post context for qualifying transactions
- account.move.action_post: defers out_invoice moves (sets background_post=True),
  passes payment moves through normally
- account.move.line._check_amls_exigibility_for_reconciliation: allows reconciling
  draft invoice lines with the payment within the same transaction

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants