Browse Source

Merge ef4067231c into 1ac8744ae8

pull/720/merge
Aaron ForgeFlow 3 years ago
committed by GitHub
parent
commit
485bd74498
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      customer_outstanding_statement/README.rst
  2. 2
      customer_outstanding_statement/__manifest__.py
  3. 2
      customer_outstanding_statement/report/customer_outstanding_statement.py
  4. 4
      customer_outstanding_statement/static/description/index.html
  5. 4
      customer_outstanding_statement/tests/test_customer_outstanding_statement.py
  6. 4
      customer_outstanding_statement/views/statement.xml
  7. 4
      customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.py
  8. 4
      customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.xml

10
customer_outstanding_statement/README.rst

@ -2,11 +2,11 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
====================================
Print Customer Outstanding Statement
====================================
=====================
Print Aging Statement
=====================
The outstanding statement provides details of all outstanding customer receivables
The aging statement provides details of all outstanding customer receivables
up to a particular date. This includes all unpaid invoices, unclaimed refunds and up to a particular date. This includes all unpaid invoices, unclaimed refunds and
outstanding payments. The list is displayed in chronological order and is split by currencies. outstanding payments. The list is displayed in chronological order and is split by currencies.
@ -27,7 +27,7 @@ Usage
To use this module, you need to: To use this module, you need to:
#. Go to Customers and select one or more #. Go to Customers and select one or more
#. Press 'Action > Customer Outstanding Statement'
#. Press 'Action > Aging Statement'
#. Indicate if you want to display aging buckets #. Indicate if you want to display aging buckets

2
customer_outstanding_statement/__manifest__.py

@ -4,7 +4,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{ {
'name': 'Customer Outstanding Statement',
'name': 'Aging Statement',
'version': '10.0.1.1.0', 'version': '10.0.1.1.0',
'category': 'Accounting & Finance', 'category': 'Accounting & Finance',
'summary': 'OCA Financial Reports', 'summary': 'OCA Financial Reports',

2
customer_outstanding_statement/report/customer_outstanding_statement.py

@ -9,7 +9,7 @@ from odoo import api, fields, models
class CustomerOutstandingStatement(models.AbstractModel): class CustomerOutstandingStatement(models.AbstractModel):
"""Model of Customer Outstanding Statement"""
"""Model of Aging Statement"""
_name = 'report.customer_outstanding_statement.statement' _name = 'report.customer_outstanding_statement.statement'

4
customer_outstanding_statement/static/description/index.html

@ -1,7 +1,7 @@
<section class="oe_container"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<div class="oe_span12"> <div class="oe_span12">
<h2 class="oe_slogan">Customer Outstanding Statement</h2>
<h2 class="oe_slogan">Aging Statement</h2>
</div> </div>
<div class="oe_span6"> <div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot"> <div class="oe_demo oe_picture oe_screenshot">
@ -43,7 +43,7 @@ due, ...), so the customer can review how much is open, due or overdue.</div></p
<p class="oe_mt32">To use this module, you need to: <p class="oe_mt32">To use this module, you need to:
<ul> <ul>
<li>Go to <code>Customers</code> and select one or more</li> <li>Go to <code>Customers</code> and select one or more</li>
<li>Press '<code>Action > Customer Outstanding Statement</code>'</li>
<li>Press '<code>Action > Aging Statement</code>'</li>
<li>Indicate if you want to display aging buckets</li> <li>Indicate if you want to display aging buckets</li>
</ul> </ul>
</p> </p>

4
customer_outstanding_statement/tests/test_customer_outstanding_statement.py

@ -8,7 +8,7 @@ from odoo.tests.common import TransactionCase
class TestCustomerOutstandingStatement(TransactionCase): class TestCustomerOutstandingStatement(TransactionCase):
""" """
Tests for Customer Outstanding Statement.
Tests for Aging Statement.
""" """
def setUp(self): def setUp(self):
super(TestCustomerOutstandingStatement, self).setUp() super(TestCustomerOutstandingStatement, self).setUp()
@ -26,7 +26,7 @@ class TestCustomerOutstandingStatement(TransactionCase):
self.env['report.customer_outstanding_statement.statement'] self.env['report.customer_outstanding_statement.statement']
self.wiz = self.env['customer.outstanding.statement.wizard'] self.wiz = self.env['customer.outstanding.statement.wizard']
self.report_name = 'customer_outstanding_statement.statement' self.report_name = 'customer_outstanding_statement.statement'
self.report_title = 'Customer Outstanding Statement'
self.report_title = 'Aging Statement'
def _create_user(self, login, groups, company): def _create_user(self, login, groups, company):
group_ids = [group.id for group in groups] group_ids = [group.id for group in groups]

4
customer_outstanding_statement/views/statement.xml

@ -10,7 +10,7 @@
<span t-field="o.vat"/> <span t-field="o.vat"/>
</div> </div>
<h4 style="padding-left:15em;padding-top:2em"> <h4 style="padding-left:15em;padding-top:2em">
Outstanding Statement
Aging Statement
</h4> </h4>
<p> <p>
Date: <span t-esc="Date[o.id]" /><br/><!--Today--> Date: <span t-esc="Date[o.id]" /><br/><!--Today-->
@ -22,7 +22,7 @@
<t t-foreach="Lines[o.id]" t-as="currency"> <t t-foreach="Lines[o.id]" t-as="currency">
<br t-if="not currency_first" /> <br t-if="not currency_first" />
<p> <p>
Outstanding Statement at <span t-esc="Date_end[o.id]" /> in <span t-esc="Currencies[o.id][currency].name"/>:
Aging Statement at <span t-esc="Date_end[o.id]" /> in <span t-esc="Currencies[o.id][currency].name"/>:
</p> </p>
<table class="table table-condensed" style="border: 1px solid black; border-collapse: collapse;"> <table class="table table-condensed" style="border: 1px solid black; border-collapse: collapse;">
<thead> <thead>

4
customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.py

@ -8,10 +8,10 @@ from odoo import api, fields, models
class CustomerOutstandingStatementWizard(models.TransientModel): class CustomerOutstandingStatementWizard(models.TransientModel):
"""Customer Outstanding Statement wizard."""
"""Aging Statement wizard."""
_name = 'customer.outstanding.statement.wizard' _name = 'customer.outstanding.statement.wizard'
_description = 'Customer Outstanding Statement Wizard'
_description = 'Aging Statement Wizard'
company_id = fields.Many2one( company_id = fields.Many2one(
comodel_name='res.company', comodel_name='res.company',

4
customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.xml

@ -2,7 +2,7 @@
<odoo> <odoo>
<!-- wizard action on res.partner --> <!-- wizard action on res.partner -->
<act_window id="customer_outstanding_statement_wizard_action" <act_window id="customer_outstanding_statement_wizard_action"
name="Customer Outstanding Statement"
name="Aging Statement"
src_model="res.partner" src_model="res.partner"
res_model="customer.outstanding.statement.wizard" res_model="customer.outstanding.statement.wizard"
view_type="form" view_mode="form" view_type="form" view_mode="form"
@ -11,7 +11,7 @@
<!-- wizard view --> <!-- wizard view -->
<record id="customer_outstanding_statement_wizard_view" model="ir.ui.view"> <record id="customer_outstanding_statement_wizard_view" model="ir.ui.view">
<field name="name">Customer Outstanding Statement Wizard</field>
<field name="name">Aging Statement Wizard</field>
<field name="model">customer.outstanding.statement.wizard</field> <field name="model">customer.outstanding.statement.wizard</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form name="Report Options"> <form name="Report Options">

Loading…
Cancel
Save