Pinakin Nayi (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/6.0-opw-584876-pna into lp:openobject-addons/6.0.
Requested reviews: Naresh(OpenERP) (nch-openerp) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-584876-pna/+merge/146802 Hello, I fixed issue in account_voucher. Problem : When we want to pay the invoice and set the payment option to "with_writeoff", and when we specify the analytic_id, it does not appear in the account.move.line (analytic_account_id). Thanks, pna -- https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-584876-pna/+merge/146802 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/6.0-opw-584876-pna.
=== modified file 'account_voucher/account_voucher.py' --- account_voucher/account_voucher.py 2012-12-05 18:02:05 +0000 +++ account_voucher/account_voucher.py 2013-02-06 08:55:50 +0000 @@ -802,6 +802,7 @@ 'date': inv.date, 'credit': diff > 0 and diff or 0.0, 'debit': diff < 0 and -diff or 0.0, + 'analytic_account_id': inv.analytic_id and inv.analytic_id.id or False, #'amount_currency': company_currency <> current_currency and currency_pool.compute(cr, uid, company_currency, current_currency, diff * -1, context=context_multi_currency) or 0.0, #'currency_id': company_currency <> current_currency and current_currency or False, }
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp