> 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 ?

-- 
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/6b59237b-f852-4533-8091-69e6a84b71bb%40googlegroups.com.

Reply via email to