示例#1
0
 def save_bom(self):
     for bom in self:
         models = self.env[self.env.context.get('active_model')].browse(self.env.context.get('active_ids'))
         return models.save_bom(bom.name)
示例#2
0
 def save_bom(self):
     for bom in self:
         models = self.env[self.env.context.get('active_model')].browse(
             self.env.context.get('active_ids'))
         return models.save_bom(bom.name)