Skip to Content
मेन्यू
This question has been flagged
1 Reply
1240 Views

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
Discard
Author Best Answer

I FIX MYSELF, THANKS

Avatar
Discard
Related Posts Replies Views Activity
2
सित॰ 25
560
1
अक्तू॰ 25
674
2
जून 25
2209
0
मार्च 25
2096
0
फ़र॰ 25
1580