GithubHelp home page GithubHelp logo

Comments (6)

andhit-r avatar andhit-r commented on August 23, 2024

I also encountered with this problem

from pos.

osadmn avatar osadmn commented on August 23, 2024

Me too. How can we fix this?

from pos.

legalsylvain avatar legalsylvain commented on August 23, 2024

Hi Can you detail when the error occure, plz, which version of the module, ...

regards.

from pos.

andhit-r avatar andhit-r commented on August 23, 2024

Hi @legalsylvain. Here are the details:

  1. I clone OCA/pos repo
  2. I registered OCA/pos repo into my addons
  3. I edit any models through UI. I add custom field trough UI
  4. Exception raised:

Traceback (most recent call last):
File "/opt/odoo/odoo/openerp/http.py", line 539, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/openerp/http.py", line 576, in dispatch
result = self._call_function(*_self.params)
File "/opt/odoo/odoo/openerp/http.py", line 312, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/opt/odoo/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, _args, *_kwargs)
File "/opt/odoo/odoo/openerp/http.py", line 309, in checked_call
return self.endpoint(_a, *_kw)
File "/opt/odoo/odoo/openerp/http.py", line 805, in call
return self.method(_args, *_kw)
File "/opt/odoo/odoo/openerp/http.py", line 405, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 944, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 205, in write
return super(ir_model,self).write(cr, user, ids, vals, context)
File "/opt/odoo/odoo/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 399, in old_api
result = method(recs, _args, *_kwargs)
File "/opt/odoo/odoo/openerp/models.py", line 3788, in write
self._write(old_vals)
File "/opt/odoo/odoo/openerp/api.py", line 266, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 592, in new_api
result = method(self._model, cr, uid, self.ids, _args, *_old_kwargs)
File "/opt/odoo/odoo/openerp/models.py", line 3932, in _write
result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []
File "/opt/odoo/odoo/openerp/osv/fields.py", line 798, in set
id_new = obj.create(cr, user, act[2], context=context)
File "/opt/odoo/odoo/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 400, in create
model._auto_end(cr, ctx) # actually create FKs!
File "/opt/odoo/oca_pos/pos_remove_pos_category/product.py", line 79, in _auto_end
module = context['module']
KeyError: 'module'

As you can see that product.py from pos_remove_pos_category cause this. I even does not install pos_remove_pos_category

from pos.

carlosrve avatar carlosrve commented on August 23, 2024

I just uploaded a pull request to fix this.

from pos.

pedrobaeza avatar pedrobaeza commented on August 23, 2024

Closing as there's a PR.

from pos.

Related Issues (20)

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.