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