更新工艺外协流程的报错问题

This commit is contained in:
liaodanlong
2025-04-17 16:32:18 +08:00
parent 1b22d02700
commit 3fb2890bf1
4 changed files with 40 additions and 9 deletions

View File

@@ -7,6 +7,8 @@ from odoo.tools import str2bool
class SfProductionProcessParameter(models.Model):
_inherit = 'sf.production.process.parameter'
@api.model
def create(self, vals):
if vals.get('code', '/') == '/' or vals.get('code', '/') is False: