Skip to content

Commit

Permalink
[MIG] analytic_partner: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BernatObrador committed Sep 5, 2024
1 parent 309d288 commit a75e860
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions analytic_partner/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ Contributors
- Pimolnat Suntian <[email protected]>

- Daniel Reis <[email protected]>
- `APSL-Nagarro <https://apsl.tech>`__:

- Bernat Obrador <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion analytic_partner/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "Link analytic items and partner",
"summary": "Search and group analytic entries by partner",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Analytic Accounting",
"website": "https://github.com/OCA/account-analytic",
"author": "Tecnativa," "Odoo Community Association (OCA)",
Expand Down
2 changes: 2 additions & 0 deletions analytic_partner/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
- [Ecosoft](https://ecosoft.co.th/):
- Pimolnat Suntian \<<[email protected]>\>
- Daniel Reis \<<[email protected]>\>
- [APSL-Nagarro](<https://apsl.tech>):
- Bernat Obrador \<<[email protected]>\>
4 changes: 4 additions & 0 deletions analytic_partner/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,10 @@ <h2><a class="toc-backref" href="#toc-entry-14">Contributors</a></h2>
</ul>
</li>
<li>Daniel Reis &lt;<a class="reference external" href="mailto:dreis&#64;opensourceintegrators.com">dreis&#64;opensourceintegrators.com</a>&gt;</li>
<li><a class="reference external" href="https://apsl.tech">APSL-Nagarro</a>:<ul>
<li>Bernat Obrador &lt;<a class="reference external" href="mailto:bobrador&#64;apsl.net">bobrador&#64;apsl.net</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
4 changes: 1 addition & 3 deletions analytic_partner/tests/test_analytic_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ def setUpClass(cls):
cls.account = cls.env["account.account"].create(
{"name": "Test account", "code": "TEST", "account_type": "expense"}
)
cls.default_plan = cls.env["account.analytic.plan"].create(
{"name": "Default", "company_id": False}
)
cls.default_plan = cls.env["account.analytic.plan"].create({"name": "Default"})
cls.analytic_account = cls.env["account.analytic.account"].create(
{"name": "Test Analytic Account", "plan_id": cls.default_plan.id}
)
Expand Down
5 changes: 3 additions & 2 deletions analytic_partner/views/res_partner_views.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record model="ir.actions.act_window" id="act_analytic_cost_revenue">
<field name="context">{'search_default_group_date': 1}</field>
<field name="domain">[('other_partner_id', 'child_of', active_id)]</field>
<field
name="context"
>{'search_default_group_date': 1, 'search_default_filter_domain': "[('other_partner_id', 'child_of', 'id')]"}</field>
<field name="name">Costs &amp; Revenues</field>
<field name="res_model">account.analytic.line</field>
<field name="view_mode">tree,form</field>
Expand Down

0 comments on commit a75e860

Please sign in to comment.