Hello,
I have a custom field (x_epoch) in crm model and sale order model. How can i passing the value from the first form to second?. Oportunitie (x_epoch) -> Sales Order (x_epoch) and save the last in sales order.
Thanks in advance!
Mauricio
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I have a custom field (x_epoch) in crm model and sale order model. How can i passing the value from the first form to second?. Oportunitie (x_epoch) -> Sales Order (x_epoch) and save the last in sales order.
Thanks in advance!
Mauricio
Hi,
You can use related field to store value from crm model to sale order model
name = fields.Char(related='related_field.name', string='Name', store=True) |
Thanks! I am new in odoo programming.
I try to update in the sale.order model code but the server before restart do not responding ...
related_field = fields.Many2one('crm.lead', 'CRM', required=True)
sale_x_epoch = fields.Char(related='related_field.x_epoch', string='Epoch Data', store=True)
I think I'm doing it wrong ... :(
Thanks in advance,
Mauricio
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up