Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.84 KB | None | 0 0
  1. 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)
  2. 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
  3. 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)
  4. 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'
  5. ERROR: null value in column "pricelist_id" violates not-null constraint
  6. 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).
  7.  
  8. 2018-10-18 10:34:27,812 7313 ERROR test-multi odoo.addons.website.models.ir_http: 500 Internal Server Error:
  9.  
  10. Traceback (most recent call last):
  11. File "/home/sbu/odoo/odoo/service/model.py", line 97, in wrapper
  12. return f(dbname, *args, **kwargs)
  13. File "/home/sbu/odoo/odoo/http.py", line 337, in checked_call
  14. result = self.endpoint(*a, **kw)
  15. File "/home/sbu/odoo/odoo/http.py", line 938, in __call__
  16. return self.method(*args, **kw)
  17. File "/home/sbu/odoo/odoo/http.py", line 517, in response_wrap
  18. response = f(*args, **kw)
  19. File "/home/sbu/odoo/addons/website_sale/controllers/main.py", line 399, in cart_update
  20. request.website.sale_get_order(force_create=1)._cart_update(
  21. File "/home/sbu/odoo/addons/website_sale/models/website.py", line 229, in sale_get_order
  22. sale_order = self.env['sale.order'].sudo().create(so_data)
  23. File "<decorator-gen-209>", line 2, in create
  24. File "/home/sbu/odoo/odoo/api.py", line 430, in _model_create_single
  25. return create(self, arg)
  26. File "/home/sbu/odoo/addons/sale/models/sale.py", line 380, in create
  27. result = super(SaleOrder, self).create(vals)
  28. File "<decorator-gen-111>", line 2, in create
  29. File "/home/sbu/odoo/odoo/api.py", line 451, in _model_create_multi
  30. return create(self, [arg])
  31. File "/home/sbu/odoo/addons/mail/models/mail_thread.py", line 271, in create
  32. threads = super(MailThread, self).create(vals_list)
  33. File "<decorator-gen-3>", line 2, in create
  34. File "/home/sbu/odoo/odoo/api.py", line 452, in _model_create_multi
  35. return create(self, arg)
  36. File "/home/sbu/odoo/odoo/models.py", line 3504, in create
  37. records = self._create(data_list)
  38. File "/home/sbu/odoo/odoo/models.py", line 3604, in _create
  39. cr.execute(query, params)
  40. File "/home/sbu/odoo/odoo/sql_db.py", line 148, in wrapper
  41. return f(self, *args, **kwargs)
  42. File "/home/sbu/odoo/odoo/sql_db.py", line 225, in execute
  43. res = self._obj.execute(query, params)
  44. psycopg2.IntegrityError: null value in column "pricelist_id" violates not-null constraint
  45. 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).
  46.  
  47.  
  48. During handling of the above exception, another exception occurred:
  49.  
  50. Traceback (most recent call last):
  51. File "/home/sbu/odoo/odoo/addons/base/models/ir_http.py", line 203, in _dispatch
  52. result = request.dispatch()
  53. File "/home/sbu/odoo/odoo/http.py", line 832, in dispatch
  54. r = self._call_function(**self.params)
  55. File "/home/sbu/odoo/odoo/http.py", line 344, in _call_function
  56. return checked_call(self.db, *args, **kwargs)
  57. File "/home/sbu/odoo/odoo/service/model.py", line 139, in wrapper
  58. raise ValidationError(msg)
  59. 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)
  60.  
  61. 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'
  62. ERROR: current transaction is aborted, commands ignored until end of transaction block
  63.  
  64. 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'
  65. ERROR: current transaction is aborted, commands ignored until end of transaction block
  66.  
  67. 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
  68. 2018-10-18 10:34:27,836 7313 ERROR test-multi werkzeug: Error on request:
  69. Traceback (most recent call last):
  70. File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
  71. execute(self.server.app)
  72. File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 193, in execute
  73. application_iter = app(environ, start_response)
  74. File "/home/sbu/odoo/odoo/service/server.py", line 337, in app
  75. return self.app(e, s)
  76. File "/home/sbu/odoo/odoo/service/wsgi_server.py", line 128, in application
  77. return application_unproxied(environ, start_response)
  78. File "/home/sbu/odoo/odoo/service/wsgi_server.py", line 117, in application_unproxied
  79. result = odoo.http.root(environ, start_response)
  80. File "/home/sbu/odoo/odoo/http.py", line 1317, in __call__
  81. return self.dispatch(environ, start_response)
  82. File "/home/sbu/odoo/odoo/http.py", line 1290, in __call__
  83. return self.app(environ, start_wrapped)
  84. File "/usr/local/lib/python3.6/dist-packages/werkzeug/wsgi.py", line 599, in __call__
  85. return self.app(environ, start_response)
  86. File "/home/sbu/odoo/odoo/http.py", line 1485, in dispatch
  87. result = ir_http._dispatch()
  88. File "/home/sbu/odoo/addons/website_sale/models/ir_http.py", line 15, in _dispatch
  89. return super(IrHttp, cls)._dispatch()
  90. File "/home/sbu/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
  91. return super(Http, cls)._dispatch()
  92. File "/home/sbu/odoo/addons/web_editor/models/ir_http.py", line 22, in _dispatch
  93. return super(IrHttp, cls)._dispatch()
  94. File "/home/sbu/odoo/addons/http_routing/models/ir_http.py", line 394, in _dispatch
  95. result = super(IrHttp, cls)._dispatch()
  96. File "/home/sbu/odoo/odoo/addons/base/models/ir_http.py", line 207, in _dispatch
  97. return cls._handle_exception(e)
  98. File "/home/sbu/odoo/addons/website/models/ir_http.py", line 237, in _handle_exception
  99. html = request.env['ir.ui.view'].render_template('website.http_error', values)
  100. File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 1269, in render_template
  101. return self.browse(self.get_view_id(template)).render(values, engine)
  102. File "<decorator-gen-155>", line 2, in get_view_id
  103.  
  104. File "/home/sbu/odoo/odoo/tools/cache.py", line 93, in lookup
  105. value = d[key] = self.method(*args, **kwargs)
  106. File "/home/sbu/odoo/addons/website/models/ir_ui_view.py", line 202, in get_view_id
  107. view = self.search(domain, order='website_id', limit=1)
  108. File "/home/sbu/odoo/odoo/models.py", line 1553, in search
  109. res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  110. File "/home/sbu/odoo/odoo/models.py", line 4053, in _search
  111. self._cr.execute(query_str, where_clause_params)
  112. File "/home/sbu/odoo/odoo/sql_db.py", line 148, in wrapper
  113. return f(self, *args, **kwargs)
  114. File "/home/sbu/odoo/odoo/sql_db.py", line 225, in execute
  115. res = self._obj.execute(query, params)
  116. psycopg2.InternalError: current transaction is aborted, commands ignored until end of transaction block - - -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement