mirror of
https://gitlab.com/flectra-community/mis-builder.git
synced 2024-12-23 21:01:47 +00:00
101 lines
4.1 KiB
XML
101 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!-- Copyright 2017-2020 ACSONE SA/NV
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
<flectra>
|
|
<record model="ir.ui.view" id="mis_budget_by_account_form_view">
|
|
<field name="name">mis.budget.by.account.form (in mis_builder_budget)</field>
|
|
<field name="model">mis.budget.by.account</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<button
|
|
name="action_draft"
|
|
string="Set draft"
|
|
type="object"
|
|
invisible="state == 'draft'"
|
|
/>
|
|
<button
|
|
name="action_confirm"
|
|
string="Confirm"
|
|
type="object"
|
|
invisible="state != 'draft'"
|
|
class="oe_highlight"
|
|
/>
|
|
<button
|
|
name="action_cancel"
|
|
string="Cancel"
|
|
type="object"
|
|
invisible="state == 'cancelled'"
|
|
/>
|
|
<field name="state" widget="statusbar" />
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button
|
|
name="%(mis_budget_by_account_item_act_window)d"
|
|
type="action"
|
|
class="oe_stat_button"
|
|
icon="fa-bars"
|
|
string="Budget items"
|
|
/>
|
|
</div>
|
|
<group>
|
|
<field name="name" />
|
|
<field name="description" />
|
|
<field
|
|
name="company_id"
|
|
readonly="1"
|
|
groups="base.group_multi_company"
|
|
/>
|
|
</group>
|
|
<group>
|
|
<field name="date_range_id" />
|
|
<field name="date_from" />
|
|
<field name="date_to" />
|
|
<field name="allow_items_overlap" />
|
|
</group>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers" />
|
|
<field name="message_ids" widget="mail_thread" />
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record model="ir.ui.view" id="mis_budget_by_account_search_view">
|
|
<field name="name">mis.budget.by.account.search (in mis_builder_budget)</field>
|
|
<field name="model">mis.budget.by.account</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name" />
|
|
<field name="state" />
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<record model="ir.ui.view" id="mis_budget_by_account_tree_view">
|
|
<field name="name">mis.budget.by.account.tree (in mis_builder_budget)</field>
|
|
<field name="model">mis.budget.by.account</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name" />
|
|
<field name="date_from" />
|
|
<field name="date_to" />
|
|
<field name="state" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record model="ir.actions.act_window" id="mis_budget_by_account_act_window">
|
|
<field name="name">MIS Budgets (by accounts)</field>
|
|
<field name="res_model">mis.budget.by.account</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">[]</field>
|
|
<field name="context">{}</field>
|
|
</record>
|
|
<record model="ir.ui.menu" id="mis_budget_by_account_menu">
|
|
<field name="name">MIS Budgets (by accounts)</field>
|
|
<field name="parent_id" ref="mis_builder.mis_report_finance_menu" />
|
|
<field name="action" ref="mis_budget_by_account_act_window" />
|
|
<field name="sequence" eval="201" />
|
|
</record>
|
|
</flectra>
|