Merge lp:~vauxoo/openerp-venezuela-localization/miguel-split-invoice-lines into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Miguel Delgado (Vauxoo)
Status: Merged
Merged at revision: 559
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/miguel-split-invoice-lines
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 12 lines (+2/-0)
1 file modified
l10n_ve_split_invoice/installer.py (+2/-0)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/miguel-split-invoice-lines
Reviewer Review Type Date Requested Status
Gabriela Quilarque Pending
Review via email: mp+89901@code.launchpad.net

Description of the change

 [FIX] a bug when the user select a number of lines in customer invoices

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_split_invoice/installer.py'
2--- l10n_ve_split_invoice/installer.py 2012-01-19 20:03:36 +0000
3+++ l10n_ve_split_invoice/installer.py 2012-01-24 14:11:31 +0000
4@@ -47,6 +47,8 @@
5 In this method I will configure the maximum number of lines in your invoices.
6 '''
7 wiz_data = self.browse(cr, uid, ids[0])
8+ if wiz_data.name < 1 :
9+ raise osv.except_osv(_('Error !'), _('The number of customer invoice lines must be at least one'))
10 company = self.pool.get('res.users').browse(cr, uid, uid).company_id
11 company_obj = self.pool.get('res.company')
12 company_id = company_obj.search(cr,uid,[('id','=',company.id)])