[NEW] Add budget model funcitonnalities
User is able to generate budget model and model lines User can reset a budget and generate one using an existing model
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
<button type="object" class="oe_stat_button" icon="fa-eye" name="displayActualAmounts" string="Hide Actual amounts" attrs="{'invisible' : [('display_actual_amounts', '=', False)]}">
|
||||
<field name="display_actual_amounts" widget="boolean_toggle" />
|
||||
</button>
|
||||
<button type="action" class="oe_stat_button" icon="fa-refresh" name="%(action_budget_forecast_model_choice)d" string="Reset Budget" />
|
||||
</header>
|
||||
<sheet string="Project Budget">
|
||||
<group>
|
||||
|
37
account_budget_forecast/views/budget_forecast_model.xml
Normal file
37
account_budget_forecast/views/budget_forecast_model.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="view_budget_forecast_model_tree" model="ir.ui.view">
|
||||
<field name="name">budget.forecast.model.tree</field>
|
||||
<field name="model">budget.forecast.model</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree editable="top">
|
||||
<field name="name" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_budget_forecast_model_line_tree" model="ir.ui.view">
|
||||
<field name="name">budget.forecast.model.line.tree</field>
|
||||
<field name="model">budget.forecast.model.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree editable="top">
|
||||
<field name="budget_model" />
|
||||
<field name="display_type" />
|
||||
<field name="product_id" />
|
||||
<field name="name" />
|
||||
<field name="parent_id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="act_budget_forecast_models" model="ir.actions.act_window">
|
||||
<field name="name">Budget Forecast Model</field>
|
||||
<field name="res_model">budget.forecast.model</field>
|
||||
<field name="view_mode">tree</field>
|
||||
</record>
|
||||
<record id="act_budget_forecast_model_lines" model="ir.actions.act_window">
|
||||
<field name="name">Budget Forecast Model Lines</field>
|
||||
<field name="res_model">budget.forecast.model.line</field>
|
||||
<field name="view_mode">tree</field>
|
||||
</record>
|
||||
</odoo>
|
@@ -5,4 +5,8 @@
|
||||
|
||||
<menuitem id="menu_budget_forecast_coeff_models" action="act_budget_forecast_coeff_models" parent="project.menu_project_config" sequence="20" />
|
||||
|
||||
<menuitem id="menu_budget_forecast_models" action="act_budget_forecast_models" parent="project.menu_project_config" sequence="20" />
|
||||
|
||||
<menuitem id="menu_budget_forecast_model_lines" action="act_budget_forecast_model_lines" parent="project.menu_project_config" sequence="20" />
|
||||
|
||||
</odoo>
|
Reference in New Issue
Block a user