Merge lp:~scigghia/openobject-addons/7.0_prop_supplier_invoice_number into lp:openobject-addons/7.0

Proposed by Andrea Cometa
Status: Needs review
Proposed branch: lp:~scigghia/openobject-addons/7.0_prop_supplier_invoice_number
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
account/account_invoice.py (+1/-1)
To merge this branch: bzr merge lp:~scigghia/openobject-addons/7.0_prop_supplier_invoice_number
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+213242@code.launchpad.net

Description of the change

when paying a supplier invoice, with voucher, may be useful to show supplier invoice number instead of ref, only for supplier invoice.

I think this could be done in action_move_create in account.py

with this
                'ref': inv.reference or inv.supplier_invoice_number or inv.name,

To post a comment you must log in.

Unmerged revisions

9938. By Andrea Cometa

[imp][account_invoice] if exists, supplier invoice number in move_lines instead of reference

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_invoice.py'
2--- account/account_invoice.py 2014-02-05 10:03:24 +0000
3+++ account/account_invoice.py 2014-03-28 12:19:29 +0000
4@@ -1022,7 +1022,7 @@
5 line = self.finalize_invoice_move_lines(cr, uid, inv, line)
6
7 move = {
8- 'ref': inv.reference and inv.reference or inv.name,
9+ 'ref': inv.reference or inv.supplier_invoice_number or inv.name,
10 'line_id': line,
11 'journal_id': journal_id,
12 'date': date,