security.xml 1.1 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data noupdate="1">
  4. <record model="res.groups" id="group_restrict_prices">
  5. <field name="name">Restrict Prices</field>
  6. </record>
  7. <record id="restrict_price_read_only_payment_term" model="ir.rule">
  8. <field name="name">Restrict Price Read Only on Payment Term</field>
  9. <field name="model_id" ref="account.model_account_payment_term" />
  10. <field name="domain_force">[('name', '=', False)]</field>
  11. <field name="groups" eval="[(4, ref('price_security.group_restrict_prices'))]"/>
  12. <field name="perm_read" eval="False"/>
  13. </record>
  14. <record id="restrict_price_read_only_pricelist" model="ir.rule">
  15. <field name="name">Restrict Price Read Only on Pricelist</field>
  16. <field name="model_id" ref="product.model_product_pricelist" />
  17. <field name="domain_force">[('name', '=', False)]</field>
  18. <field name="groups" eval="[(4, ref('price_security.group_restrict_prices'))]"/>
  19. <field name="perm_read" eval="False"/>
  20. </record>
  21. </data>
  22. </openerp>