[IMP] product_margin: remove create and edit from views
Create and Edit Buttons are not needed on views being opened from the Product Margin report Fixes odoo/odoo#39069 closes odoo/odoo#39072 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
committed by
Martin Trigaux
parent
d49e6b91a7
commit
df175f7716
@@ -20,7 +20,7 @@ class ProductMargin(models.TransientModel):
|
||||
|
||||
def action_open_window(self):
|
||||
self.ensure_one()
|
||||
context = dict(self.env.context or {})
|
||||
context = dict(self.env.context, create=False, edit=False)
|
||||
|
||||
def ref(module, xml_id):
|
||||
proxy = self.env['ir.model.data']
|
||||
|
||||
Reference in New Issue
Block a user