From 2f40301c44ea2a1cb6ad01e1a3f27550239e73ac Mon Sep 17 00:00:00 2001 From: Arnaud Baes Date: Thu, 12 Sep 2019 14:19:46 +0000 Subject: [PATCH] [FIX] repair: Missing method implementation in wizard This commit add the implementation of `_get_reference_document_company_id` for the `stock.warn.insufficient.qty.repair` wizard. closes odoo/odoo#36792 Taskid: BugsLogistics Signed-off-by: Simon Lejeune (sle) --- addons/repair/wizard/stock_warn_insufficient_qty.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/repair/wizard/stock_warn_insufficient_qty.py b/addons/repair/wizard/stock_warn_insufficient_qty.py index f4a53558200a6..73f63fa05403e 100644 --- a/addons/repair/wizard/stock_warn_insufficient_qty.py +++ b/addons/repair/wizard/stock_warn_insufficient_qty.py @@ -10,6 +10,9 @@ class StockWarnInsufficientQtyRepair(models.TransientModel): repair_id = fields.Many2one('repair.order', string='Repair') + def _get_reference_document_company_id(self): + return self.repair_id.company_id + def action_done(self): self.ensure_one() return self.repair_id.action_repair_confirm()