Odoo Help


How to set children taxes in POS?

Pascal Tremblay
on 2/15/15, 3:53 PM 1,668 views

Hey guys, 

You know, in my country (Canada, Quebec), I have two (childrens) taxes to pay. See below (TPS and TVQ) :

Point of sale (POS) has many problem with these children taxes. If a product is setted with these taxes, orders stay on New status, even if validated in POS. Order doesn't get the paid status unless I pay it in Point of sale-> order.

How did you solve the problem?

Documentation :

  • https://bugs.launchpad.net/openobject-addons/+bug/1231574?comments=all
  • https://github.com/odoo/odoo/issues/1515


  • I have found two new files at https://github.com/odoo/odoo/pull/1835/files#diff-1c14accbe350f7a177b3e81e5846861b
  • I have replaced my two files :
  • /home/odoo/addons/point_of_sale/static/src/js/models.js
  • /home/odoo/addons/point_of_sale/point_of_sale.py

Now I have the error :

2015-02-15 22:56:10,113 8637 ERROR 111aaa werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 159, in run_wsgi
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 146, in execute
    application_iter = app(environ, start_response)
  File "/home/odoo/openerp/service/server.py", line 281, in app
    return self.app(e, s)
  File "/home/odoo/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/home/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/home/odoo/openerp/http.py", line 1275, in __call__
    return self.dispatch(environ, start_response)
  File "/home/odoo/openerp/http.py", line 1249, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 411, in __call__
    return self.app(environ, start_response)
  File "/home/odoo/openerp/http.py", line 1249, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 411, in __call__
    return self.app(environ, start_response)
  File "/home/odoo/openerp/http.py", line 1416, in dispatch
    result = ir_http._dispatch()
  File "/home/odoo/addons/crm/ir_http.py", line 13, in _dispatch
    response = super(ir_http, self)._dispatch()
  File "/home/odoo/addons/website/models/ir_http.py", line 125, in _dispatch
    return super(ir_http, self)._dispatch()
  File "/home/odoo/openerp/addons/base/ir/ir_http.py", line 130, in _dispatch
    return self._handle_exception(e)
  File "/home/odoo/addons/website/models/ir_http.py", line 201, in _handle_exception
    return super(ir_http, self)._handle_exception(exception)
  File "/home/odoo/openerp/addons/base/ir/ir_http.py", line 100, in _handle_exception
    return request._handle_exception(exception)
  File "/home/odoo/openerp/http.py", line 654, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/home/odoo/openerp/addons/base/ir/ir_http.py", line 126, in _dispatch
    result = request.dispatch()
  File "/home/odoo/openerp/http.py", line 672, in dispatch
    r = self._call_function(**self.params)
  File "/home/odoo/openerp/http.py", line 302, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/openerp/http.py", line 299, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/odoo/openerp/http.py", line 791, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/openerp/http.py", line 395, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/addons/point_of_sale/controllers/main.py", line 30, in a
AttributeError: 'pos.session' object has no attribute 'login'

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/15/15, 3:53 PM
Seen: 1668 times
Last updated: 3/16/15, 8:10 AM