Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Each time I load a module, I have this message :
upa_prod openerp.sql_db: bad query: delete from product_template where id IN (2)
Traceback (most recent call last):
File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "membership_id" violates not-null constraint
DÃTAIL : Failing row contains (8, 5, 2013-10-24 09:56:50.479517, 2013-10-24 09:56:50.479517, 5, 2013-01-01, 25.00, null, null, paid, 8, 2013-12-31, 2013-10-24, 25168, null). CONTEXTE : SQL statement "UPDATE ONLY "public"."membership_membership_line" SET "membership_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "membership_id""
I don't understand why updateing a module causes product template deletion.
Any help would be appreciated.
I found the reason of this. Actually, I have some record in a xml declared in the __openerp__.py For testing reasons, I commented the declaration in the openerp.py file. Due to that, openerp try to delete the record already created in this module. In the end, the simple way to solve this problem was to uncomment the declaration and then openerp doesn't try anymore to delete the records.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/17/13, 4:56 PM|
|Seen: 1132 times|
|Last updated: 3/16/15, 8:10 AM|