mrp_subcontracting_account_security.xml 905 B

12345678910111213141516171819
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.rule" id="analytic_accout_subcontractor_rule">
  4. <field name="name">Analytic Account Subcontractor</field>
  5. <field name="model_id" ref="mrp_account.model_account_analytic_account"/>
  6. <field name="domain_force">[('bom_ids', 'in', user.partner_id.commercial_partner_id.bom_ids.ids)]</field>
  7. <field name="groups" eval="[(4, ref('base.group_portal'))]"/>
  8. </record>
  9. <record model="ir.rule" id="analytic_accout_line_subcontractor_rule">
  10. <field name="name">Analytic Account Line Subcontractor</field>
  11. <field name="model_id" ref="mrp_account.model_account_analytic_line"/>
  12. <field name="domain_force">[('account_id.bom_ids', 'in', user.partner_id.commercial_partner_id.bom_ids.ids)]</field>
  13. <field name="groups" eval="[(4, ref('base.group_portal'))]"/>
  14. </record>
  15. </odoo>