[IMP] add group to manage rma groups

This commit is contained in:
aheficent
2018-08-03 11:24:58 +02:00
committed by ahenriquez
parent 115b2df946
commit 6d67fe838d
4 changed files with 15 additions and 2 deletions

View File

@@ -35,6 +35,11 @@
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
<record id="group_rma_groups" model="res.groups">
<field name="name">RMA Groups</field>
<field name="category_id" ref="module_category_rma"/>
</record>
<record id="stock.group_stock_manager" model="res.groups">
<field name="implied_ids" eval="[(4, ref('group_rma_manager'))]"/>
</record>

View File

@@ -277,14 +277,14 @@
id="menu_rma_act_customer"
sequence="50"
parent="menu_customer_rma"
groups="rma.group_rma_customer_user"
groups="rma.group_rma_groups"
action="action_rma_customer"/>
<menuitem
id="menu_rma_act_supplier"
sequence="50"
parent="menu_supplier_rma"
groups="rma.group_rma_supplier_user"
groups="rma.group_rma_groups"
action="action_rma_supplier"/>
<menuitem id="menu_rma_config"

View File

@@ -14,3 +14,10 @@ class StockConfigSettings(models.TransientModel):
'address')
], "Addresses",
implied_group='rma.group_rma_delivery_invoice_address')
group_rma_lines = fields.Selection([
(0, "Do not group RMA lines"),
(1, 'Group RMA lines in one RMA group')
], "Grouping",
implied_group='rma.group_rma_groups',
)

View File

@@ -13,6 +13,7 @@
<div class="content-group">
<div class="mt16">
<field name="group_rma_delivery_address" class="o_light_label" widget="radio"/>
<field name="group_rma_lines" widget="radio"/>
</div>
</div>
</div>