Merge lp:~inddiana/openerp-venezuela-localization/josbel-frq-buscar-partner-rif into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Josbel Caraballo
Status: Merged
Merged at revision: 530
Proposed branch: lp:~inddiana/openerp-venezuela-localization/josbel-frq-buscar-partner-rif
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 20 lines (+10/-0)
1 file modified
l10n_ve_fiscal_requirements/partner.py (+10/-0)
To merge this branch: bzr merge lp:~inddiana/openerp-venezuela-localization/josbel-frq-buscar-partner-rif
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Needs Fixing
Nhomar - Vauxoo Needs Fixing
Gabriela Quilarque Pending
Review via email: mp+88560@code.launchpad.net

Description of the change

[IMP] Allow search partners by VAT
Permitir la búsqueda de partners por RIF

To post a comment you must log in.
Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

en la linea 14:

self.name_get(cr,uid,ids)

debe ser

self.name_get(cr,uid,ids,context=context)

Siempre debe pasarse el context por que muchos metodos lo usan.....

Es un opcional obligado ;-)

Saludos.

review: Needs Fixing
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Revisado y Listo para merging, ya el merger realizo los cambios pertinentes, por favor realizar merge

review: Approve
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Se me habia saltado esa revision que habias hecho Nhomar,
Me retracto de lo ultimo

Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) :
review: Needs Fixing
Revision history for this message
Gabriela Quilarque (gabrielaquilarque97) wrote :

Ok, esperando corrección...

524. By Josbel Caraballo

[FIX] Corregida la declaración del método name_search:
en los parámetros que recibe el mismo, se cambió context=context

Revision history for this message
Josbel Caraballo (jcaraballo) wrote :

Espero por revisión para el merge, en el commit anterior había hecho el cambio el el lugar equivocado :s

Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

Hola Josbel-

Puedes enviarme como funcioalemnte pruebo esta caracteristica? para poder verificar el funcionamiento?

Salidos.

Revision history for this message
Josbel Caraballo (jcaraballo) wrote :

En la búsqueda de un partner, en cualquier vista, mientras vas escribiendo un RIF válido, te irán apareciendo para seleccionar los partner que coincidan con el mismo. Si escribes el RIF completo, sólo podrás seleccionar el de la coincidencia exacta...

525. By Josbel Caraballo

[FIX] Agregado el context=context en el llamado al método name_get()

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_fiscal_requirements/partner.py'
2--- l10n_ve_fiscal_requirements/partner.py 2012-01-08 05:35:57 +0000
3+++ l10n_ve_fiscal_requirements/partner.py 2012-01-16 15:12:28 +0000
4@@ -75,6 +75,16 @@
5 'seniat_updated': False,
6 }
7
8+ def name_search(self,cr,uid,name='',args=[],operator='ilike',context=None,limit=80):
9+ if context is None:
10+ context={}
11+ ids= []
12+ if len(name) >= 2:
13+ ids = self.search(cr, uid, [('vat',operator,name)] + args, limit=limit, context=context)
14+ if not ids:
15+ ids = self.search(cr,uid,[('name',operator,name)] + args, limit=limit, context=context)
16+ return self.name_get(cr,uid,ids,context=context)
17+
18 '''
19 Required Invoice Address
20 '''