Hi,
I need to know how to duplicate one of the field value for another field without any action.is it possible or not.
if anyone knows please help me!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I need to know how to duplicate one of the field value for another field without any action.is it possible or not.
if anyone knows please help me!
Hi,
You can define the second field in which the value of the first field has to store as a Related field.
first_field = fields.Many2one('res.partner', string="Field 1")second_field = fields.Char(string="Field 2", related=first_field.name)
Check whether the above method is working or not. If not write value to second field using the onchange.
@api.onchange('first_field')def set_second_field(self):
if self.first_field:
self.second_field = self.first_field.name
Thanks
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
2
feb 24
|
17023 | |||
|
1
dic 22
|
5944 | |||
|
2
dic 22
|
15922 | |||
|
2
giu 22
|
8164 | |||
|
2
giu 22
|
5997 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.