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

Hi guys. I'm creating a custom module which is supposed to inherit from a model (Custom Object) created with odoo studio. 
Yes, I know I can just develop the module entirely with code but for some reason I can't touch the module created with Studio, therefore I can only extends its functionalities.
I'm triying the following code but isn't working. Any idea?

notes: 
    - "x_estimate_request" does exist as a model (custom object by odoo studio)
    

class EstimateRequest(models.Model):
    _inherit = "x_estimate_request"    
    _description = "Estimate Request Inherited"
    
     some_field = fields.Char(string="Test Field")

الصورة الرمزية
إهمال
أفضل إجابة

Hi Mathias,

The custom module that you created with Studio is only applicable within that database. If you want to further customize the model using Python, you may need to export your custom models or fields and save the downloaded zip file. Then, extract the file into your project and make necessary adjustments to the manifest file, such as updating the license. This process may help you integrate Studio-generated customizations into your Python-based development workflow.


Hope it helps

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
فبراير 24
2751
2
يناير 23
8621
1
يناير 24
3569
4
فبراير 25
2294
1
أغسطس 24
1956