Skip to content

Commit

Permalink
[MIG] partner_aging: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelalzanillas committed Oct 29, 2024
1 parent eef99ca commit e431237
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 12 deletions.
1 change: 1 addition & 0 deletions partner_aging/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Contributors
- Nikul Chaudhary <[email protected]>
- Ammar Offcewala <[email protected]>
- Urvisha Desai <[email protected]>
- Miquel Alzanillas <[email protected]>

Other credits
-------------
Expand Down
2 changes: 1 addition & 1 deletion partner_aging/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Interactive Partner Aging at any date",
"summary": "Aging as a view - invoices and credits",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"category": "Accounting & Finance",
Expand Down
1 change: 1 addition & 0 deletions partner_aging/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- Nikul Chaudhary \<<[email protected]>\>
- Ammar Offcewala \<<[email protected]>\>
- Urvisha Desai \<<[email protected]>\>
- Miquel Alzanillas \<<[email protected]>\>
1 change: 1 addition & 0 deletions partner_aging/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Nikul Chaudhary &lt;<a class="reference external" href="mailto:nikul.chaudhary.serpentcs&#64;gmail.com">nikul.chaudhary.serpentcs&#64;gmail.com</a>&gt;</li>
<li>Ammar Offcewala &lt;<a class="reference external" href="mailto:aofficewala&#64;opensourceintegrators.com">aofficewala&#64;opensourceintegrators.com</a>&gt;</li>
<li>Urvisha Desai &lt;<a class="reference external" href="mailto:udesai&#64;opensourceintegrators.com">udesai&#64;opensourceintegrators.com</a>&gt;</li>
<li>Miquel Alzanillas &lt;<a class="reference external" href="mailto:malzanillas&#64;apsl.net">malzanillas&#64;apsl.net</a>&gt;</li>
</ul>
</div>
<div class="section" id="other-credits">
Expand Down
2 changes: 1 addition & 1 deletion partner_aging/tests/test_partner_aging.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def setUpClass(cls, chart_template_ref=None):
super().setUpClass(chart_template_ref=chart_template_ref)

def setUp(self):
super(TestPartnerAging, self).setUp()
super().setUp()
self.partner_aging_date_model = self.env["res.partner.aging.date"]
self.partner_aging_supplier_model = self.env["res.partner.aging.supplier"]
self.partner_aging_customer_model = self.env["res.partner.aging.customer"]
Expand Down
2 changes: 1 addition & 1 deletion partner_aging/wizard/res_partner_aging_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,4 @@ def open_document(self):

def init(self):
self.execute_aging_query()
return super(ResPartnerAgingCustomer, self).init()
return super().init()
20 changes: 13 additions & 7 deletions partner_aging/wizard/res_partner_aging_customer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@
<field name="invoice_id" />
<field name="invoice_ref" />
<field name="total" sum="Total" />
<group expand="0" string="Group By...">
<group expand="0" string="Group By">
<filter
string="Partner"
name="partner_id"
domain="[]"
context="{'group_by':'partner_id'}"
context="{'group_by': 'partner_id'}"
/>
</group>
</search>
</field>
</record>

<!-- Customer Aging tree -->
<record model="ir.ui.view" id="view_customer_aging_ad_tree">
<field name="name">customer.aging.ad.tree</field>
Expand All @@ -42,7 +43,7 @@
<tree
create="false"
delete="false"
decoration-danger="max_days_overdue > 0 and total > 0"
decoration-danger="max_days_overdue &gt; 0 and total &gt; 0"
>
<field name="partner_id" string="Customer" />
<field name="salesman" />
Expand All @@ -55,7 +56,7 @@
type="object"
icon="fa-list-alt"
title="Open Document"
attrs="{'invisible':[('invoice_id', '=', False)]}"
invisible="not invoice_id"
/>
<field name="invoice_ref" />
<field name="not_due" string="Current" sum="Total" />
Expand All @@ -68,6 +69,7 @@
</tree>
</field>
</record>

<!-- Customer Aging Action -->
<record id="action_customer_aging_tree" model="ir.actions.act_window">
<field name="name">Customer Aging Date wise</field>
Expand All @@ -76,6 +78,8 @@
<field name="view_mode">tree</field>
<field name="limit">99999999</field>
</record>

<!-- Form for Selecting Aging Date -->
<record id="view_partner_aging_date" model="ir.ui.view">
<field name="name">Partner Aging Date</field>
<field name="model">res.partner.aging.date</field>
Expand All @@ -89,14 +93,15 @@
name="open_customer_aging"
string="Customer Aging"
type="object"
class="oe_highlight"
class="btn-primary"
/>
or
<button string="Cancel" class="oe_link" special="cancel" />
<button string="Cancel" class="btn-secondary" special="cancel" />
</footer>
</form>
</field>
</record>

<!-- Customer Aging Action for Date Selection -->
<record id="action_partner_aging_date" model="ir.actions.act_window">
<field name="name">Customer Aging</field>
<field name="type">ir.actions.act_window</field>
Expand All @@ -105,6 +110,7 @@
<field name="view_id" ref="view_partner_aging_date" />
<field name="target">new</field>
</record>

<!-- Customer Aging Menu Item -->
<menuitem
action="action_partner_aging_date"
Expand Down
2 changes: 1 addition & 1 deletion partner_aging/wizard/res_partner_aging_supplier.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,4 +364,4 @@ def open_document(self):

def init(self):
self.execute_aging_query()
return super(ResPartnerAgingSupplier, self).init()
return super().init()
2 changes: 1 addition & 1 deletion partner_aging/wizard/res_partner_aging_supplier.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
type="object"
icon="fa-list-alt"
title="Open Document"
attrs="{'invisible':[('invoice_id', '=', False)]}"
invisible="not invoice_id"
/>
<field name="invoice_ref" />
<field name="not_due" string="Current" sum="Total" />
Expand Down

0 comments on commit e431237

Please sign in to comment.