Skip to content
Snippets Groups Projects
Commit d260dddc authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

[FIX] sale_coupon: prevent program w/o company


The company is used to compute currency of:

- discount_fixed_amount
- discount_max_amount
- rule_minimum_amount

If currently we don't set a company, we have an error when using the
company.

opw-2458950

closes odoo/odoo#66210

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 74e18819
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
<field name="rule_minimum_amount" widget='monetary' options="{'currency_field': 'currency_id'}"/>
<field name="rule_minimum_amount_tax_inclusion" required="1"/>
</div>
<field name="company_id" placeholder="Select company" groups="base.group_multi_company"></field>
<field name="company_id" placeholder="Select company" groups="base.group_multi_company" required="1"></field>
</group>
<group name="validity" string="Validity"/>
</group>
......
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