Hi all,
I have a related field, and lot of data s with the field. Now i need to remove the related attribute from the field, means now i need to use the field as a normal field, but without losing the data. Is that possible ?
Note : It is a Many2one field.
Any suggestions ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
1
Odpovědět
6720
Zobrazení
Hi,
You can do the above by re-writing the field and set the related attribute to '' (related='').
Eg:
field_name = fields.Many2one('your_relation', related='')
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
how to add a related field many2one?
Vyřešeno
|
|
2
bře 15
|
17282 | |
|
1
led 19
|
3535 | ||
Add New Operation Type in Warehouse
Vyřešeno
|
|
2
pro 24
|
4452 | |
|
1
lis 24
|
3225 | ||
|
2
dub 23
|
18237 |