tryton-ar / account_retencion_ar Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Al crear una retención desde un recibo, usando sao salta este error. Le das cerrar a la pantalla y se puede seguir operando normalmente.
Traceback (most recent call last):
File "/trytond/wsgi.py", line 47, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 59, in rpc
request, database_name, *request.params)
File "/trytond/wsgi.py", line 39, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 40, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 206, in _dispatch
result = rpc.result(meth(inst, *c_args, **c_kwargs))
File "/trytond/model/modelview.py", line 669, in on_change_with
changes[fieldname] = getattr(self, method_name)()
File "/trytond/model/fields/field.py", line 89, in wrapper
return func(self, *args, **kwargs)
File "/trytond/modules/account_retencion_ar/account_voucher_ar.py", line 43, in on_change_with_amount
amount += retencion.amount
TypeError: unsupported operand type(s) for +=: 'Decimal' and 'NoneType'
Tira un traceback al querer guardar un recibo con una retencion de tipo soportada pero que el la secuencia no fue configurada. Por un lado, la secuencia no es requerida cuando la retención es de tipo efectuada, y por el otro deberiamos de verificar que la secuencia exista cuando la retencion es efectuada antes de usarla.
Traceback (most recent call last):
File "/opt/trytond/elciudadano/trytond_dist/trytond/protocols/dispatcher.py", line 201, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/opt/trytond/elciudadano/trytond_dist/trytond/model/modelview.py", line 625, in wrapper
return func(cls, *args, **kwargs)
File "/opt/trytond/elciudadano/trytond_dist/trytond/modules/account_retencion_ar/account_voucher_ar.py", line 98, in post
'name': Sequence.get_id(retencion.tax.sequence.id),
AttributeError: 'NoneType' object has no attribute 'id'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.