Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1205 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
вер. 25
520
1
жовт. 25
662
2
черв. 25
2187
0
бер. 25
2060
0
лют. 25
1560