[UPD] Creation budget category Unplanned
This commit is contained in:
@@ -38,6 +38,12 @@ class AccountAnalyticAccount(models.Model):
|
|||||||
domain=[("budget_category", "=", "miscellaneous")],
|
domain=[("budget_category", "=", "miscellaneous")],
|
||||||
copy=True,
|
copy=True,
|
||||||
)
|
)
|
||||||
|
budget_forecast_unplanned_ids = fields.One2many(
|
||||||
|
"budget.forecast",
|
||||||
|
"analytic_id",
|
||||||
|
domain=[("budget_category", "=", "unplanned")],
|
||||||
|
copy=True,
|
||||||
|
)
|
||||||
project_section_budget_ids = fields.One2many(
|
project_section_budget_ids = fields.One2many(
|
||||||
"budget.forecast",
|
"budget.forecast",
|
||||||
"analytic_id",
|
"analytic_id",
|
||||||
|
@@ -28,6 +28,7 @@ class BudgetForecast(models.Model):
|
|||||||
("equipment", "Equipment"),
|
("equipment", "Equipment"),
|
||||||
("subcontractors", "Subcontractors"),
|
("subcontractors", "Subcontractors"),
|
||||||
("miscellaneous", "Miscellaneous"),
|
("miscellaneous", "Miscellaneous"),
|
||||||
|
("unplanned", "Unplanned"),
|
||||||
],
|
],
|
||||||
string=_("Budget Category"),
|
string=_("Budget Category"),
|
||||||
)
|
)
|
||||||
|
@@ -142,6 +142,33 @@
|
|||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
|
<page name="category_unplanned" string="Unplanned">
|
||||||
|
<field name="budget_forecast_unplanned_ids" widget="section_category_and_note_one2many" mode="tree" nolabel="1" context="{'default_budget_category': 'unplanned'}">
|
||||||
|
<tree default_order="sequence" editable="bottom">
|
||||||
|
<control>
|
||||||
|
<create string="Add an article" context="{'default_display_type': 'line_article'}" />
|
||||||
|
<create string="Add a note" context="{'default_display_type': 'line_note'}" />
|
||||||
|
</control>
|
||||||
|
<field name="sequence" widget="handle" />
|
||||||
|
<field name="budget_category" invisible="1" optional="hide" />
|
||||||
|
<field name="parent_id" optional="hide" />
|
||||||
|
<field name="display_type" invisible="1" />
|
||||||
|
<field name="name" optional="hide" />
|
||||||
|
<field name="product_id" />
|
||||||
|
<field name="description" optional="show" />
|
||||||
|
<field name="note" optional="hide" />
|
||||||
|
<field name="plan_price" />
|
||||||
|
<field name="plan_qty" />
|
||||||
|
<field name="actual_qty" attrs="{'column_invisible' : [('parent.display_actual_amounts', '=', False)]}" />
|
||||||
|
<field name="plan_amount_without_coeff" string="Plan Amount before Coeff" />
|
||||||
|
<field name="plan_amount_with_coeff" string="Plan Amount after Coeff" />
|
||||||
|
<field name="actual_amount" string="Actual Amount" attrs="{'column_invisible' : [('parent.display_actual_amounts', '=', False)]}" />
|
||||||
|
<field name="diff_expenses" string="Diff" optional="hide" />
|
||||||
|
<field name="incomes" string="Incomes" optional="hide" />
|
||||||
|
<field name="balance" string="Balance" optional="hide" />
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
|
</page>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Reference in New Issue
Block a user