diff options
| author | Arnaud Baes <arb@odoo.com> | 2019-09-12 14:19:46 +0000 |
|---|---|---|
| committer | Arnaud Baes <arb@odoo.com> | 2019-09-12 14:19:46 +0000 |
| commit | 2f40301c44ea2a1cb6ad01e1a3f27550239e73ac (patch) | |
| tree | 111fb332f3594789807974ef04baf58fc848ff86 /addons | |
| parent | 197474e5b9ad43ab2d587a98136a1a809ce9a2e7 (diff) | |
[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) <sle@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/repair/wizard/stock_warn_insufficient_qty.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/repair/wizard/stock_warn_insufficient_qty.py b/addons/repair/wizard/stock_warn_insufficient_qty.py index f4a53558200..73f63fa0540 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() |
