Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPD] ssi_revenue_recognition #21

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ssi_revenue_recognition/models/revenue_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class RevenueRecognition(models.Model):
product_id = fields.Many2one(
string="Product",
related="performance_obligation_id.product_id",
store=True,
)
move_line_ids = fields.Many2many(
string="Move Lines",
Expand Down
36 changes: 36 additions & 0 deletions ssi_revenue_recognition/views/revenue_recognition_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
<xpath expr="//field[@name='user_id']" position='after'>
<field name="type_id" />
<field name="journal_id" />
<field name="partner_id" />
<field name="performance_obligation_id" />
<field name="analytic_account_id" />
<field name="analytic_budget_id" />
<field name="product_id" />
<field name="move_id" />
</xpath>
<xpath expr="//filter[@name='grp_responsible']" position='after'>
<filter
Expand All @@ -28,6 +34,36 @@
string="Journal"
context="{'group_by':'journal_id'}"
/>
<filter
name="grp_partner"
string="Partner"
context="{'group_by':'partner_id'}"
/>
<filter
name="grp_performance_obligation"
string="# Performance Obligation"
context="{'group_by':'performance_obligation_id'}"
/>
<filter
name="grp_contract"
string="# Contract"
context="{'group_by':'contract_id'}"
/>
<filter
name="grp_analytic_account"
string="Analytic Account"
context="{'group_by':'analytic_account_id'}"
/>
<filter
name="grp_analytic_budget"
string="# Analytic Budget"
context="{'group_by':'analytic_budget_id'}"
/>
<filter
name="grp_product"
string="Product"
context="{'group_by':'product_id'}"
/>
</xpath>
</data>
</field>
Expand Down
Loading