Display coupons as form on promotion

Closes #13738
This commit is contained in:
Cédric Krier
2024-12-05 20:27:29 +01:00
parent c7acd24333
commit 8c3345db17
2 changed files with 10 additions and 7 deletions
@@ -33,10 +33,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="quantity"/>
<label name="unit"/>
<field name="unit"/>
<newline/>
<group id="categories_products" col="-1" colspan="6" yexpand="1">
<field name="categories"/>
<field name="products" view_ids="product.product_view_tree_simple"/>
</group>
<notebook colspan="6">
<page id="products" string="Products">
<field name="categories" colspan="2"/>
<field name="products" colspan="2" view_ids="product.product_view_tree_simple"/>
</page>
</notebook>
</form>
@@ -2,7 +2,9 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='products']" position="after">
<field name="coupons"/>
<xpath expr="//page[@id='products']" position="after">
<page name="coupons">
<field name="coupons" mode="form,tree"/>
</page>
</xpath>
</data>