I want to make a standard product/s naming system. Odoo takes input creates name.
Item name would be Product name + Description + field + field
example :
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to make a standard product/s naming system. Odoo takes input creates name.
Item name would be Product name + Description + field + field
example :
You need to override the create method and concatenate the value of the fields to generate the product name.
@api.model
def create(self, vals):
name = vals.get('name') + ', ' + vals.get('field1', '') + ', ' + vals.get('field2', '')
vals.update({'name': name})
return super(myclass, self).create(vals)
Thanks!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up