Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1227 Tampilan

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


Avatar
Buang
Penulis Jawaban Terbai

I FIX MYSELF, THANKS

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Sep 25
535
1
Okt 25
667
2
Jun 25
2194
0
Mar 25
2077
0
Feb 25
1568