mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[ADD] server_action_navigate
This commit is contained in:
committed by
Ashish Hirpara
parent
52c3496ec4
commit
b5e9abc711
40
server_action_navigate/views/view_ir_actions_server.xml
Normal file
40
server_action_navigate/views/view_ir_actions_server.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="view_ir_actions_server_form" model="ir.ui.view">
|
||||
<field name="model">ir.actions.server</field>
|
||||
<field name="inherit_id" ref="base.view_server_action_form"/>
|
||||
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='code']" position="after">
|
||||
<page string="Navigation Options" name='page_navigate' autofocus="autofocus"
|
||||
attrs="{'invisible': [('state', '!=', 'navigate')]}">
|
||||
<group>
|
||||
<field name="max_navigate_line_sequence" invisible="1"/>
|
||||
<field name="max_navigate_line_model" invisible="1"/>
|
||||
<!-- we can check emptyness of a 2many like this since v10 i think /-->
|
||||
<button name="delete_last_line" string="Delete Last Line" type="object"
|
||||
attrs="{'invisible': [('navigate_line_ids', '=', [])]}"/>
|
||||
<field name="navigate_line_ids" context="{'navigate_line_ids': navigate_line_ids}" nolabel="1" colspan="4">
|
||||
<tree editable="bottom" delete="false">
|
||||
<!-- the handle widget takes care of the sequence /-->
|
||||
<field name="sequence" widget="handle" invisible="True" />
|
||||
<field name="field_id" />
|
||||
<field name="field_model"/>
|
||||
</tree>
|
||||
</field>
|
||||
<field name="navigate_action_id"
|
||||
attrs="{'invisible': [('navigate_line_ids', '=', [])]}"/>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user