Git Product home page Git Product logo

Comments (4)

Danisan avatar Danisan commented on July 28, 2024

Similar for amenities...
[...]
File "/opt/odoo/openerp/models.py", line 3286, in _read_from_database
cr.execute(query_str, [tuple(sub_ids)] + where_params)
File "/opt/odoo/openerp/sql_db.py", line 158, in wrapper
return f(self, _args, *_kwargs)
File "/opt/odoo/openerp/sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
ProgrammingError: invalid reference to FROM-clause entry for table "product_product"
LINE 2: ... "hotel_room_amenities__room_categ_id"."id") AND ("product_p...
^
HINT: Perhaps you meant to reference the table alias "hotel_room_amenities__room_categ_id".

from odoohotelmanagementsystem.

Danisan avatar Danisan commented on July 28, 2024

@JayVora-SerpentCS, I saw this forum post:
https://www.odoo.com/forum/help-1/question/openerp-7-hotel-module-related-error-53947

and the error seems related to this same issue, but I saw in the code that kanban view is commented. As this is not a python error is being very difficult for me to debug. Could you please give a little hint to me in order to investigate it? perhaps I could contribute the solution..

Thanks a lot.

from odoohotelmanagementsystem.

mhabou avatar mhabou commented on July 28, 2024

same problem

2015-07-12 16:39:20,962 6783 ERROR Clinic openerp.sql_db: Programming error: invalid reference to FROM-clause entry for table "product_product"
LINE 2: ...product_id" = "hotel_room__product_id"."id") AND ("product_p...
^
HINT: Perhaps you meant to reference the table alias "hotel_room__product_id".
, in query SELECT product_product__product_tmpl_id."categ_id","hotel_room"."status","hotel_room"."capacity",product_product__product_tmpl_id."list_price","hotel_room"."id" FROM "hotel_room","product_product" as "hotel_room__product_id","product_template" as "product_product__product_tmpl_id"
WHERE "hotel_room".id IN %s AND ("hotel_room"."product_id" = "hotel_room__product_id"."id") AND ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") ORDER BY "hotel_room"."id"

2015-07-12 16:39:20,962 6783 ERROR Clinic openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/inovativ/workspace/Odoo/openerp/http.py", line 530, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/inovativ/workspace/Odoo/openerp/http.py", line 567, in dispatch
result = self._call_function(*_self.params)
File "/home/inovativ/workspace/Odoo/openerp/http.py", line 303, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/inovativ/workspace/Odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/inovativ/workspace/Odoo/openerp/http.py", line 300, in checked_call
return self.endpoint(_a, *_kw)
File "/home/inovativ/workspace/Odoo/openerp/http.py", line 796, in call
return self.method(_args, *_kw)
File "/home/inovativ/workspace/Odoo/openerp/http.py", line 396, in response_wrap
response = f(_args, *_kw)
File "/home/inovativ/workspace/OdooRH/addons/web/controllers/main.py", line 875, in search_read
return self.do_search_read(model, fields, offset, limit, domain, sort)
File "/home/inovativ/workspace/OdooRH/addons/web/controllers/main.py", line 896, in do_search_read
request.context)
File "/home/inovativ/workspace/Odoo/openerp/http.py", line 900, in proxy
result = meth(cr, request.uid, _args, *_kw)
File "/home/inovativ/workspace/Odoo/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/home/inovativ/workspace/Odoo/openerp/models.py", line 5130, in search_read
result = self.read(cr, uid, record_ids, fields, context=read_ctx)
File "/home/inovativ/workspace/Odoo/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/home/inovativ/workspace/Odoo/openerp/models.py", line 3128, in read
result = BaseModel.read(records, fields, load=load)
File "/home/inovativ/workspace/Odoo/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/home/inovativ/workspace/Odoo/openerp/models.py", line 3163, in read
self._read_from_database(stored, inherited)
File "/home/inovativ/workspace/Odoo/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/home/inovativ/workspace/Odoo/openerp/models.py", line 3286, in _read_from_database
cr.execute(query_str, [tuple(sub_ids)] + where_params)
File "/home/inovativ/workspace/Odoo/openerp/sql_db.py", line 158, in wrapper
return f(self, _args, *_kwargs)
File "/home/inovativ/workspace/Odoo/openerp/sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
ProgrammingError: invalid reference to FROM-clause entry for table "product_product"
LINE 2: ...product_id" = "hotel_room__product_id"."id") AND ("product_p...
^
HINT: Perhaps you meant to reference the table alias "hotel_room__product_id".

from odoohotelmanagementsystem.

JayVora-SerpentCS avatar JayVora-SerpentCS commented on July 28, 2024

@Danisan Its resolved in Official Odoo. Please check odoo/odoo#5761.

from odoohotelmanagementsystem.

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.