コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2387 ビュー

Hello, 

I would like to know if it's possible or not to call a odoo studio field in a model like this ?

class sale_order(models.Model):
    _inherit = "sale.order"
        
     @api.onchange('x_studio_first_field')
    def _onchange_firstfield(self):
        if self.x_studio_first_field:
            self.x_studio_second_field = self.x_studio_first_field
アバター
破棄
最善の回答

Hi Neyro:

Technically, you can do this provided the Studio based changes have been applied to the database before you install/upgrade the custom module.

One thing to watch out for in such cases, is to ensure that you don't end up with a circular dependency between the studio based customization and the code based customization.

アバター
破棄
著作者

I was careful to meet the conditions you mentioned and it works!

Thanks a lot!

関連投稿 返信 ビュー 活動
1
9月 25
766
2
10月 23
4618
0
6月 22
23
1
12月 21
6898
2
12月 20
4755