Imposible validar facturas
Bug #905320 reported by
Juan Márquez
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
lp:~javieredm/openerp-venezuela-localization/javy-bug905320
- Javier Duran (community): Approve
-
Diff: 64 lines (+19/-3)2 files modifiedl10n_ve_split_invoice/i18n/es_VE.po (+17/-3)
l10n_ve_split_invoice/invoice.py (+2/-0)
Changed in openerp-venezuela-localization: | |
importance: | Undecided → Low |
assignee: | nobody → Javier Duran - Vauxoo (javieredm) |
Changed in openerp-venezuela-localization: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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): id.lines_ invoice id.lines_ invoice < 1:
raise osv.except_ osv(_(' Error !'), _('Please set a invoice lines value in:\n\tAdminist ration- >Company- >Configuration- >Invoice lines')) ,"out_refund" ]: invoice_ line)> inv.company_ id.lines_ invoice:
'''
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_
# incluir esto para evitar error
if inv.company_
# Fin modificacion
if inv.type in ["out_invoice"
if len(inv.