Skip to content

[18.0][FIX] sale_automatic_workflow: company context when registering invoice payment#4265

Open
JordiMForgeFlow wants to merge 1 commit intoOCA:18.0from
ForgeFlow:18.0-fix-sale_automatic_workflow-payment_company_ctx
Open

[18.0][FIX] sale_automatic_workflow: company context when registering invoice payment#4265
JordiMForgeFlow wants to merge 1 commit intoOCA:18.0from
ForgeFlow:18.0-fix-sale_automatic_workflow-payment_company_ctx

Conversation

@JordiMForgeFlow
Copy link
Copy Markdown
Contributor

No description provided.

@JordiMForgeFlow JordiMForgeFlow force-pushed the 18.0-fix-sale_automatic_workflow-payment_company_ctx branch from 97ee77c to 765c8ff Compare April 9, 2026 06:35
@JordiMForgeFlow JordiMForgeFlow changed the title [18.0][IMP] sale_automatic_workflow: company context when registering invoice payment [18.0][FIX] sale_automatic_workflow: company context when registering invoice payment Apr 9, 2026
@rousseldenis rousseldenis added this to the 18.0 milestone Apr 9, 2026
for invoice in invoices:
with savepoint(self.env.cr):
self._register_payment_invoice(invoice)
self._register_payment_invoice(invoice.with_company(invoice.company_id))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JordiMForgeFlow Why doing it twice and not only once in _register_payment_invoice()?

@JordiMForgeFlow JordiMForgeFlow force-pushed the 18.0-fix-sale_automatic_workflow-payment_company_ctx branch from 765c8ff to 17dd4bc Compare April 9, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants