On 2017-09-26 02:55, Maxime Richez wrote:
> > It is strange because .pop set the _parent attribute to None.
> > Are you sure you remove all the records?
> > 
> > Indeed I would write the code like this:
> > 
> >     while request.quotation_lines:
> >         request.quotation_lines.pop()
> >     request.quotation_lines.extend(sorted_quotations)
> > 
> 
> Thanks ! 
> I applied your code, now i get an error on a required field... 
> "UserError: The field "Request" on "Purchase Request For Quotation Line" is 
> required."
> Is there a bug ?

It seems. I think the record_removed and record_deleted are not updated
when adding back the same record.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20170926103414.GC3625%40kei.

Reply via email to