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)
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)