2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_server_action_form_website">
|
|
|
|
<field name="name">ir.actions.server.form.website</field>
|
|
|
|
<field name="model">ir.actions.server</field>
|
|
|
|
<field name="inherit_id" ref="base.view_server_action_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<data>
|
|
|
|
<xpath expr="//field[@name='state']" position="after">
|
|
|
|
<field name="website_published"
|
|
|
|
attrs="{'invisible': [('state', '!=', 'code')]}"/>
|
|
|
|
<field name="xml_id" invisible="1"/>
|
|
|
|
<field name="website_path"
|
|
|
|
attrs="{'invisible': ['|', ('website_published', '!=', True), ('state', '!=', 'code')]}"/>
|
|
|
|
<field name="website_url" readonly="1" widget="url"
|
|
|
|
attrs="{'invisible': ['|', ('website_published', '!=', True), ('state', '!=', 'code')]}"/>
|
|
|
|
</xpath>
|
|
|
|
</data>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_server_action_tree_website">
|
|
|
|
<field name="name">ir.actions.server.tree.website</field>
|
|
|
|
<field name="model">ir.actions.server</field>
|
|
|
|
<field name="inherit_id" ref="base.view_server_action_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//field[@name='model_id']" position="after">
|
|
|
|
<field name="website_url"/>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_server_action_search_website">
|
|
|
|
<field name="name">ir.actions.server.search.website</field>
|
|
|
|
<field name="model">ir.actions.server</field>
|
|
|
|
<field name="inherit_id" ref="base.view_server_action_search"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//field[@name='state']" position="after">
|
|
|
|
<filter string="Website" name="website"
|
|
|
|
domain="[('website_published', '=', True), ('state', '=', 'code')]"/>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|