← Back to team overview

openerp-community-reviewer team mailing list archive

Re: [Merge] lp:~scigghia/ocb-addons/7.0_prop_supplier_invoice_number into lp:ocb-addons

 

@carlos, you can have separate invoice number and payment reference. See for instance the structured payment reference as defined in the SEPA specifications: http://en.wikipedia.org/wiki/Creditor_Reference.

@andrea sorry, that should be around l.945 of account/account_invoice.py. But you are right, it was the other way around. The place where you inject the supplier invoice number overwrites the logic above.

To keep complete compatibility with the way that the payment module uses the references as *payment* references, how about using the supplier invoice number as a fallback in case no reference has been given? Something like:

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

?

Leaving inv.number out here, because it is a related field on the name of the move that we are creating here in the first place.




-- 
https://code.launchpad.net/~scigghia/ocb-addons/7.0_prop_supplier_invoice_number/+merge/208934
Your team OpenERP Community Backports Team is subscribed to branch lp:ocb-addons.


References