← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 797219] [NEW] Busqueda de Proveedor en Factura de Proveedores

 

Public bug reported:

Al intentar crear una nueva factura de proveedores, con el módulo de
l10n_ve_withholding_iva (versión 6 rev 363) e intentar introducir un
proveedor se obtiene el siguiente error:

TypeError: onchange_partner_id() takes at most 9 arguments (10 given)

Mi solución al problema, es agregar el argumento faltante a la función onchange_partner_id en el archivo invoice.py
=== modified file 'l10n_ve_withholding_iva/invoice.py'
--- l10n_ve_withholding_iva/invoice.py	2011-05-19 20:32:34 +0000
+++ l10n_ve_withholding_iva/invoice.py	2011-06-13 21:11:49 +0000
@@ -77,10 +77,10 @@
 
 
     def onchange_partner_id(self, cr, uid, ids, type, partner_id,
-            date_invoice=False, payment_term=False, partner_bank_id=False):
+            date_invoice=False, payment_term=False, partner_bank_id=False, company_id = False):
 
         data = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id,
-            date_invoice, payment_term, partner_bank_id)
+            date_invoice, payment_term, partner_bank_id, company_id)
         if partner_id:
             part = self.pool.get('res.partner').browse(cr, uid, partner_id)
             data[data.keys()[0]]['wh_iva_rate'] =  part.wh_iva_rate

** Affects: openerp-venezuela-localization
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/797219

Title:
  Busqueda de Proveedor en Factura de Proveedores

Status in Localización Venezolana de la Comunidad:
  New

Bug description:
  Al intentar crear una nueva factura de proveedores, con el módulo de
  l10n_ve_withholding_iva (versión 6 rev 363) e intentar introducir un
  proveedor se obtiene el siguiente error:

  TypeError: onchange_partner_id() takes at most 9 arguments (10 given)

  Mi solución al problema, es agregar el argumento faltante a la función onchange_partner_id en el archivo invoice.py
  === modified file 'l10n_ve_withholding_iva/invoice.py'
  --- l10n_ve_withholding_iva/invoice.py	2011-05-19 20:32:34 +0000
  +++ l10n_ve_withholding_iva/invoice.py	2011-06-13 21:11:49 +0000
  @@ -77,10 +77,10 @@
   
   
       def onchange_partner_id(self, cr, uid, ids, type, partner_id,
  -            date_invoice=False, payment_term=False, partner_bank_id=False):
  +            date_invoice=False, payment_term=False, partner_bank_id=False, company_id = False):
   
           data = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id,
  -            date_invoice, payment_term, partner_bank_id)
  +            date_invoice, payment_term, partner_bank_id, company_id)
           if partner_id:
               part = self.pool.get('res.partner').browse(cr, uid, partner_id)
               data[data.keys()[0]]['wh_iva_rate'] =  part.wh_iva_rate

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-venezuela-localization/+bug/797219/+subscriptions


Follow ups

References