Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2832 Lượt xem

Hello,

I'm trying to add some values into many2many fields of product.template (taxes_id, supplier_taxes_id).
But I'm facing a really annoying problem, Odoo tells me the fields doesn't exists :

ProgrammingError: column "supplier_taxes_id" of relation "product_template" does not exist


I checked into psql, and indeed the fields doesn't exist for database too (there are not related or computed fields).

So I also checked other fields of this model, and it seems the product.template inheritance from modules account and purchase is broken. Any fields of these modules exists. But for inherited product.template "sales" module, it's working...

I don't understand what's going on, and I absolutelly need to solve this problem quickly. Anyone has an idea please ?


ps: I'm working on odoo10.0 community

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

Hi subbarao,

This problem is independant of any custom module. I tested it on a new database with only the necessary module, and it's the same.

The "table" product_taxes_rel exist in psql, but link not. I should be able to acces to the many2many ids throught this link, but impossible.

Câu trả lời hay nhất

Have you added product module as dependency in you module?

Have you added .py files import in the __init__.py?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 17
6856
2
thg 6 17
6036
4
thg 3 24
3421
1
thg 11 24
20071
1
thg 10 23
5371