Skip to content
Snippets Groups Projects
Commit ffe58a56 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] purchase: Saving PO with a foreign currency


Steps to reproduce the bug:
- Create a company C with currency = USD
- Create a vendor V with a supplier currency = EUR
- Create a PO for V with one line, the default currency is EUR
- Save

Bug:

The currency of the PO was USD when saving because the field currency is
in readonly when the state is draft.

opw:2035640

closes odoo/odoo#35144

Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
parent ceeb5b51
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@
placeholder="Name, TIN, Email, or Reference"
/>
<field name="partner_ref"/>
<field name="currency_id" groups="base.group_multi_currency"/>
<field name="currency_id" groups="base.group_multi_currency" force_save="1"/>
</group>
<group>
<field name="date_order"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment