onboarding/views/onboarding_views.xml

110 lines
4.7 KiB
XML
Raw Normal View History

2024-05-03 12:58:20 +03:00
<?xml version="1.0"?>
<odoo>
<record id="onboarding_onboarding_view_tree" model="ir.ui.view">
<field name="name">onboarding.onboarding.view.tree</field>
<field name="model">onboarding.onboarding</field>
<field name="arch" type="xml">
<tree string="Onboardings">
<header>
<button name="action_toggle_visibility" type="object" string="Toggle visibility"/>
</header>
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="current_onboarding_state"/>
<field name="is_onboarding_closed"/>
<field name="is_per_company" optional="hide"/>
</tree>
</field>
</record>
<record id="onboarding_onboarding_view_form" model="ir.ui.view">
<field name="name">onboarding.onboarding.view.form</field>
<field name="model">onboarding.onboarding</field>
<field name="arch" type="xml">
<form>
<header>
<field name="current_progress_id" invisible="1"/>
<button name="action_toggle_visibility" type="object" string="Toggle visibility"
invisible="not current_progress_id"/>
</header>
<sheet>
<group col="2">
<field name="name"/>
<field name="route_name"/>
<field name="is_per_company"/>
<field name="is_onboarding_closed"/>
</group>
<notebook>
<page name="Onboarding steps">
<group string="Steps">
<field name="step_ids" nolabel="1" colspan="2"/>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="onboarding_onboarding_step_view_tree" model="ir.ui.view">
<field name="name">onboarding.onboarding.step.view.tree</field>
<field name="model">onboarding.onboarding.step</field>
<field name="arch" type="xml">
<tree string="Onboarding Steps">
<field name="sequence" widget="handle"/>
<field name="title"/>
<field name="onboarding_ids" optional="hide"/>
<field name="current_step_state"/>
<field name="is_per_company" optional="hide"/>
</tree>
</field>
</record>
<record id="onboarding_onboarding_step_view_form" model="ir.ui.view">
<field name="name">onboarding.onboarding.step.view.form</field>
<field name="model">onboarding.onboarding.step</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="title"/>
<field name="current_step_state"/>
<field name="panel_step_open_action_name"/>
<field name="is_per_company"/>
</group>
<notebook>
<page name="Onboardings using this step">
<group string="Onboardings">
<field name="onboarding_ids" nolabel="1" colspan="2"/>
</group>
</page>
<page name="Step rendering">
<group>
<field name="description"/>
<field name="button_text"/>
<field name="done_text"/>
<field name="done_icon"/>
<field name="step_image_filename" invisible="1"/>
<field name="step_image" filename="step_image_filename"/>
<field name="step_image_alt"/>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_view_onboarding_onboarding" model="ir.actions.act_window">
<field name="name">Onboardings</field>
<field name="res_model">onboarding.onboarding</field>
<field name="view_mode">tree,form</field>
</record>
<record id="action_view_onboarding_step" model="ir.actions.act_window">
<field name="name">Onboarding Steps</field>
<field name="res_model">onboarding.onboarding.step</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>