Help

0

How To Update FIeld in another Model When new Record is created

Avatar
IQuantica

Hi,


I have a Model created by interface odoo, for another developer wtith relashionship many2many with res_partner.


I need update a field in res_partner every time a new record is created.


My custom table name:  x_crm_dental_02

Nome do CampoRótulo do CampoTipo do CampoNecessárioSomente LeituraIndexadoTipo
__last_updateLast Modified ondatetime
Campo Base
create_dateCreated ondatetime
Campo Base
create_uidCreated bymany2one
Campo Base
display_nameDisplay Namechar
Campo Base
idIDinteger
Campo Base
write_dateLast Updated ondatetime
Campo Base
write_uidLast Updated bymany2one
Campo Base
x_nameNamechar
Campo Personalizado
x_studio_celularCelularchar
Campo Personalizado
x_studio_cepCEPchar
Campo Personalizado
x_studio_cidadeCidadechar
Campo Personalizado
x_studio_clienteClientemany2one
Campo Personalizado
x_studio_complementoEndereco Completochar
Campo Personalizado
x_studio_cpfCPFchar
Campo Personalizado
x_studio_e_mail_empresarialE-Mail Empresarialchar
Campo Personalizado
x_studio_e_mail_pessoalE-Mail Pessoalchar
Campo Personalizado
x_studio_enderecoEnderecochar
Campo Personalizado
x_studio_estadoEstadochar
Campo Personalizado
x_studio_field_CMbTxHistoricomany2many
Campo Personalizado
x_studio_field_N1l4aDependentesmany2many
Campo Personalizado
x_studio_field_RhG6qStatusmany2one
Campo Personalizado
x_studio_field_ev3JEPlanosmany2one
Campo Personalizado
x_studio_historicoHistoricomany2many
Campo Personalizado
x_studio_rgRGchar
Campo Personalizado
x_studio_telefoneTelefonechar
Campo Personalizado
x_studio_valorValorchar
Campo Personalizado

every time a record is created in this table, I need to include that id in the corresponding record in the res_partner table.


Is it possible ?


I cant´t overrride this table´s create method...


 


Avatar
Discard