合并企业版代码(未测试,先提交到测试分支)
This commit is contained in:
4
mrp_workorder_expiry/models/__init__.py
Normal file
4
mrp_workorder_expiry/models/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import quality
|
||||
10
mrp_workorder_expiry/models/quality.py
Normal file
10
mrp_workorder_expiry/models/quality.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class QualityCheck(models.Model):
|
||||
_inherit = 'quality.check'
|
||||
|
||||
is_expired = fields.Boolean(related='lot_id.product_expiry_alert')
|
||||
Reference in New Issue
Block a user