Search code examples
python-3.xodoo

How Odoo to get values ids in each field


I create functions

def create(self, values):
 #field name is 'promotions_type_line'  

but i don't know how to get values from 'promotions_type_line' field.


Solution

  • def create(self, values):
        result = super().create(values)
        line = result.promotions_type_line
        # Do your things here
        return result