Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1222 Visualizzazioni

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
Abbandona
Autore Risposta migliore

I FIX MYSELF, THANKS

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
set 25
531
1
ott 25
664
2
giu 25
2192
0
mar 25
2069
0
feb 25
1566