Imposible validar facturas

Bug #905320 reported by Juan Márquez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Openerp Venezuela
Fix Released
Low
Javier Duran

Bug Description

Al intentar validar una factura de Venta aparece el mensaje de error: "Please create some invoice lines." y no permite continuar el proceso, a pesar de que si existen líneas en la factura.

Related branches

Revision history for this message
Juan Márquez (jmarquez) wrote :

El problema es causado cuando el campo company.lines_invoice == 0

Se debe modificar el método split_invoice incluyendo lo siguiente:

    def split_invoice(self, cr, uid, ids):
        '''
        Split the invoice when the lines exceed the maximum set for the company
        '''
        for inv in self.browse(cr, uid, ids):
            inv_id =False
            print inv.company_id.lines_invoice
# incluir esto para evitar error
            if inv.company_id.lines_invoice < 1:
                raise osv.except_osv(_('Error !'), _('Please set a invoice lines value in:\n\tAdministration->Company->Configuration->Invoice lines'))
# Fin modificacion
            if inv.type in ["out_invoice","out_refund"]:
                if len(inv.invoice_line)> inv.company_id.lines_invoice:

Changed in openerp-venezuela-localization:
assignee: nobody → Juan Márquez (jmarquez)
status: New → Confirmed
assignee: Juan Márquez (jmarquez) → nobody
Javier Duran (javieredm)
Changed in openerp-venezuela-localization:
importance: Undecided → Low
assignee: nobody → Javier Duran - Vauxoo (javieredm)
Revision history for this message
Javier Duran (javieredm) wrote :

Merged on trunk:

revno: 488 [merge]
revision-id: javier@squezee-vir-20111220151204-2mndi3ngt5h0imlo

Changed in openerp-venezuela-localization:
status: Confirmed → Fix Committed
Changed in openerp-venezuela-localization:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.