[FIX] loyalty: invalid program field when specifying rules/rewards on new programs

Before this PR, users encountered an issue when attempting to add rules
to Discount and Loyalty programs. An undesired validation message would surface,
preventing them from saving their changes.

In this PR, the extraneous validation has been eliminated, enabling users to
successfully save and update their existing rules and rewards.

Task-3487478

closes odoo/odoo#134261

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
nikj-odoo
2023-10-23 20:07:15 +00:00
parent dde1eb57c7
commit bcd9f83eef
2 changed files with 2 additions and 2 deletions
@@ -67,7 +67,7 @@
<field name="model">loyalty.reward</field>
<field name="arch" type="xml">
<kanban>
<field name="program_id"/>
<field name="program_id" invisible="1"/>
<field name="company_id"/>
<field name="currency_id"/>
<field name="description"/>
+1 -1
View File
@@ -51,7 +51,7 @@
<field name="model">loyalty.rule</field>
<field name="arch" type="xml">
<kanban>
<field name="program_id"/>
<field name="program_id" invisible="1"/>
<field name="company_id"/>
<field name="currency_id"/>
<field name="product_domain"/>