12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <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>
- </odoo>
|