Skip to content

Commit

Permalink
[FIX] repair: Missing method implementation in wizard
Browse files Browse the repository at this point in the history
This commit add the implementation of `_get_reference_document_company_id`
for the `stock.warn.insufficient.qty.repair` wizard.

closes odoo#36792

Taskid: BugsLogistics
Signed-off-by: Simon Lejeune (sle) <[email protected]>
  • Loading branch information
arbaes committed Sep 12, 2019
1 parent 197474e commit 2f40301
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/repair/wizard/stock_warn_insufficient_qty.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 2f40301

Please sign in to comment.