Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ

In website_sale mandatory shipping and billing fields are directly set in the class website_sale in the file main.py.

I try to make this more useful and set this attributes by settings in the database.

The problem is that these attributes are directly set in the class - so not wrapped in a function. So no Database Cursor is available to fetch the values from this attributes(variables).

I tried to build my own Database Access with:

registry = RegistryManager.get(tools.config.options.get('db_name')) 

But this only gives me access to basic models like res.partner but not to models like website or product.product?!? Maybe they are not already loaded / build at that time?

So what would be the correct way to fetch the values for mandatory_billing_fields from the database model website where i wrote them to?!?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 23
10414
Clean up Website Quotations แก้ไขแล้ว
2
ก.ย. 24
4319
1
ส.ค. 25
467
1
พ.ค. 24
1898
1
พ.ค. 24
2787