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!
RekisteröidyRelated Posts | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
2
heinäk. 24
|
939 | ||
|
1
kesäk. 24
|
3560 | ||
|
1
lokak. 23
|
8582 | ||
|
1
lokak. 23
|
97 | ||
413 Request Entity Too Large
Ratkaistu
|
|
1
elok. 23
|
2192 |
To get parent value in one2many we may use context in XML: https://goo.gl/XXg5D3