Add optionally gift card boolean to product list

This commit is contained in:
Cédric Krier
2026-01-09 17:10:58 +01:00
parent 6b672742de
commit a3eb5e234e
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -3,6 +3,12 @@
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="template_view_list">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_tree"/>
<field name="name">template_list</field>
</record>
<record model="ir.ui.view" id="template_view_form">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_form"/>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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="/tree/field[@name='type']" position="after">
<field name="gift_card" optional="1"/>
</xpath>
</data>