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 c5f3033 commit a1a32ac
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 24 deletions.
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 \<<nikul.chaudhary.serpentcs@gmail.com>\>
- Ammar Offcewala \<<aofficewala@opensourceintegrators.com>\>
- Urvisha Desai \<<udesai@opensourceintegrators.com>\>
- Miquel Alzanillas \<<malzanillas@apsl.net>\>
35 changes: 13 additions & 22 deletions partner_aging/wizard/res_partner_aging_customer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,32 @@
<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>
<field name="model">res.partner.aging.customer</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree
create="false"
delete="false"
decoration-danger="max_days_overdue > 0 and total > 0"
>
<tree create="false" delete="false" decoration-danger="max_days_overdue &gt; 0 and total &gt; 0">
<field name="partner_id" string="Customer" />
<field name="salesman" />
<field name="date_due" string="Invoice Date" />
<field name="inv_date_due" string="Due Date" />
<field name="max_days_overdue" />
<field name="invoice_id" invisible="1" />
<button
name="open_document"
type="object"
icon="fa-list-alt"
title="Open Document"
attrs="{'invisible':[('invoice_id', '=', False)]}"
/>
<button name="open_document" type="object" icon="fa-list-alt" title="Open Document" invisible="not invoice_id" />
<field name="invoice_ref" />
<field name="not_due" string="Current" sum="Total" />
<field name="days_due_01to30" sum="Total" />
Expand All @@ -68,6 +59,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 +68,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 @@ -85,18 +79,14 @@
<field name="age_date" />
</group>
<footer>
<button
name="open_customer_aging"
string="Customer Aging"
type="object"
class="oe_highlight"
/>
or
<button string="Cancel" class="oe_link" special="cancel" />
<button name="open_customer_aging" string="Customer Aging" type="object" class="btn-primary" />
<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 +95,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.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 a1a32ac

Please sign in to comment.