2
0
account-financial-tools/account_move_budget/views/account_move_budget_views.xml

107 lines
4.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8" ?>
2019-03-25 18:41:48 +01:00
<!-- Copyright 2019 ACSONE SA/NV
Copyright 2019 ForgeFlow S.L. (http://www.forgeflow.com)
2019-03-25 18:41:48 +01:00
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.ui.view" id="account_move_budget_form_view">
<field name="name">account.move.budget.form</field>
<field name="model">account.move.budget</field>
<field name="arch" type="xml">
<form>
<header>
<button
name="action_draft"
string="Set draft"
type="object"
attrs="{'invisible': [('state', '=', 'draft')]}"
/>
<button
name="action_confirm"
string="Confirm"
type="object"
attrs="{'invisible': [('state', '!=', 'draft')]}"
class="oe_highlight"
/>
<button
name="action_cancel"
string="Cancel"
type="object"
attrs="{'invisible': [('state', '=', 'cancelled')]}"
/>
<field name="state" widget="statusbar" />
2019-03-25 18:41:48 +01:00
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button
name="%(account_move_budget_line_act_window)d"
type="action"
class="oe_stat_button"
icon="fa-bars"
string="Budget Lines"
/>
2019-03-25 18:41:48 +01:00
</div>
<div class="oe_title">
<div class="oe_edit_only">
<label for="name" />
2019-03-25 18:41:48 +01:00
</div>
<h1>
<field name="name" placeholder="Name" />
2019-03-25 18:41:48 +01:00
</h1>
<field name="description" />
2019-03-25 18:41:48 +01:00
</div>
<group name="company">
<field name="company_id" groups="base.group_multi_company" />
2019-03-25 18:41:48 +01:00
</group>
<group name="dates">
<field name="date_range_id" />
<field name="date_from" />
<field name="date_to" />
2019-03-25 18:41:48 +01:00
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" />
<field name="activity_ids" widget="mail_activity" />
<field name="message_ids" widget="mail_thread" />
2019-03-25 18:41:48 +01:00
</div>
</form>
</field>
</record>
<record model="ir.ui.view" id="account_move_budget_search_view">
<field name="name">account.move.budget.search</field>
<field name="model">account.move.budget</field>
<field name="arch" type="xml">
<search>
<field name="name" />
<field name="state" />
2019-03-25 18:41:48 +01:00
</search>
</field>
</record>
<record model="ir.ui.view" id="account_move_budget_tree_view">
<field name="name">account.move.budget.tree</field>
<field name="model">account.move.budget</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="date_from" />
<field name="date_to" />
<field name="state" />
2019-03-25 18:41:48 +01:00
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="account_move_budget_act_window">
<field name="name">Account Move Budgets</field>
<field name="res_model">account.move.budget</field>
<field name="view_mode">tree,form</field>
<field name="domain">[]</field>
<field name="context">{}</field>
</record>
<record model="ir.ui.menu" id="account_move_budget_menu">
<field name="name">Account Move Budgets</field>
<field
name="parent_id"
ref="account.menu_finance_entries_accounting_miscellaneous"
/>
<field name="action" ref="account_move_budget_act_window" />
2019-03-25 18:41:48 +01:00
</record>
</odoo>