Hello, I am trying to create a model that have multiple Many2many fields that relates to the "product.product" model. Basically, the model will have four list, each one containing different products.
My model is the following:
The problem however is that when I choose a product to one of the fields and then save, all fields get this product as well.
As an example, I overwrote the create function to get logs:
Then, when creating a record, informing a product just to the fields "legumes", I get the following log for the vals I received:
Vals received on creation: {'name': 'Cesta', 'temperos': [[6, False, []]], 'frutas': [[6, False, []]], 'date_start': '2019-02-05', 'verduras': [[6, False, []]], 'legumes': [[6, False, [6952]]], 'date_end': '2019-02-08'}
And the following log for the field "temperos", which I would expect to be empty, on the creation response:
Field temperos on creation response: product.product(6952,)
What am I missing here?
Create many2many field: https://learnopenerp.blogspot.com/2018/12/add-domain-on-many2many-field-in-odoo.html