Skip to content

Instantly share code, notes, and snippets.

@sehrishnaz
Created May 23, 2020 05:55
Show Gist options
  • Select an option

  • Save sehrishnaz/0b1bf3ca486d2cf8db704c2ae7f422e3 to your computer and use it in GitHub Desktop.

Select an option

Save sehrishnaz/0b1bf3ca486d2cf8db704c2ae7f422e3 to your computer and use it in GitHub Desktop.
Show one2many field records as radio button in odoo wizard, Convert one2many field into selection field | Odoo, Use radio widget in one2many field | Odoo, Set default value of selection field using context | Odoo, Fill selection field using context | Odoo, Mapping one2many field into selection field | Odoo
<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="wizard_model_form">
<field name="name">wizard.model.form.name</field>
<field name="model">wizard.model.name</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Form Name">
<sheet>
<header>
<button name="button_event" type="object" string="Load Radio Widget" class=" oe_highlight"/>
</header>
<group>
<field name="selection_field_name" widget="radio"/>
</group>
<group>
</sheet>
</form>
</field>
</record>
</data>
</openerp>
@sehrishnaz
Copy link
Author

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