Skip to content

Commit 7d3de55

Browse files
agr-odookzhekov
authored andcommitted
[FIX] *: avoid cutting 0.0 value in first row
Have in a purchase order a first row with unit price 0 Export the PO adding unit price in the list of fields to export The unit price is not reported This occur because the first line of the order lines is meld with the purchase order line but in the process the 0.0 values is discarded opw-2510917 closes odoo#70274 Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
1 parent 8f91374 commit 7d3de55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odoo/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def splittor(rs):
784784
if lines2:
785785
# merge first line with record's main line
786786
for j, val in enumerate(lines2[0]):
787-
if val or isinstance(val, bool):
787+
if val or isinstance(val, (int, float)):
788788
current[j] = val
789789
# append the other lines at the end
790790
lines += lines2[1:]

0 commit comments

Comments
 (0)