Bỏ qua để đến Nội dung
Odoo Menu
  • Đăng nhập
  • Dùng thử miễn phí
  • Ứng dụng
    Tài chính
    • Kế toán
    • Hóa đơn
    • Chi phí
    • Bảng tính (BI)
    • Tài liệu
    • Ký tên
    Bán hàng
    • CRM
    • Bán hàng
    • POS Cửa hàng
    • POS Nhà hàng
    • Đăng ký
    • Cho thuê
    Trang web
    • Trình tạo trang web
    • Thương mại điện tử
    • Blog
    • Diễn đàn
    • Trò chuyện trực tiếp
    • Học trực tuyến
    Chuỗi cung ứng
    • Tồn kho
    • Sản xuất
    • PLM
    • Mua hàng
    • Bảo dưỡng
    • Chất lượng
    Nhân sự
    • Nhân viên
    • Tuyển dụng
    • Ngày nghỉ
    • Đánh giá
    • Giới thiệu
    • Đội xe
    Marketing
    • Marketing trên MXH
    • Marketing qua email
    • Marketing qua SMS
    • Sự kiện
    • Tự động hóa Marketing
    • Khảo sát
    Dịch vụ
    • Dự án
    • Bảng chấm công
    • Dịch vụ hiện trường
    • Hỗ trợ
    • Kế hoạch
    • Lịch hẹn
    Năng suất
    • Thảo luận
    • Phê duyệt
    • IoT
    • VoIP
    • Kiến thức
    • WhatsApp
    Ứng dụng của bên thứ ba Studio Odoo Nền tảng Đám mây Odoo
  • Ngành
    Bán lẻ
    • Nhà sách
    • Cửa hàng quần áo
    • Cửa hàng nội thất
    • Cửa hàng tạp hóa
    • Cửa hàng đồ kim khí
    • Cửa hàng đồ chơi
    Ẩm thực & Dịch vụ lưu trú
    • Bar và quán rượu
    • Nhà hàng
    • Đồ ăn nhanh
    • Guest house
    • Nhà phân phối đồ uống
    • Khách sạn
    Bất động sản
    • Công ty môi giới bất động sản
    • Công ty kiến trúc
    • Xây dựng
    • Quản lý bất động sản
    • Làm vườn
    • Hiệp hội chủ sở hữu bất động sản
    Tư vấn
    • Công ty kế toán
    • Đối tác Odoo
    • Công ty marketing
    • Công ty luật
    • Tuyển dụng
    • Thanh tra & chứng nhận
    Sản xuất
    • Dệt may
    • Kim loại
    • Nội thất
    • Ẩm thực
    • Nhà máy bia
    • Quà tặng doanh nghiệp
    Sức khoẻ & fitness
    • CLB thể thao
    • Cửa hàng kính mắt
    • Trung tâm fitness
    • Chuyên gia chăm sóc sức khỏe
    • Hiệu thuốc
    • Tiệm làm tóc
    Thương mại
    • Dịch vụ sửa chữa
    • Phần cứng CNTT & Hỗ trợ
    • Hệ thống năng lượng mặt trời
    • Công ty sản xuất giày
    • Dịch vụ vệ sinh
    • Dịch vụ HVAC
    Khác
    • Tổ chức phi lợi nhuận
    • Cơ quan môi trường
    • Cho thuê biển quảng cáo
    • Nhiếp ảnh
    • Cho thuê xe đạp
    • Đại lý phần mềm
    Xem tất cả ngành
  • Cộng đồng
    Học tập
    • Khóa học
    • Tài liệu
    • Chứng chỉ
    • Đào tạo
    • Blog
    • Podcast
    Thúc đẩy đào tạo
    • Chương trình đào tạo
    • Trò chơi kinh doanh Scale Up!
    • Tham quan Odoo
    Nhận phần mềm
    • Tải xuống
    • So sánh các phiên bản
    • Phiên bản
    Hợp tác
    • Github
    • Diễn đàn
    • Sự kiện
    • Dịch thuật
    • Trở thành đối tác
    • Dịch vụ dành cho Đối tác
    • Đăng ký công ty kế toán của bạn
    Nhận dịch vụ
    • Tìm đối tác
    • Tìm kế toán
    • Gặp chuyên gia hỗ trợ
    • Dịch vụ Triển khai
    • Khách hàng tham khảo
    • Hỗ trợ
    • Nâng cấp
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Nhận một buổi demo
  • Bảng giá
  • Trợ giúp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Kế toán
  • Tồn kho
  • PoS
  • Dự án
  • MRP
All apps
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Hỗ trợ

Odoo server error - Validation error [object with reference: invoice_warn - invoice.warn]

Đăng ký nhận tin

Nhận thông báo khi có hoạt động trên bài viết này

Câu hỏi này đã bị gắn cờ
validationinvite
2 Trả lời
7991 Lượt xem
Ảnh đại diện
Abdelkarim Mateos

Fresh install of Odoo server 11, trought Github method.

I like invite some users.


Get first problem.


Odoo Server Error - Validation Error

The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set

[object with reference: invoice_warn - invoice.warn]

https://dropbox.tamainut.net/owncloud/s/fBslBcaX4FWK8yj

0
Ảnh đại diện
Huỷ bỏ
Abdelkarim Mateos
Tác giả

2018-07-03 06:32:57,126 29751 INFO ws_odoo odoo.modules.loading: 33 modules loaded in 0.07s, 0 queries

2018-07-03 06:32:57,359 29751 INFO ws_odoo odoo.modules.loading: Modules loaded.

2018-07-03 06:32:57,361 29751 DEBUG ws_odoo odoo.modules.registry: Multiprocess signaling check: [Registry - 7 -> 7] [Cache - 181 -> 181]

2018-07-03 06:32:57,362 29751 INFO ws_odoo odoo.addons.base.ir.ir_http: Generating routing map

2018-07-03 06:32:57,395 29751 DEBUG ws_odoo odoo.api: call res.users().web_dashboard_create_users(['foulki@protonmail.com'])

2018-07-03 06:32:57,478 29751 ERROR ws_odoo odoo.sql_db: bad query: b'INSERT INTO "res_partner" ("id", "lang", "partner_share", "color", "email", "type", "is_company", "supplier", "employee", "company_id", "customer", "active", "opt_out", "tz", "name", "message_bounce", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval(\'res_partner_id_seq\'), \'es_ES\', false, 0, \'foulki@protonmail.com\', \'contact\', false, false, false, 1, true, true, false, NULL, \'foulki\', 0, 1, 1, (now() at time zone \'UTC\'), (now() at time zone \'UTC\')) RETURNING id'

ERROR: null value in column "invoice_warn" violates not-null constraint

DETAIL: Failing row contains (72, foulki, 1, null, null, null, null, null, es_ES, null, null, null, null, null, null, null, t, t, f, f, null, contact, null, null, null, null, null, null, foulki@protonmail.com, null, null, f, null, 0, f, null, null, null, null, 1, 2018-07-03 06:32:57.39597, 1, 2018-07-03 06:32:57.39597, null, null, 0, f, null, null, null, null, null, null, null, null, null).

2018-07-03 06:32:57,479 29751 DEBUG ws_odoo odoo.service.model: IntegrityError

Traceback (most recent call last):

File "/opt/odoo/odoo/odoo/service/model.py", line 97, in wrapper

return f(dbname, *args, **kwargs)

File "/opt/odoo/odoo/odoo/http.py", line 335, in checked_call

result = self.endpoint(*a, **kw)

File "/opt/odoo/odoo/odoo/http.py", line 936, in __call__

return self.method(*args, **kw)

File "/opt/odoo/odoo/odoo/http.py", line 515, in response_wrap

response = f(*args, **kw)

File "/opt/odoo/odoo/addons/web/controllers/main.py", line 931, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/opt/odoo/odoo/addons/web/controllers/main.py", line 923, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/opt/odoo/odoo/odoo/api.py", line 687, in call_kw

return call_kw_model(method, model, args, kwargs)

File "/opt/odoo/odoo/odoo/api.py", line 672, in call_kw_model

result = method(recs, *args, **kwargs)

File "/opt/odoo/odoo/addons/web_settings_dashboard/models/res_users.py", line 23, in web_dashboard_create_users

user = self.with_context(signup_valid=True).create(default_values)

File "/opt/odoo/odoo/addons/sales_team/models/res_users.py", line 17, in create

user = super(ResUsers, self).create(vals)

File "/opt/odoo/odoo/addons/auth_signup/models/res_users.py", line 144, in create

user = super(ResUsers, self).create(values)

File "/opt/odoo/odoo/addons/mail/models/res_users.py", line 57, in create

user = super(Users, self).create(values)

File "/opt/odoo/odoo/odoo/addons/base/res/res_users.py", line 850, in create

user = super(UsersView, self).create(values)

File "/opt/odoo/odoo/odoo/addons/base/res/res_users.py", line 687, in create

return super(UsersImplied, self).create(values)

File "/opt/odoo/odoo/odoo/addons/base/res/res_users.py", line 335, in create

user = super(Users, self).create(vals)

File "/opt/odoo/odoo/odoo/models.py", line 3373, in create

record = self.browse(self._create(old_vals))

File "/opt/odoo/odoo/odoo/models.py", line 3430, in _create

parent_id = self.env[parent_model].create(parent_vals).id

File "/opt/odoo/odoo/odoo/addons/base/res/res_partner.py", line 534, in create

partner = super(Partner, self).create(vals)

File "/opt/odoo/odoo/addons/mail/models/mail_thread.py", line 236, in create

thread = super(MailThread, self).create(values)

File "/opt/odoo/odoo/odoo/models.py", line 3373, in create

record = self.browse(self._create(old_vals))

File "/opt/odoo/odoo/odoo/models.py", line 3466, in _create

cr.execute(query, tuple(u[2] for u in updates if len(u) > 2))

File "/opt/odoo/odoo/odoo/sql_db.py", line 155, in wrapper

return f(self, *args, **kwargs)

File "/opt/odoo/odoo/odoo/sql_db.py", line 232, in execute

res = self._obj.execute(query, params)

psycopg2.IntegrityError: null value in column "invoice_warn" violates not-null constraint

DETAIL: Failing row contains (72, foulki, 1, null, null, null, null, null, es_ES, null, null, null, null, null, null, null, t, t, f, f, null, contact, null, null, null, null, null, null, foulki@protonmail.com, null, null, f, null, 0, f, null, null, null, null, 1, 2018-07-03 06:32:57.39597, 1, 2018-07-03 06:32:57.39597, null, null, 0, f, null, null, null, null, null, null, null, null, null).

2018-07-03 06:32:57,483 29751 INFO ws_odoo werkzeug: 79.150.116.102 - - [03/Jul/2018 06:32:57] "POST /web/dataset/call_kw/res.users/web_dashboard_create_users HTTP/1.1" 200 -

2018-07-03 06:32:57,522 29751 DEBUG ws_odoo odoo.modules.registry: Multiprocess signaling check: [Registry - 7 -> 7] [Cache - 181 -> 181]

2018-07-03 06:32:57,530 29751 INFO ? odoo.addons.bus.models.bus: Bus.loop listen imbus on db postgres

Ảnh đại diện
Câu trả lời hay nhất

Hi Abdelkarim,
'psycopg2.IntegrityError: null value in column "invoice_warn" violates not-null constraint'

This means you have already at least a record in the res.partner table in the database where the field invoice_warn is empty, and in the database it has a condition that it should be not empty.

Solution:

Query the database to get the record where this field is empty.

- Update the records and fill the field by directly querying the database.

Or

- If you do not care about the records, delete them.

Or remove the requirement on the field if you can accept it to be empty.

0
Ảnh đại diện
Huỷ bỏ
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!

Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!

Đăng ký
Bài viết liên quan Trả lời Lượt xem Hoạt động
perform Validation before Save on when value entered
validation
Ảnh đại diện
1
thg 2 24
27
Before edit a record event
validation
Ảnh đại diện
Ảnh đại diện
Ảnh đại diện
4
thg 9 15
5938
Invalid Operation Error
invite newuser
Ảnh đại diện
Ảnh đại diện
1
thg 2 25
1923
Invalid Operation - Invite new user
mail invite
Ảnh đại diện
Ảnh đại diện
Ảnh đại diện
Ảnh đại diện
3
thg 11 24
2073
Missing field string information for the field 'need_validation' from the 'task.budget' model Odoo16 Đã xử lý
validation MissingError
Ảnh đại diện
Ảnh đại diện
2
thg 8 23
3779
Cộng đồng
  • Khóa học
  • Tài liệu
  • Diễn đàn
Open source
  • Tải xuống
  • Github
  • Runbot
  • Dịch thuật
Dịch vụ
  • Lưu trữ Odoo.sh
  • Hỗ trợ
  • Nâng cấp
  • Phát triển tùy chỉnh
  • Đào tạo
  • Tìm kế toán
  • Tìm đối tác
  • Trở thành đối tác
Giới thiệu công ty
  • Công ty của chúng tôi
  • Tài sản thương hiệu
  • Liên hệ
  • Việc làm
  • Sự kiện
  • Podcast
  • Blog
  • Khách hàng
  • Pháp lý • Riêng tư
  • Bảo mật
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo là bộ ứng dụng kinh doanh có open source đáp ứng tất cả các nhu cầu của công ty bạn: CRM, thương mại điện tử, kế toán, tồn kho, POS, quản lý dự án, v.v.

Định hướng giá trị riêng biệt của Odoo là tích hợp hoàn toàn và dễ dàng sử dụng.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now