The patch you propose is good in that there is no more error in the client's stdout.
However there is a little problem remaining.
Please take the example module at lp:~numerigraphe/openobject-addons/bug479302, and reproduce the steps in comment #2 but don't save the record.
You'll notice that when you validate the popup and there are 6 empty lines, the client will remove 3 of them, and leaves the 3 others. In the main list view the column "elements" will show "(3)", and if double-click the row, the popup will show 3 empty lines.
If you then validate the popup again, 2 empty rows are removes but 1 still remains.
If you save the record however, all the empty lines are removed which is fine.
Could you please look into this mater ?
Thanks in advance,
Lionel.
Jay, Anup, please excuse this late answer.
The patch you propose is good in that there is no more error in the client's stdout.
However there is a little problem remaining.
Please take the example module at lp:~numerigraphe/openobject-addons/bug479302, and reproduce the steps in comment #2 but don't save the record.
You'll notice that when you validate the popup and there are 6 empty lines, the client will remove 3 of them, and leaves the 3 others. In the main list view the column "elements" will show "(3)", and if double-click the row, the popup will show 3 empty lines.
If you then validate the popup again, 2 empty rows are removes but 1 still remains.
If you save the record however, all the empty lines are removed which is fine.
Could you please look into this mater ?
Thanks in advance,
Lionel.