| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="repair_line_subcontracting_rule" model="ir.rule"> |
| 5 |
<field name="name">Repair Line Subcontractor</field> |
| 6 |
<field name="model_id" ref="repair.model_stock_move"/> |
| 7 |
<field name="domain_force">[ |
| 8 |
'|', |
| 9 |
'|', |
| 10 |
('product_id', 'in', user.partner_id.bom_ids.product_id.ids), |
| 11 |
('product_id', 'in', user.partner_id.bom_ids.product_tmpl_id.product_variant_ids.ids), |
| 12 |
('product_id', 'in', user.partner_id.bom_ids.bom_line_ids.product_id.ids), |
| 13 |
]</field> |
| 14 |
<field name="groups" eval="[(4, ref('base.group_portal'))]"/> |
| 15 |
</record> |
| 16 |
|
| 17 |
</odoo> |