← Back to team overview

openerp-community team mailing list archive

lp:~openerp-community/openobject-addons/fix-1105067-account_payment_reference_type into lp:openobject-addons

 

Peter Langenberg has proposed merging lp:~openerp-community/openobject-addons/fix-1105067-account_payment_reference_type into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1105067 in OpenERP Addons: "account_payment: structured reference type is not reflected when importing from invoice"
  https://bugs.launchpad.net/openobject-addons/+bug/1105067

For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/fix-1105067-account_payment_reference_type/+merge/150553

Please merge.
-- 
https://code.launchpad.net/~openerp-community/openobject-addons/fix-1105067-account_payment_reference_type/+merge/150553
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-addons/fix-1105067-account_payment_reference_type.
=== modified file 'account_payment/wizard/account_payment_order.py'
--- account_payment/wizard/account_payment_order.py	2012-12-06 14:56:32 +0000
+++ account_payment/wizard/account_payment_order.py	2013-02-26 12:57:33 +0000
@@ -88,6 +88,7 @@
                     'partner_id': line.partner_id and line.partner_id.id or False,
                     'communication': line.ref or '/',
                     'date': date_to_pay,
+                    'state': 'structured' if line.invoice and line.invoice.reference_type != 'none' else 'normal',
                     'currency': (line.invoice and line.invoice.currency_id.id) or line.journal_id.currency.id or line.journal_id.company_id.currency_id.id,
                 }, context=context)
         return {'type': 'ir.actions.act_window_close'}


Follow ups