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

Hi,

I create new module, In this module have two custom fields,

first field many2one

second field char

I create one function for inherit module,In that function used for onchange field of second field.

after i create function nothing is coming,please find the below code.


class InheritProductProduct(models.Model):

_inherit = 'product.template'

num_code = fields.Char('Num Code')

@api.onchange('categ_id')
def num_code(self):
        _logger.info(self)
for record in self:
_logger.info("RECORD :",record)


If i change category, field num_code automatically change.num_code is already in category table.


Nothing comes in log file


アバター
破棄
著作者 最善の回答

I FIX MYSELF, THANKS

アバター
破棄
関連投稿 返信 ビュー 活動
2
9月 25
536
1
10月 25
667
2
6月 25
2195
0
3月 25
2078
0
2月 25
1569