[IMP] stock_account: hide the create and edit button on product valuation.
TASK-ID: 1838954
This commit is contained in:
committed by
Pierre Masereel
parent
8a81c6d0a4
commit
1e5096a002
@@ -98,7 +98,7 @@
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_id" ref="view_stock_product_tree2"/>
|
||||
<field name="domain">[('type', '=', 'product'), ('qty_available', '!=', 0)]</field>
|
||||
<field name="context">{'company_owned': True}</field>
|
||||
<field name="context">{'company_owned': True, 'create': False, 'edit' : False}</field>
|
||||
<field name="search_view_id" ref="view_inventory_valuation_search"/>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
|
||||
@@ -25,7 +25,7 @@ class StockQuantityHistory(models.TransientModel):
|
||||
'name': _('Inventory Valuation'),
|
||||
'res_model': 'product.product',
|
||||
'domain': "[('type', '=', 'product'), ('qty_available', '!=', 0)]",
|
||||
'context': dict(self.env.context, to_date=self.date, company_owned=True),
|
||||
'context': dict(self.env.context, to_date=self.date, company_owned=True, create=False, edit=False),
|
||||
'search_view_id': search_view_id
|
||||
}
|
||||
return action
|
||||
|
||||
Reference in New Issue
Block a user