Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018-10-18 10:34:27,670 7313 ERROR test-multi odoo.addons.website_sale.models.website: Fail to find pricelist for partner "Public user for Second company" (id 8)
- 2018-10-18 10:34:27,720 7313 INFO test-multi werkzeug: 127.0.0.1 - - [18/Oct/2018 10:34:27] "POST /product_configurator/show_optional_products_website HTTP/1.1" 200 - 26 0.033 0.070
- 2018-10-18 10:34:27,789 7313 ERROR test-multi odoo.addons.website_sale.models.website: Fail to find pricelist for partner "Public user for Second company" (id 8)
- 2018-10-18 10:34:27,806 7313 ERROR test-multi odoo.sql_db: bad query: b'INSERT INTO "sale_order" ("id", "create_uid", "create_date", "write_uid", "write_date", "cart_recovery_email_sent", "company_id", "date_order", "name", "note", "partner_id", "partner_invoice_id", "partner_shipping_id", "payment_term_id", "pricelist_id", "require_payment", "require_signature", "state", "team_id", "user_id", "validity_date", "website_id") VALUES (nextval(\'sale_order_id_seq\'), 1, (now() at time zone \'UTC\'), 1, (now() at time zone \'UTC\'), false, 2, \'2018-10-18 10:34:27\', \'SO009\', \'\', 8, 8, 8, 1, NULL, false, false, \'draft\', NULL, NULL, NULL, 3) RETURNING id'
- ERROR: null value in column "pricelist_id" violates not-null constraint
- DETAIL: Failing row contains (9, null, null, SO009, null, null, null, draft, 2018-10-18 10:34:27, null, f, f, 2018-10-18 10:34:27.771378, null, null, 8, 8, 8, null, null, null, , null, null, null, null, 1, null, 2, null, null, null, 1, 1, 2018-10-18 10:34:27.771378, f, 3, null).
- 2018-10-18 10:34:27,812 7313 ERROR test-multi odoo.addons.website.models.ir_http: 500 Internal Server Error:
- Traceback (most recent call last):
- File "/home/sbu/odoo/odoo/service/model.py", line 97, in wrapper
- return f(dbname, *args, **kwargs)
- File "/home/sbu/odoo/odoo/http.py", line 337, in checked_call
- result = self.endpoint(*a, **kw)
- File "/home/sbu/odoo/odoo/http.py", line 938, in __call__
- return self.method(*args, **kw)
- File "/home/sbu/odoo/odoo/http.py", line 517, in response_wrap
- response = f(*args, **kw)
- File "/home/sbu/odoo/addons/website_sale/controllers/main.py", line 399, in cart_update
- request.website.sale_get_order(force_create=1)._cart_update(
- File "/home/sbu/odoo/addons/website_sale/models/website.py", line 229, in sale_get_order
- sale_order = self.env['sale.order'].sudo().create(so_data)
- File "<decorator-gen-209>", line 2, in create
- File "/home/sbu/odoo/odoo/api.py", line 430, in _model_create_single
- return create(self, arg)
- File "/home/sbu/odoo/addons/sale/models/sale.py", line 380, in create
- result = super(SaleOrder, self).create(vals)
- File "<decorator-gen-111>", line 2, in create
- File "/home/sbu/odoo/odoo/api.py", line 451, in _model_create_multi
- return create(self, [arg])
- File "/home/sbu/odoo/addons/mail/models/mail_thread.py", line 271, in create
- threads = super(MailThread, self).create(vals_list)
- File "<decorator-gen-3>", line 2, in create
- File "/home/sbu/odoo/odoo/api.py", line 452, in _model_create_multi
- return create(self, arg)
- File "/home/sbu/odoo/odoo/models.py", line 3504, in create
- records = self._create(data_list)
- File "/home/sbu/odoo/odoo/models.py", line 3604, in _create
- cr.execute(query, params)
- File "/home/sbu/odoo/odoo/sql_db.py", line 148, in wrapper
- return f(self, *args, **kwargs)
- File "/home/sbu/odoo/odoo/sql_db.py", line 225, in execute
- res = self._obj.execute(query, params)
- psycopg2.IntegrityError: null value in column "pricelist_id" violates not-null constraint
- DETAIL: Failing row contains (9, null, null, SO009, null, null, null, draft, 2018-10-18 10:34:27, null, f, f, 2018-10-18 10:34:27.771378, null, null, 8, 8, 8, null, null, null, , null, null, null, null, 1, null, 2, null, null, null, 1, 1, 2018-10-18 10:34:27.771378, f, 3, null).
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/sbu/odoo/odoo/addons/base/models/ir_http.py", line 203, in _dispatch
- result = request.dispatch()
- File "/home/sbu/odoo/odoo/http.py", line 832, in dispatch
- r = self._call_function(**self.params)
- File "/home/sbu/odoo/odoo/http.py", line 344, in _call_function
- return checked_call(self.db, *args, **kwargs)
- File "/home/sbu/odoo/odoo/service/model.py", line 139, in wrapper
- raise ValidationError(msg)
- odoo.exceptions.ValidationError: ('The operation cannot be completed, probably due to the following:\n- deletion: you may be trying to delete a record while other records still reference it\n- creation/update: a mandatory field is not correctly set\n\n[object with reference: pricelist_id - pricelist.id]', None)
- 2018-10-18 10:34:27,817 7313 ERROR test-multi odoo.sql_db: bad query: b'SELECT "ir_ui_view".id FROM "ir_ui_view" LEFT JOIN "website" as "ir_ui_view__website_id" ON ("ir_ui_view"."website_id" = "ir_ui_view__website_id"."id") WHERE (("ir_ui_view"."active" = true) AND (("ir_ui_view"."key" = \'website.500\') AND (("ir_ui_view"."website_id" in (3)) OR "ir_ui_view"."website_id" IS NULL))) ORDER BY "ir_ui_view__website_id"."id" limit 1'
- ERROR: current transaction is aborted, commands ignored until end of transaction block
- 2018-10-18 10:34:27,820 7313 ERROR test-multi odoo.sql_db: bad query: b'SELECT "ir_ui_view".id FROM "ir_ui_view" LEFT JOIN "website" as "ir_ui_view__website_id" ON ("ir_ui_view"."website_id" = "ir_ui_view__website_id"."id") WHERE (("ir_ui_view"."active" = true) AND (("ir_ui_view"."key" = \'website.http_error\') AND (("ir_ui_view"."website_id" in (3)) OR "ir_ui_view"."website_id" IS NULL))) ORDER BY "ir_ui_view__website_id"."id" limit 1'
- ERROR: current transaction is aborted, commands ignored until end of transaction block
- 2018-10-18 10:34:27,830 7313 INFO test-multi werkzeug: 127.0.0.1 - - [18/Oct/2018 10:34:27] "POST /shop/cart/update HTTP/1.1" 500 - 31 0.019 0.061
- 2018-10-18 10:34:27,836 7313 ERROR test-multi werkzeug: Error on request:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
- execute(self.server.app)
- File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 193, in execute
- application_iter = app(environ, start_response)
- File "/home/sbu/odoo/odoo/service/server.py", line 337, in app
- return self.app(e, s)
- File "/home/sbu/odoo/odoo/service/wsgi_server.py", line 128, in application
- return application_unproxied(environ, start_response)
- File "/home/sbu/odoo/odoo/service/wsgi_server.py", line 117, in application_unproxied
- result = odoo.http.root(environ, start_response)
- File "/home/sbu/odoo/odoo/http.py", line 1317, in __call__
- return self.dispatch(environ, start_response)
- File "/home/sbu/odoo/odoo/http.py", line 1290, in __call__
- return self.app(environ, start_wrapped)
- File "/usr/local/lib/python3.6/dist-packages/werkzeug/wsgi.py", line 599, in __call__
- return self.app(environ, start_response)
- File "/home/sbu/odoo/odoo/http.py", line 1485, in dispatch
- result = ir_http._dispatch()
- File "/home/sbu/odoo/addons/website_sale/models/ir_http.py", line 15, in _dispatch
- return super(IrHttp, cls)._dispatch()
- File "/home/sbu/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
- return super(Http, cls)._dispatch()
- File "/home/sbu/odoo/addons/web_editor/models/ir_http.py", line 22, in _dispatch
- return super(IrHttp, cls)._dispatch()
- File "/home/sbu/odoo/addons/http_routing/models/ir_http.py", line 394, in _dispatch
- result = super(IrHttp, cls)._dispatch()
- File "/home/sbu/odoo/odoo/addons/base/models/ir_http.py", line 207, in _dispatch
- return cls._handle_exception(e)
- File "/home/sbu/odoo/addons/website/models/ir_http.py", line 237, in _handle_exception
- html = request.env['ir.ui.view'].render_template('website.http_error', values)
- File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 1269, in render_template
- return self.browse(self.get_view_id(template)).render(values, engine)
- File "<decorator-gen-155>", line 2, in get_view_id
- File "/home/sbu/odoo/odoo/tools/cache.py", line 93, in lookup
- value = d[key] = self.method(*args, **kwargs)
- File "/home/sbu/odoo/addons/website/models/ir_ui_view.py", line 202, in get_view_id
- view = self.search(domain, order='website_id', limit=1)
- File "/home/sbu/odoo/odoo/models.py", line 1553, in search
- res = self._search(args, offset=offset, limit=limit, order=order, count=count)
- File "/home/sbu/odoo/odoo/models.py", line 4053, in _search
- self._cr.execute(query_str, where_clause_params)
- File "/home/sbu/odoo/odoo/sql_db.py", line 148, in wrapper
- return f(self, *args, **kwargs)
- File "/home/sbu/odoo/odoo/sql_db.py", line 225, in execute
- res = self._obj.execute(query, params)
- psycopg2.InternalError: current transaction is aborted, commands ignored until end of transaction block - - -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement