[FIX] sale: enable demo SO's currency
Needed for demo flow of payment links. closes odoo/odoo#77874 X-original-commit: 7b51d4e0ae5a9a10cfd548bc6307dac180be280f Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by: Valentin Chevalier <chevalierv@users.noreply.github.com>
This commit is contained in:
committed by
Antoine Vandevenne (anv)
parent
1ded4e3689
commit
92d4987acb
@@ -2,6 +2,15 @@
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
|
||||
<!-- Enable EUR currency since it's the currency on the company, pricelist and Sale Orders
|
||||
|
||||
If the currency is not enabled, you cannot pay the demo SO's with a payment link bc the currency
|
||||
is disabled.
|
||||
-->
|
||||
<function model="res.currency" name="action_unarchive">
|
||||
<value model="res.currency" search="[('id', '=', obj().env.ref('product.list0').currency_id.id), ('active', '=', False)]"/>
|
||||
</function>
|
||||
|
||||
<!-- We want to activate pay and sign by default for easier demoing. -->
|
||||
<record id="base.main_company" model="res.company">
|
||||
<field name="portal_confirmation_pay" eval="True"/>
|
||||
|
||||
Reference in New Issue
Block a user