Add menu entry for promotion coupon numbers

The creation of coupon is disable on the form because creating a coupon may
change the criteria to apply a promotion without the user notices it.

Closes #13736
This commit is contained in:
Cédric Krier
2024-12-05 21:05:50 +01:00
parent 8c3345db17
commit 73d210c362
3 changed files with 22 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add menu entry for coupon numbers
* Remove name on coupon
Version 7.4.0 - 2024-11-04
+20
View File
@@ -41,6 +41,26 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">coupon_number_list</field>
</record>
<record model="ir.action.act_window" id="act_promotion_coupon_number_form">
<field name="name">Coupon Numbers</field>
<field name="res_model">sale.promotion.coupon.number</field>
</record>
<record model="ir.action.act_window.view" id="act_promotion_coupon_number_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="coupon_number_view_list"/>
<field name="act_window" ref="act_promotion_coupon_number_form"/>
</record>
<record model="ir.action.act_window.view" id="act_promotion_coupon_number_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="coupon_number_view_form"/>
<field name="act_window" ref="act_promotion_coupon_number_form"/>
</record>
<menuitem
parent="sale.menu_configuration"
action="act_promotion_coupon_number_form"
sequence="30"
id="menu_promotion_coupon_number"/>
<record model="ir.rule.group" id="rule_group_coupon_number_companies">
<field name="name">User in companies</field>
<field name="model">sale.promotion.coupon.number</field>
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<form>
<label name="coupon"/>
<field name="coupon"/>
<field name="coupon" create="0"/>
<label name="company"/>
<field name="company"/>