hello everyone
i have 2 many2many fields same object and give me same value (sale order of res.partner)
one field name is sale_ids
second field name is sale_orders
when i select res.partner sale_ids give me saleorder of selected res.partner
now i want when i click save button i want same value in sale_orders
what can i do?
thank you in advance
i solved by this code:-
def write(self,vals):
if self.sale_ids:
def write(self,vals):
if self.sale_ids:
vals['sale_orders'] = [(6,0,self.sale_ids.ids)]
res = super(bookingschedual,self).write(vals)
return res