14.0 account budget forecast #4

Merged
stephansainleger merged 9 commits from 14.0-account_budget_forecast into 14.0 2022-06-30 12:17:46 +00:00
2 changed files with 10 additions and 11 deletions
Showing only changes of commit 1143d83184 - Show all commits

View File

@@ -446,3 +446,10 @@ class BudgetForecast(models.Model):
record.balance = None
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

View File

@@ -38,17 +38,9 @@
</group>
</group>
<group string="Analytic Lines">
<!-- TODO: Ajouter bouton vers vue Tree affichant les lignes analytics -->
<!-- <field name="analytic_line_ids" nolabel="1">
<tree>
<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>-->
<button class="oe_highlight" type="object" name="action_view_analytic_lines">
Consult analytics lines
</button>
</group>
<group string="Childs" attrs="{'invisible' : [('child_ids','=', False)]}">
<field name="child_ids" nolabel="1">