Hello everyone,
I am having a problem on testing a value on a many2many field on create() method.
I know that we should use:
self.myfield_ids : On write() method;
vals['myfied_ids'] : On create() method;
I am trying to use "vals['myfield_ids']" on a many2many field and I am getting an "KeyError: 'myfield_ids'".
The code I have tried:
if vals['myfield_ids']:
returns: KeyError: 'myfield_ids'
How can I check if a many2many field is filled on form view for the create() method?
The field is not required on the form and I need to keep this way.
Thank you all in advance
Best regards
Paulo