This related field working fine in odoo 9
, but not in odoo 10
. The field customer_id
not updated when I create a new record with nomor_hp_id
.
nomor_hp_id = fields.Many2one(
string='Nomor hp',
comodel_name='nomor.hp',
ondelete='cascade',
)
customer_id = fields.Many2one(
string='Customer',
related='nomor_hp_id.customer_id',
ondelete='cascade',
store=True,
readonly=True,
)
Try to start new database but the result still not updated.