changeset a2470cba4040 in modules/purchase:default
details: https://hg.tryton.org/modules/purchase?cmd=changeset;node=a2470cba4040
description:
        Add window tab for exception states

        issue9149
        review293541002
diffstat:

 CHANGELOG    |   2 ++
 purchase.xml |  10 ++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r 85d62f327b90 -r a2470cba4040 CHANGELOG
--- a/CHANGELOG Tue May 19 19:01:46 2020 +0200
+++ b/CHANGELOG Wed May 20 00:15:36 2020 +0200
@@ -1,3 +1,5 @@
+* Add window tab for exception states
+
 Version 5.6.0 - 2020-05-04
 * Bug fixes (see mercurial logs for details)
 * Add actual quantity on line
diff -r 85d62f327b90 -r a2470cba4040 purchase.xml
--- a/purchase.xml      Tue May 19 19:01:46 2020 +0200
+++ b/purchase.xml      Wed May 20 00:15:36 2020 +0200
@@ -153,6 +153,16 @@
             <field name="act_window" ref="act_purchase_form"/>
         </record>
         <record model="ir.action.act_window.domain"
+            id="act_purchase_form_domain_exception">
+            <field name="name">Exception</field>
+            <field name="sequence" eval="50"/>
+            <field name="domain"
+                eval="['OR', ('invoice_state', '=', 'exception'), 
('shipment_state', '=', 'exception')]"
+                pyson="1"/>
+            <field name="count" eval="True"/>
+            <field name="act_window" ref="act_purchase_form"/>
+        </record>
+        <record model="ir.action.act_window.domain"
             id="act_purchase_form_domain_all">
             <field name="name">All</field>
             <field name="sequence" eval="9999"/>

Reply via email to