mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
22 lines
859 B
XML
22 lines
859 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!-- Copyright 2017-19 ForgeFlow S.L.
|
|
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
|
|
<odoo>
|
|
<data noupdate="0">
|
|
|
|
<record id="ir_rule_rma_allowed_operating_units" model="ir.rule">
|
|
<field name="model_id" ref="rma.model_rma_order" />
|
|
<field
|
|
name="domain_force"
|
|
>['|',('operating_unit_id','=',False),('operating_unit_id','in',[g.id for g in user.operating_unit_ids])]</field>
|
|
<field name="name">RMA from allowed operating units</field>
|
|
<field name="global" eval="True" />
|
|
<field eval="0" name="perm_unlink" />
|
|
<field eval="0" name="perm_write" />
|
|
<field eval="1" name="perm_read" />
|
|
<field eval="0" name="perm_create" />
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|