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

I have copy inherited the purchase.order model in my custom module, and named the model purchase.order.copy.

classPurhcasePi(models.Model):
​_name="purchase.order.copy"
​_inherit= ['purchase.order','mail.thread', 'mail.activity.mixin']
​_description="Purchase order copy"

but when I try to create and save the record, it loads forever saying "Take a minute to get a coffee, because it's loading".

it doesn't give any error in the log file or in the front end.

Ảnh đại diện
Huỷ bỏ

see the odoo log to understand what's going on

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

Hi,
Make sure that,

 1. Check the class name . Give it as class PurchasePi(models.Model):

2. 'purchase' and 'mail' modules are added to the dependencies key of the manifest file.

3. Check if there are any overriding functions.

Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 23
4473
1
thg 10 17
4490
1
thg 3 15
6507
2
thg 5 25
2238
4
thg 2 25
2780