Merge lp:~vauxoo/openerp-venezuela-localization/ovl70-whiva-rev2-kty into lp:openerp-venezuela-localization

Proposed by Katherine Zaoral (Vauxoo)
Status: Merged
Merged at revision: 784
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/ovl70-whiva-rev2-kty
Merge into: lp:openerp-venezuela-localization
Diff against target: 12 lines (+2/-0)
1 file modified
l10n_ve_withholding_iva/model/wh_iva.py (+2/-0)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/ovl70-whiva-rev2-kty
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Pending
Review via email: mp+151816@code.launchpad.net

Commit message

[IMP] new related fields 'date' and 'date_ret' from 'account.wh.iva' model.

Description of the change

[IMP] new related fields 'date' and 'date_ret' from 'account.wh.iva' model.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_withholding_iva/model/wh_iva.py'
2--- l10n_ve_withholding_iva/model/wh_iva.py 2013-03-01 10:53:41 +0000
3+++ l10n_ve_withholding_iva/model/wh_iva.py 2013-03-05 18:38:21 +0000
4@@ -148,6 +148,8 @@
5 'base_ret': fields.function(_amount_all, method=True, digits=(16,4), string='Wh. amount', multi='all', help="Withholding without tax amount"),
6 'move_id': fields.many2one('account.move', 'Account Entry', readonly=True, help="Account entry"),
7 'wh_iva_rate': fields.float(string='Withholding Vat Rate', digits_compute= dp.get_precision('Withhold'), help="Withholding vat rate"),
8+ 'date': field.related('retention_id', 'date', type='date', relation='account.wh.iva', string='Date')
9+ 'date_ret': field.related('retention_id', 'date_ret', type='date', relation='account.wh.iva', string='Date Withholding')
10 }
11
12 _sql_constraints = [