I have installation of odoo 12 with inventory and fleet apps installed.
I need to make field with spare parts in stock compatible with vehicles in fleet. So if you open product description there will be field with compatible vehicles and if you open vehicle there will be field with compatible products. Of course if you fill compatible vehicles in product page then you should see compatible parts in vehicle page.
I tried to add many2many fields in both models but have no idea how to connect them with each other so they will show me what i want.
Do you have any suggestions how to do that?