修复数据同步问题

This commit is contained in:
mgw
2024-01-26 14:18:10 +08:00
parent 1af08763ea
commit 4ee4b28389
3 changed files with 8 additions and 8 deletions

View File

@@ -314,12 +314,12 @@ class sfProductionProcess(models.Model):
brand = self.env['sf.production.process'].search(
[("code", '=', item['code'])])
if brand:
brand.name = item['name'],
brand.name = item['name']
brand.category_id = self.env['sf.production.process.category'].search(
[("code", '=', item['category_code'])]).id,
brand.code = item['code'],
brand.remark = item['remark'],
brand.active = item['active'],
[("code", '=', item['category_code'])]).id
brand.code = item['code']
brand.remark = item['remark']
brand.active = item['active']
brand.remark = item['remark']
production_process = self.search([("code", '=', item['code'])])
category = self.env['sf.production.process.category'].search(