Hi,
How to prevent the "Add an item" of One2Many widget from showing a popup form if the parent form is not saved?
Regards,
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
How to prevent the "Add an item" of One2Many widget from showing a popup form if the parent form is not saved?
Regards,
Hello Emad,
We can do a simple trick. Every model has ID field, will generated automatically after saving, before saving this field has no value.
So in your form view of the parent add
<field name="id" invisible="1"/>
then in your o2m field add attrs like :
<field name="o2m_ids" attrs="{'readonly': [('id','=',False)]}">
<tree editable="bottom">
....I hope it'll help you
Regards ....
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
3
huhtik. 15
|
5574 | |||
|
1
syysk. 20
|
3618 | |||
|
0
kesäk. 18
|
3936 | |||
|
0
maalisk. 15
|
6359 | |||
|
How to make pop ups after actions?
Ratkaistu
|
2
heinäk. 25
|
9185 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.