You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.4 KiB
55 lines
2.4 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Multi follower action-->
|
|
<record id="multi_follower_action" model="ir.actions.act_window">
|
|
<field name="name">Multi Follower</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">multi.follower</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to add the followers dynamic action
|
|
</p>
|
|
</field>
|
|
</record>
|
|
<!-- Multi follower form view -->
|
|
<record id="multi_follower_view_form" model="ir.ui.view">
|
|
<field name="name">multi.follower.view.form</field>
|
|
<field name="model">multi.follower</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<field name="enabled_value" invisible="1"/>
|
|
<button name="action_create" string="Create Action"
|
|
type="object" class="btn-primary"
|
|
attrs="{'invisible':[('enabled_value','=',False)]}"/>
|
|
<button name="action_unlink" string="Remove Action"
|
|
type="object" class="btn-primary"
|
|
attrs="{'invisible':[('enabled_value','=',True)]}"/>
|
|
<field name="states" widget="statusbar"
|
|
statusbar_visible="draft,running"/>
|
|
</header>
|
|
<sheet>
|
|
<group>
|
|
<field name="action_name"
|
|
attrs="{'readonly': [('states', '=', 'running')]}"/>
|
|
<field name="created_action_names" invisible="1"/>
|
|
<field name="applied_to_ids" widget="many2many_tags"
|
|
attrs="{'readonly': [('states', '=', 'running')]}"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<!--Multi follower tree view-->
|
|
<record id="multi_follower_view_tree" model="ir.ui.view">
|
|
<field name="name">multi.follower.view.tree</field>
|
|
<field name="model">multi.follower</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Channel">
|
|
<field name="action_name"/>
|
|
<field name="applied_to_ids"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|