Commits

Raimon Esteve (Zikzakmedia) committed a945b91

Contract Active Window domain (tabs)

Comments (0)

Files changed (1)

             <field name="group" ref="group_contract_admin"/>
         </record>
 
+        <record model="ir.action.act_window.domain" id="act_contract_form_domain_draft">
+            <field name="name">Draft</field>
+            <field name="sequence" eval="10"/>
+            <field name="domain">[('state', '=', 'draft')]</field>
+            <field name="act_window" ref="act_contract_contract"/>
+        </record>
+        <record model="ir.action.act_window.domain" id="act_contract_form_domain_active">
+            <field name="name">Active</field>
+            <field name="sequence" eval="20"/>
+            <field name="domain">[('state', '=', 'active')]</field>
+            <field name="act_window" ref="act_contract_contract"/>
+        </record>
+        <record model="ir.action.act_window.domain" id="act_contract_form_domain_hold">
+            <field name="name">Hold</field>
+            <field name="sequence" eval="30"/>
+            <field name="domain">[('state', '=', 'hold')]</field>
+            <field name="act_window" ref="act_contract_contract"/>
+        </record>
+        <record model="ir.action.act_window.domain" id="act_contract_form_domain_cancel">
+            <field name="name">Cancel</field>
+            <field name="sequence" eval="40"/>
+            <field name="domain">[('state', '=', 'cancel')]</field>
+            <field name="act_window" ref="act_contract_contract"/>
+        </record>
+        <record model="ir.action.act_window.domain" id="act_contract_form_domain_all">
+            <field name="name">All</field>
+            <field name="sequence" eval="9999"/>
+            <field name="domain"></field>
+            <field name="act_window" ref="act_contract_contract"/>
+        </record>
+
         <record model="ir.model.access" id="access_contract_contract">
             <field name="model" search="[('model', '=', 'contract.contract')]"/>
             <field name="perm_read" eval="True"/>