Skip to content

Instantly share code, notes, and snippets.

@aannganyelne
Created October 11, 2022 08:12
Show Gist options
  • Save aannganyelne/97b3332d8910ca90f29e24e54ea41bde to your computer and use it in GitHub Desktop.
Save aannganyelne/97b3332d8910ca90f29e24e54ea41bde to your computer and use it in GitHub Desktop.
Odoo Force Save Readonly Field

use attribute force_save="1" in view to save value of readonly field.

<field name="payment_type" readonly="1" force_save="1"/>

it will save value of payment_type field when onchange trigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment