details:   https://code.tryton.org/tryton/commit/f737c0027c66
branch:    default
user:      Cédric Krier <[email protected]>
date:      Fri Jan 09 17:10:58 2026 +0100
description:
        Add optionally gift card boolean to product list
diffstat:

 modules/sale_gift_card/product.xml            |  6 ++++++
 modules/sale_gift_card/view/template_list.xml |  8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r 09b334c157f7 -r f737c0027c66 modules/sale_gift_card/product.xml
--- a/modules/sale_gift_card/product.xml        Thu Jan 08 12:11:00 2026 +0100
+++ b/modules/sale_gift_card/product.xml        Fri Jan 09 17:10:58 2026 +0100
@@ -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"/>
diff -r 09b334c157f7 -r f737c0027c66 
modules/sale_gift_card/view/template_list.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/sale_gift_card/view/template_list.xml     Fri Jan 09 17:10:58 
2026 +0100
@@ -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>

Reply via email to