flectra/addons/digest/wizard/digest_custom_fields_view.xml

37 lines
1.7 KiB
XML
Raw Normal View History

2018-08-20 11:29:49 +02:00
<?xml version="1.0"?>
<flectra>
<record id="digest_custom_fields_view_form" model="ir.ui.view">
<field name="name">digest.custom.fields.form</field>
<field name="model">digest.custom.fields</field>
<field name="arch" type="xml">
<form string="Customized Digest">
<group col="4">
2018-08-20 11:29:49 +02:00
<field name="field_name"/>
<field name="label_name"/>
<field name="available_group_name" required="1"/>
<field name="position" required="1"/>
<field name="new_group_name" attrs="{'required': [('position', '!=', 'inside')], 'invisible': [('position', 'not in', ['before', 'after'])]}"/>
2018-08-20 11:29:49 +02:00
</group>
<group string="Compute Details">
<field name="compute_field_name"/>
<field name="ttype"/>
<field name="compute" widget="ace" options="{'mode': 'python'}"/>
</group>
<footer>
<button name="action_add_customize_digest" string="Save" type="object" class="btn btn-sm btn-primary"/>
2018-08-20 11:29:49 +02:00
<button string="Cancel" class="btn btn-sm btn-default" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="digest_custom_fields_action" model="ir.actions.act_window">
<field name="name">Customized Digest</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">digest.custom.fields</field>
<field name="view_mode">form</field>
<field name="view_id" ref="digest_custom_fields_view_form"/>
<field name="target">new</field>
</record>
</flectra>