Write Value To Read-only Field From On-change Using Force Save Attribute

preview_player
Показать описание
#odootutorials #odoodevelopment #odoodevelopmenttutorials

How to write value to readonly field from onchange function using force save attribute. Use of force save attribute in Odoo. Write Value to readonly Field from Onchange function. Odoo development Tutorials how to use the force save attribute.

Рекомендации по теме
Комментарии
Автор

you have make awsome videos. kindly make a video on customer facing display please...

image
Автор

Hello Sir, just want to let you know that you can use Ctrl + Alt + l for autoindent xml files. Maybe you can find it more useful than doing manual indentation

ArmandoSchianodiCola
Автор

i am using odoo v10 and i apply force_save attribute on Product_uom_id field like this

<field name="product_uom_id" readonly="1" force_save="1" groups="product.group_uom"/>

but this is not working, field data invisible after save document.

please help me what should i do?

harismasqati
Автор

if we use save='True' .py file then the value will save in the database. So my question is that what is the difference between forced_save='1' in XML and save = 'True'? 2nd question is what is the difference between @api.onchange and @api.depends?
Thanks

AliRaza-tfuj
Автор

nice video....can you please make a video on how to use flag in odoo website
thank you

smittrambadia
Автор

2, 438 view should be likes 🫶🏼
Sharing:
Works great with _default_get() for one2many
I have one2many with a section with four options. I need to create for lines but didn't want the user to change the options when I was saving the section was not saves force_save="1" made it work or store=True

nromenero