تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال

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?!?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أغسطس 23
10219
2
سبتمبر 24
3966
1
مايو 24
1772
1
مايو 24
2364
1
مايو 24
2488