276 lines
11 KiB
XML
276 lines
11 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<flectra>
|
||
|
|
||
|
<!-- Recurring Views -->
|
||
|
<record id="view_recurring_form" model="ir.ui.view">
|
||
|
<field name="name">recurring.form</field>
|
||
|
<field name="model">recurring</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<form string="Recurrings">
|
||
|
<header>
|
||
|
<button name="set_process" states="draft" string="Process"
|
||
|
type="object" class="oe_highlight"/>
|
||
|
<button name="set_done" states="running" string="Stop"
|
||
|
type="object" class="oe_highlight"/>
|
||
|
<button name="set_draft" states="done"
|
||
|
string="Set to Draft" type="object"/>
|
||
|
<field name="state" widget="statusbar"
|
||
|
statusbar_visible="draft,running"/>
|
||
|
</header>
|
||
|
<sheet>
|
||
|
<group col="4">
|
||
|
<field name="name" required="1"/>
|
||
|
<field name="partner_id"/>
|
||
|
<field name="user_id" required="1"/>
|
||
|
<field name="active"/>
|
||
|
</group>
|
||
|
<notebook>
|
||
|
<page string="Recurring Data">
|
||
|
<group col="4">
|
||
|
<field name="interval_number"/>
|
||
|
<field name="interval_type"/>
|
||
|
<field name="exec_init"/>
|
||
|
<field name="date_init"/>
|
||
|
<field name="doc_source" required="1"/>
|
||
|
<field name="cron_id"/>
|
||
|
</group>
|
||
|
<separator string="Internal Notes"/>
|
||
|
<field name="notes"/>
|
||
|
</page>
|
||
|
<page string="Documents created">
|
||
|
<field name="doc_lines" widget="one2many_list"
|
||
|
readonly="1"/>
|
||
|
</page>
|
||
|
<page string="Notes">
|
||
|
<field name="note"/>
|
||
|
</page>
|
||
|
</notebook>
|
||
|
</sheet>
|
||
|
</form>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="view_recurring_tree" model="ir.ui.view">
|
||
|
<field name="name">recurring.tree</field>
|
||
|
<field name="model">recurring</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<tree string="Recurrings">
|
||
|
<field name="name"/>
|
||
|
<field name="partner_id"/>
|
||
|
<field name="active"/>
|
||
|
<field name="user_id"/>
|
||
|
<field name="state"/>
|
||
|
</tree>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="view_recurring_filter" model="ir.ui.view">
|
||
|
<field name="name">recurring.filter</field>
|
||
|
<field name="model">recurring</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<search string="Search Recurring">
|
||
|
<field name="name" string="Recurring"/>
|
||
|
<field name="date_init"/>
|
||
|
<filter string="Running"
|
||
|
domain="[('state','=','running')]"/>
|
||
|
<field name="user_id"/>
|
||
|
<field name="partner_id"/>
|
||
|
<group expand="0" string="Group By">
|
||
|
<filter string="User" name="User" domain="[]"
|
||
|
context="{'group_by':'user_id'}"/>
|
||
|
<filter string="Partner" name="Partner" domain="[]"
|
||
|
context="{'group_by':'partner_id'}"/>
|
||
|
<filter string="Status" domain="[]"
|
||
|
context="{'group_by':'state'}"/>
|
||
|
</group>
|
||
|
</search>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="action_recurring_form" model="ir.actions.act_window">
|
||
|
<field name="name">Recurring Documents</field>
|
||
|
<field name="type">ir.actions.act_window</field>
|
||
|
<field name="res_model">recurring</field>
|
||
|
<field name="view_type">form</field>
|
||
|
<field name="view_id" ref="view_recurring_tree"/>
|
||
|
<field name="context">{'search_default_User':1,
|
||
|
'disable':False}
|
||
|
</field>
|
||
|
<field name="search_view_id" ref="view_recurring_filter"/>
|
||
|
</record>
|
||
|
|
||
|
<record model="ir.actions.act_window.view"
|
||
|
id="action_recurring_tree_view">
|
||
|
<field name="sequence" eval="2"/>
|
||
|
<field name="view_mode">tree</field>
|
||
|
<field name="view_id" ref="view_recurring_tree"/>
|
||
|
<field name="act_window_id" ref="action_recurring_form"/>
|
||
|
</record>
|
||
|
|
||
|
<record model="ir.actions.act_window.view"
|
||
|
id="action_recurring_form_view">
|
||
|
<field name="sequence" eval="2"/>
|
||
|
<field name="view_mode">form</field>
|
||
|
<field name="view_id" ref="view_recurring_form"/>
|
||
|
<field name="act_window_id" ref="action_recurring_form"/>
|
||
|
</record>
|
||
|
|
||
|
<menuitem action="action_recurring_form" id="menu_action_recurring_form"
|
||
|
parent="base.menu_automation"/>
|
||
|
|
||
|
<record id="recurring_history_tree" model="ir.ui.view">
|
||
|
<field name="name">recurring.history.tree</field>
|
||
|
<field name="model">recurring.history</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<tree string="Recurring History">
|
||
|
<field name="date"/>
|
||
|
<field name="document_id"/>
|
||
|
</tree>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="recurring_history_form" model="ir.ui.view">
|
||
|
<field name="name">recurring.history.form</field>
|
||
|
<field name="model">recurring.history</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<form string="Recurring History">
|
||
|
<group col="4">
|
||
|
<field name="date"/>
|
||
|
<field name="document_id" required="1"/>
|
||
|
</group>
|
||
|
</form>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="document_form" model="ir.ui.view">
|
||
|
<field name="name">recurring.document.form</field>
|
||
|
<field name="model">recurring.document</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<form string="Recurring Document">
|
||
|
<group col="4">
|
||
|
<field name="name" required="1"/>
|
||
|
<field name="model" required="1"/>
|
||
|
<field name="active"/>
|
||
|
</group>
|
||
|
<field name="field_ids"/>
|
||
|
</form>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="document_tree" model="ir.ui.view">
|
||
|
<field name="name">recurring.document.tree</field>
|
||
|
<field name="model">recurring.document</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<tree string="Recurring Document">
|
||
|
<field name="name"/>
|
||
|
<field name="active"/>
|
||
|
<field name="model"/>
|
||
|
</tree>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="view_recurring_document_filter" model="ir.ui.view">
|
||
|
<field name="name">recurring.document.filter</field>
|
||
|
<field name="model">recurring.document</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<search string="Recurring Document">
|
||
|
<field name="name" string="Recurring Document"/>
|
||
|
<field name="model"/>
|
||
|
</search>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="document_fields_form" model="ir.ui.view">
|
||
|
<field name="name">recurring.document.fields.form</field>
|
||
|
<field name="model">recurring.document.fields</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<form string="Recurring Document Fields">
|
||
|
<group>
|
||
|
<field name="field" required="1"/>
|
||
|
<field name="value"/>
|
||
|
</group>
|
||
|
</form>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="document_fields_tree" model="ir.ui.view">
|
||
|
<field name="name">recurring.document.fields.tree</field>
|
||
|
<field name="model">recurring.document.fields</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<tree string="Recurring Document Fields">
|
||
|
<field name="field"/>
|
||
|
<field name="value"/>
|
||
|
</tree>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="action_document_form" model="ir.actions.act_window">
|
||
|
<field name="name">Recurring Types</field>
|
||
|
<field name="type">ir.actions.act_window</field>
|
||
|
<field name="res_model">recurring.document</field>
|
||
|
<field name="view_type">form</field>
|
||
|
<field name="view_id" ref="document_tree"/>
|
||
|
<field name="search_view_id" ref="view_recurring_document_filter"/>
|
||
|
</record>
|
||
|
<menuitem id="menu_action_document_form" action="action_document_form"
|
||
|
parent="base.menu_automation"/>
|
||
|
|
||
|
<record id="view_recurring_wizard_form" model="ir.ui.view">
|
||
|
<field name="name">recurring</field>
|
||
|
<field name="model">recurring</field>
|
||
|
<field name="type">form</field>
|
||
|
<field name="priority" eval="8"/>
|
||
|
<field name="arch" type="xml">
|
||
|
<form string="IR Recurring">
|
||
|
<div class="oe_title">
|
||
|
<h1>
|
||
|
<field name="name" readonly="1" force_save="1"/>
|
||
|
</h1>
|
||
|
</div>
|
||
|
<group>
|
||
|
<group>
|
||
|
<field name="partner_id"/>
|
||
|
<field name="user_id" required="1"/>
|
||
|
<field name="active"/>
|
||
|
<field name="exec_init"/>
|
||
|
</group>
|
||
|
<group>
|
||
|
<field name="interval_number"/>
|
||
|
<field name="interval_type"/>
|
||
|
<field name="date_init"/>
|
||
|
<field name="doc_source" invisible="1"/>
|
||
|
</group>
|
||
|
</group>
|
||
|
|
||
|
<footer>
|
||
|
<button name="btn_recurring" type="object"
|
||
|
string="Start Recurring" class="oe_highlight"
|
||
|
context="{'process':'start'}"/>
|
||
|
<button name="btn_recurring" type="object"
|
||
|
string="Save"/>
|
||
|
<button string="Cancel" special="cancel"/>
|
||
|
</footer>
|
||
|
</form>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="action_recurring_wizard" model="ir.actions.act_window">
|
||
|
<field name="name">Recurring Documents</field>
|
||
|
<field name="type">ir.actions.act_window</field>
|
||
|
<field name="res_model">recurring</field>
|
||
|
<field name="view_type">form</field>
|
||
|
<field name="view_mode">form</field>
|
||
|
<field name="view_id" ref="view_recurring_wizard_form"/>
|
||
|
<field name="target">new</field>
|
||
|
</record>
|
||
|
|
||
|
<record model="ir.actions.act_window.view"
|
||
|
id="action_recurring_wizard_form_view">
|
||
|
<field name="sequence" eval="2"/>
|
||
|
<field name="view_mode">form</field>
|
||
|
<field name="view_id" ref="view_recurring_wizard_form"/>
|
||
|
<field name="act_window_id" ref="action_recurring_wizard"/>
|
||
|
</record>
|
||
|
|
||
|
</flectra>
|