Commit 73d8a81d by 夏超

[fix] 大东联推送

parent 588aeb06
......@@ -14,8 +14,7 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
@api.model
def default_get(self, field_names):
if self.env.context.get('active_model') != "roke.production.result" or \
self.env._context.get('active_model') != "roke.production.result":
if self.env._context.get('active_model') != "roke.production.result":
return super(InheritRokeResultPutWarehouseWizard, self).default_get(field_names)
results = self.env['roke.production.result'].browse(self.env.context.get('active_ids') or
self.env._context.get('active_ids'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment