解决bug
This commit is contained in:
@@ -1065,8 +1065,10 @@ class sfProductionProcessParameter(models.Model):
|
|||||||
r = r.json()
|
r = r.json()
|
||||||
result = json.loads(r['result'])
|
result = json.loads(r['result'])
|
||||||
if result['status'] == 1:
|
if result['status'] == 1:
|
||||||
|
_logger.info('result:%s' % result)
|
||||||
for item in result['mrs_production_process_parameter_all_list']:
|
for item in result['mrs_production_process_parameter_all_list']:
|
||||||
if item:
|
if item:
|
||||||
|
_logger.info('create可选参数:%s' % item)
|
||||||
brand = self.env['sf.production.process.parameter'].search(
|
brand = self.env['sf.production.process.parameter'].search(
|
||||||
[("code", '=', item['code'])])
|
[("code", '=', item['code'])])
|
||||||
if not brand:
|
if not brand:
|
||||||
|
|||||||
Reference in New Issue
Block a user