[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:
Swapnesh Shah
2019-11-25 13:16:38 +00:00
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']