Giter Club home page Giter Club logo

account_retencion_ar's People

Contributors

abernardi avatar brunovillasanti avatar lukio avatar smarro avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rollyar

account_retencion_ar's Issues

Al crear una retencion desde un recibo me tira un traceback

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'

crash al guardar un recibo con una retencion de tipo efectuada

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.