diff --git a/customer_outstanding_statement/README.rst b/customer_outstanding_statement/README.rst index 6ff702eb513e..4455e4bfb6ab 100644 --- a/customer_outstanding_statement/README.rst +++ b/customer_outstanding_statement/README.rst @@ -33,7 +33,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/91/9.0 + :target: https://runbot.odoo-community.org/runbot/91/10.0 Bug Tracker =========== diff --git a/customer_outstanding_statement/__openerp__.py b/customer_outstanding_statement/__manifest__.py similarity index 95% rename from customer_outstanding_statement/__openerp__.py rename to customer_outstanding_statement/__manifest__.py index 3e5aa4fcd1e6..f20458f293d8 100644 --- a/customer_outstanding_statement/__openerp__.py +++ b/customer_outstanding_statement/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Customer Outstanding Statement', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'category': 'Accounting & Finance', 'summary': 'OCA Financial Reports', 'author': "Eficent, Odoo Community Association (OCA)", diff --git a/customer_outstanding_statement/report/customer_outstanding_statement.py b/customer_outstanding_statement/report/customer_outstanding_statement.py index fe4ed5ca5bac..107a3d08e83c 100644 --- a/customer_outstanding_statement/report/customer_outstanding_statement.py +++ b/customer_outstanding_statement/report/customer_outstanding_statement.py @@ -4,8 +4,8 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from datetime import datetime, timedelta -from openerp.tools import DEFAULT_SERVER_DATE_FORMAT -from openerp import api, fields, models +from odoo.tools.misc import DEFAULT_SERVER_DATE_FORMAT +from odoo import api, fields, models class CustomerOutstandingStatement(models.AbstractModel): @@ -15,8 +15,7 @@ class CustomerOutstandingStatement(models.AbstractModel): def _format_date_to_partner_lang(self, str_date, partner_id): lang_code = self.env['res.partner'].browse(partner_id).lang - lang_id = self.env['res.lang']._lang_get(lang_code) - lang = self.env['res.lang'].browse(lang_id) + lang = self.env['res.lang']._lang_get(lang_code) date = datetime.strptime(str_date, DEFAULT_SERVER_DATE_FORMAT).date() return date.strftime(lang.date_format) @@ -258,7 +257,7 @@ def _get_account_show_buckets(self, company_id, partner_ids, date_end): return res @api.multi - def render_html(self, data): + def render_html(self, docids, data): company_id = data['company_id'] partner_ids = data['partner_ids'] date_end = data['date_end'] diff --git a/customer_outstanding_statement/static/description/index.html b/customer_outstanding_statement/static/description/index.html index 3f3faf3712bc..9c3d2c947dd3 100644 --- a/customer_outstanding_statement/static/description/index.html +++ b/customer_outstanding_statement/static/description/index.html @@ -8,7 +8,7 @@

Customer Outstanding Statement

-
+

The outstanding statement provides details of all outstanding customer receivables 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 diff --git a/customer_outstanding_statement/tests/test_customer_outstanding_statement.py b/customer_outstanding_statement/tests/test_customer_outstanding_statement.py index f961466e7b11..be8eaed30087 100644 --- a/customer_outstanding_statement/tests/test_customer_outstanding_statement.py +++ b/customer_outstanding_statement/tests/test_customer_outstanding_statement.py @@ -3,7 +3,7 @@ # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class TestCustomerOutstandingStatement(TransactionCase): diff --git a/customer_outstanding_statement/views/statement.xml b/customer_outstanding_statement/views/statement.xml index 32a14e515072..cb0d19e3eea7 100644 --- a/customer_outstanding_statement/views/statement.xml +++ b/customer_outstanding_statement/views/statement.xml @@ -6,7 +6,7 @@

- +

diff --git a/customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.py b/customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.py index 2278ddcb124a..5fd8f4682604 100644 --- a/customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.py +++ b/customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.py @@ -4,7 +4,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from datetime import date -from openerp import api, fields, models +from odoo import api, fields, models class CustomerOutstandingStatementWizard(models.TransientModel): diff --git a/customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.xml b/customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.xml index d64cf6013809..aac6bc8fcd46 100644 --- a/customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.xml +++ b/customer_outstanding_statement/wizard/customer_outstanding_statement_wizard.xml @@ -1,49 +1,47 @@ - - - - + + + - - - Customer Outstanding Statement Wizard - customer.outstanding.statement.wizard - -
-
-

- - - - - - - - - - - - - -
-
-
-
-
-
-
+ + + Customer Outstanding Statement Wizard + customer.outstanding.statement.wizard + +
+
+

+ + + + + + + + + + + + + + +
+
+
+