mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-27 02:51:59 +02:00
19.0 vanilla
This commit is contained in:
parent
accf5918df
commit
6e65e8c877
688 changed files with 225434 additions and 199401 deletions
|
|
@ -4,13 +4,9 @@
|
|||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class Company(models.Model):
|
||||
class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
manufacturing_lead = fields.Float(
|
||||
'Manufacturing Lead Time', default=0.0, required=True,
|
||||
help="Security days for each manufacturing operation.")
|
||||
|
||||
def _create_unbuild_sequence(self):
|
||||
unbuild_vals = []
|
||||
for company in self:
|
||||
|
|
@ -34,10 +30,5 @@ class Company(models.Model):
|
|||
company_todo_sequence._create_unbuild_sequence()
|
||||
|
||||
def _create_per_company_sequences(self):
|
||||
super(Company, self)._create_per_company_sequences()
|
||||
super()._create_per_company_sequences()
|
||||
self._create_unbuild_sequence()
|
||||
|
||||
def _get_security_by_rule_action(self):
|
||||
res = super()._get_security_by_rule_action()
|
||||
res['manufacture'] = self.manufacturing_lead
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue