mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] add group to manage rma groups
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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',
|
||||
)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user