I went to set a default values for a one2many field odoo ike this:
how can i do that
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I went to set a default values for a one2many field odoo ike this:
how can i do that
Add context="{'default_<field>... in your one2many field in the view definition. Here's an example.
https://github.com/odoo/odoo/blob/12.0/addons/product/views/product_views.xml#L75
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jul 24
|
939 | ||
|
1
Jun 24
|
3560 | ||
|
1
Oct 23
|
8582 | ||
|
1
Oct 23
|
97 | ||
413 Request Entity Too Large
Solved
|
|
1
Aug 23
|
2192 |
To get parent value in one2many we may use context in XML: https://goo.gl/XXg5D3