mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[IMP] base_global_discount: add specific security group
This way, it will be easier to decide who can set discount or not. The current group scope is too broad. [UPD] Update base_global_discount.pot
This commit is contained in:
@@ -42,5 +42,6 @@
|
||||
name="Global Discounts"
|
||||
sequence="1"
|
||||
parent="base.menu_ir_property"
|
||||
groups="base_global_discount.group_global_discount"
|
||||
/>
|
||||
</odoo>
|
||||
|
||||
@@ -10,6 +10,14 @@
|
||||
<field
|
||||
name="customer_global_discount_ids"
|
||||
widget="many2many_tags"
|
||||
groups="base_global_discount.group_global_discount"
|
||||
attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="customer_global_discount_ids_readonly"
|
||||
string="Sale Global Discounts"
|
||||
widget="many2many_tags"
|
||||
groups="!base_global_discount.group_global_discount"
|
||||
attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
@@ -17,6 +25,15 @@
|
||||
<field
|
||||
name="supplier_global_discount_ids"
|
||||
widget="many2many_tags"
|
||||
groups="base_global_discount.group_global_discount"
|
||||
attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="supplier_global_discount_ids_readonly"
|
||||
string="Purchase Global Discounts"
|
||||
readonly="1"
|
||||
widget="many2many_tags"
|
||||
groups="!base_global_discount.group_global_discount"
|
||||
attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user