14.0 account budget forecast #4
@@ -446,3 +446,10 @@ class BudgetForecast(models.Model):
|
|||||||
record.balance = None
|
record.balance = None
|
||||||
|
|
||||||
record.diff_expenses = record.plan_amount_with_coeff - record.actual_amount
|
record.diff_expenses = record.plan_amount_with_coeff - record.actual_amount
|
||||||
|
|
||||||
|
def action_view_analytic_lines(self):
|
||||||
|
action = self.env["ir.actions.actions"]._for_xml_id(
|
||||||
|
"analytic.account_analytic_line_action_entries"
|
||||||
|
)
|
||||||
|
action["domain"] = [("tag_ids", "ilike", self.analytic_tag.id)]
|
||||||
|
return action
|
||||||
|
@@ -38,17 +38,9 @@
|
|||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<group string="Analytic Lines">
|
<group string="Analytic Lines">
|
||||||
<!-- TODO: Ajouter bouton vers vue Tree affichant les lignes analytics -->
|
<button class="oe_highlight" type="object" name="action_view_analytic_lines">
|
||||||
<!-- <field name="analytic_line_ids" nolabel="1">
|
Consult analytics lines
|
||||||
<tree>
|
</button>
|
||||||
<field name="date" />
|
|
||||||
<field name="employee_id" />
|
|
||||||
<field name="product_id" />
|
|
||||||
<field name="name" />
|
|
||||||
<field name="unit_amount" string="Quantity" />
|
|
||||||
<field name="amount" />
|
|
||||||
</tree>
|
|
||||||
</field>-->
|
|
||||||
</group>
|
</group>
|
||||||
<group string="Childs" attrs="{'invisible' : [('child_ids','=', False)]}">
|
<group string="Childs" attrs="{'invisible' : [('child_ids','=', False)]}">
|
||||||
<field name="child_ids" nolabel="1">
|
<field name="child_ids" nolabel="1">
|
||||||
|
Reference in New Issue
Block a user