2019-12-30 11:26:37 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2019-03-25 18:41:48 +01:00
|
|
|
<!-- Copyright 2019 ACSONE SA/NV
|
2019-12-30 11:49:20 +01:00
|
|
|
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>
|
2019-12-30 11:26:37 +01:00
|
|
|
<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">
|
2019-12-30 11:26:37 +01:00
|
|
|
<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">
|
2019-12-30 11:26:37 +01:00
|
|
|
<label for="name" />
|
2019-03-25 18:41:48 +01:00
|
|
|
</div>
|
|
|
|
<h1>
|
2019-12-30 11:26:37 +01:00
|
|
|
<field name="name" placeholder="Name" />
|
2019-03-25 18:41:48 +01:00
|
|
|
</h1>
|
2019-12-30 11:26:37 +01:00
|
|
|
<field name="description" />
|
2019-03-25 18:41:48 +01:00
|
|
|
</div>
|
|
|
|
<group name="company">
|
2019-12-30 11:26:37 +01:00
|
|
|
<field name="company_id" groups="base.group_multi_company" />
|
2019-03-25 18:41:48 +01:00
|
|
|
</group>
|
|
|
|
<group name="dates">
|
2019-12-30 11:26:37 +01:00
|
|
|
<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">
|
2019-12-30 11:26:37 +01:00
|
|
|
<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>
|
2019-12-30 11:26:37 +01:00
|
|
|
<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>
|
2019-12-30 11:26:37 +01:00
|
|
|
<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>
|
2019-12-30 11:26:37 +01:00
|
|
|
<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>
|