sale order line invoice status is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
1 Create a draft invoice for a sale order
2 Cancel the draf invoice but do not delete it
3 Recreate a draft invoude for the sale order
4 The invoiced status of the sale order line will be 'false', and the lines will stay to-be invoiced in the "Order Lines to Invoice" screen
Code in addons/
def _fnct_line_
res = dict.fromkeys(ids, False)
for this in self.browse(cr, uid, ids, context=context):
return res
I think the all() check is wrong, it should check if there is at least one invoice record with status not cancelled (replace all() with any())