Merge lp:~team-cluster/openerp-venezuela-localization/ovl7.0-wh-islr-get-move-lines into lp:openerp-venezuela-localization

Proposed by Eduardo Ochoa - Cluster Brands
Status: Merged
Approved by: hbto [Vauxoo] http://www.vauxoo.com
Approved revision: 904
Merged at revision: 907
Proposed branch: lp:~team-cluster/openerp-venezuela-localization/ovl7.0-wh-islr-get-move-lines
Merge into: lp:openerp-venezuela-localization
Diff against target: 12 lines (+1/-1)
1 file modified
l10n_ve_withholding_islr/model/invoice.py (+1/-1)
To merge this branch: bzr merge lp:~team-cluster/openerp-venezuela-localization/ovl7.0-wh-islr-get-move-lines
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Approve
Review via email: mp+194718@code.launchpad.net

Description of the change

Al momento de crear los asientos contables para la retención existe un error a la hora de obtener la cuenta
asociada al concepto. Por ello siempre tomaba la misma cuenta. Lo único que hice fue cambiar esta condición para solucionarlo.

To post a comment you must log in.
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) :
review: Approve
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Revisado el código

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_withholding_islr/model/invoice.py'
2--- l10n_ve_withholding_islr/model/invoice.py 2013-04-26 23:55:44 +0000
3+++ l10n_ve_withholding_islr/model/invoice.py 2013-11-11 16:35:48 +0000
4@@ -290,7 +290,7 @@
5 direction = types[inv_brw.type]
6
7 for iwdl_brw in to_wh:
8- if 'invoice' in inv_brw.type:
9+ if inv_brw.type in ('out_invoice','out_refund'):
10 acc = iwdl_brw.concept_id.property_retencion_islr_receivable and \
11 iwdl_brw.concept_id.property_retencion_islr_receivable.id or \
12 False