OCA / account-invoicing

Odoo Invoicing Extension Addons
GNU Affero General Public License v3.0
237 stars 683 forks source link

The Constraint will be triggered on duplicating the invoice, if the pricelist is not the partner_id -> pricelist_id. #1775

Open agent-z28 opened 1 month ago

agent-z28 commented 1 month ago

When we assign a custom pricelist, with a diffrent currency, the invoice cannot be duplicated.

"Pricelist and Invoice need to use the same currency."

https://github.com/OCA/account-invoicing/blob/4be442bf1284c76472ddb1750f7a4b9b3d0699ae/account_invoice_pricelist/models/account_move.py#L35

I think the pricelist_id should be copy=True, but the pricelist is computed..

agent-z28 commented 1 month ago

@bizzappdev