Skip to content

[18.0][IMP] Add the support for synchronization of other fields from PO lines to supplierinfo, like discount (from module purchase_discount) from #2685#3063

Open
sergioM-S73 wants to merge 1 commit into
OCA:18.0from
Studio73:18.0-mig-pr-2685
Open

[18.0][IMP] Add the support for synchronization of other fields from PO lines to supplierinfo, like discount (from module purchase_discount) from #2685#3063
sergioM-S73 wants to merge 1 commit into
OCA:18.0from
Studio73:18.0-mig-pr-2685

Conversation

@sergioM-S73
Copy link
Copy Markdown

This PR is a forward-port of #2685 from v16 to v18.0

The original commits have been squashed into a single commit to maintain a clean history. The code has also been adapted to work with the Odoo 18.0 API and the recent structural changes of the module in this version.

Original PR: #2685

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @ernestotejeda,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:18.0 mod:purchase_order_supplierinfo_update Module purchase_order_supplierinfo_update labels May 14, 2026
Copy link
Copy Markdown
Contributor

@Reyes4711-S73 Reyes4711-S73 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown

@pablo-cort-s73 pablo-cort-s73 left a comment

Choose a reason for hiding this comment

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

LGTM

@sergioM-S73 sergioM-S73 force-pushed the 18.0-mig-pr-2685 branch 3 times, most recently from 07bcc5f to 5f83706 Compare May 14, 2026 10:02
Copy link
Copy Markdown
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

nitpicking inline.
otherwise, LGTM. Thanks for the forward port !

Comment on lines +81 to +85
triple_discount = "triple.discount.mixin" in self.env
sync_fields = ["discount"]
if triple_discount:
sync_fields += ["discount1", "discount2", "discount3"]
return sync_fields
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.

Suggested change
triple_discount = "triple.discount.mixin" in self.env
sync_fields = ["discount"]
if triple_discount:
sync_fields += ["discount1", "discount2", "discount3"]
return sync_fields
sync_fields = ["discount"]
if "triple.discount.mixin" in self.env:
sync_fields += ["discount1", "discount2", "discount3"]
return sync_fields

…PO lines to supplierinfo, like discount (from module purchase_discount) from OCA#2685
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants