forked from OCA/operating-unit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] purchase_operating_unit: black, isort, prettier
- Loading branch information
1 parent
aeb13ef
commit 78c8444
Showing
9 changed files
with
266 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!--© 2015-17 Eficent Business and IT Consulting Services S.L.--> | ||
<!-- - Jordi Ballester Alomar--> | ||
<!--© 2015-17 Serpent Consulting Services Pvt. Ltd. - Sudhir Arya--> | ||
<!--License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).--> | ||
<odoo> | ||
|
||
<record id="purchase.purchase_order_1" model="purchase.order"> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit"/> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" /> | ||
</record> | ||
|
||
<record id="purchase.purchase_order_2" model="purchase.order"> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit"/> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" /> | ||
</record> | ||
|
||
<record id="purchase.purchase_order_3" model="purchase.order"> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit"/> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" /> | ||
</record> | ||
|
||
<record id="purchase.purchase_order_4" model="purchase.order"> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit"/> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" /> | ||
</record> | ||
|
||
<record id="purchase.purchase_order_5" model="purchase.order"> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit"/> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" /> | ||
</record> | ||
|
||
<record id="purchase.purchase_order_6" model="purchase.order"> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit"/> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" /> | ||
</record> | ||
|
||
<record id="purchase.purchase_order_7" model="purchase.order"> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit"/> | ||
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!--© 2015-17 Eficent Business and IT Consulting Services S.L.--> | ||
<!-- - Jordi Ballester Alomar--> | ||
<!--© 2015-17 Serpent Consulting Services Pvt. Ltd. - Sudhir Arya--> | ||
<!--License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).--> | ||
<odoo noupdate="1"> | ||
|
||
<record id="ir_rule_purchase_order_allowed_operating_units" model="ir.rule"> | ||
<field name="model_id" ref="purchase.model_purchase_order"/> | ||
<field name="domain_force">['|',('operating_unit_id','=',False),('operating_unit_id','in', user.operating_unit_ids.ids)]</field> | ||
<field name="model_id" ref="purchase.model_purchase_order" /> | ||
<field | ||
name="domain_force" | ||
>['|',('operating_unit_id','=',False),('operating_unit_id','in', user.operating_unit_ids.ids)]</field> | ||
<field name="name">PO's 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"/> | ||
<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> | ||
|
||
<record id="ir_rule_purchase_order_line_allowed_operating_units" model="ir.rule"> | ||
<field name="model_id" ref="purchase.model_purchase_order_line"/> | ||
<field name="domain_force">['|',('operating_unit_id','=',False),('operating_unit_id','in', user.operating_unit_ids.ids)]</field> | ||
<field name="model_id" ref="purchase.model_purchase_order_line" /> | ||
<field | ||
name="domain_force" | ||
>['|',('operating_unit_id','=',False),('operating_unit_id','in', user.operating_unit_ids.ids)]</field> | ||
<field name="name">PO lines 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"/> | ||
<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> | ||
|
||
</odoo> |
Oops, something went wrong.