daily pastebin goal
17%
SHARE
TWEET

Record Rule Tryton

a guest Jun 14th, 2016 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <record model="ir.rule.group" id="rule_group_purchase_requisition">
  2.             <field name="model" search="[('model', '=', 'purchase.requisition')]"/>
  3.             <field name="global_p" eval="False"/>
  4.             <field name="default_p" eval="True"/>
  5.             <field name="perm_read" eval="True"/>
  6.             <field name="perm_create" eval="True"/>
  7.         </record>
  8.         <record model="ir.rule" id="rule_group_purchase_requisition_line1">
  9.              <field name="domain" eval="[]" pyson="1"/>
  10.             <field name="rule_group" ref="rule_group_purchase_requisition"/>
  11.         </record>
  12.  
  13.         <record model="ir.rule.group" id="rule_group_creator_purchase_requisition">
  14.             <field name="model" search="[('model', '=', 'purchase.requisition')]"/>
  15.             <field name="global_p" eval="False"/>
  16.             <field name="default_p" eval="True"/>
  17.             <field name="perm_write" eval="True"/>
  18.             <field name="perm_delete" eval="True"/>
  19.         </record>
  20.         <record model="ir.rule" id="rule_creator_purchase_requisition">
  21.             <field name="domain"
  22.                eval="[('create_uid', '=', Eval('user', {}).get('id', -1))]"
  23.                pyson="1"/>
  24.             <field name="rule_group" ref="rule_group_creator_purchase_requisition"/>
  25.         </record>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top