← Back to team overview

openerp-brazil-team team mailing list archive

Re: Erro ao tentar criar uma ordem de venda

 

Olá Daniel,


Este problema é causado por conflito de módulos que sobreescreve o
metodo onchange_partner_id()
na sale.order, basicamente o que acontece é que tivemos que sobreescrever e
alterar a assinatura deste metodo nos modulos da l10n_br_sale e
account_fiscal_position_rule_sale, porem nós usamos um modulo delivery que
sobreescreve este modulo com a assinatura antiga e como ele nao esta da
dependencia de nenhum destes modulos ele chama o metodo e super metodos fora
de ordem causando este erro, neste caso  para resolver vamos precisar criar
um modulo que faz a ponte entre estes dois modulos para mante-los
independentes, por enquanto você pode fazer um workaround que é colocar o
modulo delivery na dependencia do account_fiscal_position_rule_sale.


Espero ter ajudado,


Renato Lima
Sócio Diretor
+55 21 3010 9965
www.akretion.com
[image: Assinatura_nova.png]


2010/11/9 Daniel Carvalho <danieloak@xxxxxxxxx>

> Bom dia pessoal,
>
> Estou obtendo o seguinte erro ao tentar criar uma nova ordem de vendas.
>
> TypeError: onchange_partner_id() takes exactly 5 arguments (6 given)
>
>
>
> Environment Information :
> System : Linux-2.6.32-25-generic-i686-with-Ubuntu-10.04-lucid
> OS Name : posix
> Distributor ID:    Ubuntu
> Description:    Ubuntu 10.04.1 LTS
> Release:    10.04
> Codename:    lucid
> Operating System Release : 2.6.32-25-generic
> Operating System Version : #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010
> Operating System Architecture : 32bit
> Operating System Locale : pt_BR.UTF8
> Python Version : 2.6.5
> OpenERP-Client Version : 6.0.0-rc1-1
> Last revision No. & ID :1675
> launchpad_translations_on_behalf_of_openerp-20101109044756-3mjfecdutx8jmnaj
> Traceback (most recent call last):
>   File "/home/daniel/openerp/server/bin/netsvc.py", line 489, in dispatch
>     result = ExportService.getService(service_name).dispatch(method, auth,
> params)
>   File "/home/daniel/openerp/server/bin/service/web_services.py", line 586,
> in dispatch
>     res = fn(db, uid, *params)
>   File "/home/daniel/openerp/server/bin/osv/osv.py", line 57, in wrapper
>     return f(self, dbname, *args, **kwargs)
>   File "/home/daniel/openerp/server/bin/osv/osv.py", line 140, in execute
>     res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
>   File "/home/daniel/openerp/server/bin/osv/osv.py", line 130, in
> execute_cr
>     return getattr(object, method)(cr, uid, *args, **kw)
>   File "/home/daniel/openerp/server/bin/addons/l10n_br_sale/sale.py", line
> 37, in onchange_partner_id
>     result = super(sale_order, self).onchange_partner_id(cr, uid, ids,
> part, shop_id)
> TypeError: onchange_partner_id() takes exactly 5 arguments (6 given)
>
>
>
> --
> Daniel Pereira de Carvalho
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-brazil-team
> Post to     : openerp-brazil-team@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-brazil-team
> More help   : https://help.launchpad.net/ListHelp
>
>

PNG image


Follow ups

References