Review: Needs Fixing
you cannot use voucher.account_id as this account is already used for the 
counter part (its meaningless to use the same account for both the debit & the 
credit of the same operation).

Instead, use the default accounts defined on the journal accordingly if the 
move will be a credit or a debit (default_debit_account or 
default_credit_account).

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-760412-pso/+merge/58228
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-760412-pso.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to     : openerp-dev-web@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help   : https://help.launchpad.net/ListHelp

Reply via email to