Skip to content

Commit

Permalink
[IMP] use supplier_invoice_number if available
Browse files Browse the repository at this point in the history
  • Loading branch information
scigghia authored and Stefan Rijnhart committed Jul 2, 2014
1 parent ac4016f commit 7d5425d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def action_move_create(self, cr, uid, ids, context=None):
line = self.finalize_invoice_move_lines(cr, uid, inv, line)

move = {
'ref': inv.reference and inv.reference or inv.name,
'ref': inv.reference or inv.supplier_invoice_number or inv.name,
'line_id': line,
'journal_id': journal_id,
'date': date,
Expand Down

0 comments on commit 7d5425d

Please sign in to comment.