mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-25 06:12:00 +02:00
Initial commit: Mrp packages
This commit is contained in:
commit
50d736b3bd
739 changed files with 538193 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class StockWarnInsufficientQtyUnbuild(models.TransientModel):
|
||||
_name = 'stock.warn.insufficient.qty.unbuild'
|
||||
_inherit = 'stock.warn.insufficient.qty'
|
||||
_description = 'Warn Insufficient Unbuild Quantity'
|
||||
|
||||
unbuild_id = fields.Many2one('mrp.unbuild', 'Unbuild')
|
||||
|
||||
def _get_reference_document_company_id(self):
|
||||
return self.unbuild_id.company_id
|
||||
|
||||
def action_done(self):
|
||||
self.ensure_one()
|
||||
return self.unbuild_id.action_unbuild()
|
||||
Loading…
Add table
Add a link
Reference in a new issue