From dc40c9cb1baabb7a23f786b12e141b3a0f4e2fc7 Mon Sep 17 00:00:00 2001 From: "Victor M.M. Torres" Date: Tue, 20 Aug 2019 18:26:20 +0200 Subject: [PATCH] [MIG] account_bank_statement_import_move_line: Migration to v12 --- .../README.rst | 36 ++++++++++---- .../__manifest__.py | 4 +- .../models/account_move_line.py | 3 +- .../readme/CONFIGURE.rst | 5 ++ .../readme/CONTRIBUTORS.rst | 5 +- .../static/description/index.html | 48 ++++++++++++------- .../views/account_bank_statement_view.xml | 3 +- .../wizards/account_statement_line_create.py | 32 ++++++------- .../account_statement_line_create_view.xml | 2 +- 9 files changed, 92 insertions(+), 46 deletions(-) create mode 100644 account_bank_statement_import_move_line/readme/CONFIGURE.rst diff --git a/account_bank_statement_import_move_line/README.rst b/account_bank_statement_import_move_line/README.rst index efcbf37..a17f960 100644 --- a/account_bank_statement_import_move_line/README.rst +++ b/account_bank_statement_import_move_line/README.rst @@ -7,20 +7,20 @@ Bank statement import move lines !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png :target: https://odoo-community.org/page/development-status - :alt: Beta + :alt: Production/Stable .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github - :target: https://github.com/OCA/bank-statement-import/tree/11.0/account_bank_statement_import_move_line + :target: https://github.com/OCA/bank-statement-import/tree/12.0/account_bank_statement_import_move_line :alt: OCA/bank-statement-import .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/bank-statement-import-11-0/bank-statement-import-11-0-account_bank_statement_import_move_line + :target: https://translation.odoo-community.org/projects/bank-statement-import-12-0/bank-statement-import-12-0-account_bank_statement_import_move_line :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/174/11.0 + :target: https://runbot.odoo-community.org/runbot/174/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -34,6 +34,15 @@ statement. .. contents:: :local: +Configuration +============= + +To configure this module, you need to: + +#. Go to *Settings > Users & Companies > Users*. +#. Open the user that needs to use this feature. +#. Mark the check *Show Full Accounting Features*. + Usage ===== @@ -52,7 +61,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -67,7 +76,10 @@ Authors Contributors ~~~~~~~~~~~~ -* Luis M. Ontalba luis.martinez@tecnativa.com> +* `Tecnativa `_: + + * Luis M. Ontalba + * Victor M.M. Torres Maintainers ~~~~~~~~~~~ @@ -82,6 +94,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/bank-statement-import `_ project on GitHub. +.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px + :target: https://github.com/pedrobaeza + :alt: pedrobaeza + +Current `maintainer `__: + +|maintainer-pedrobaeza| + +This module is part of the `OCA/bank-statement-import `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_bank_statement_import_move_line/__manifest__.py b/account_bank_statement_import_move_line/__manifest__.py index 2766111..ac1e9b3 100644 --- a/account_bank_statement_import_move_line/__manifest__.py +++ b/account_bank_statement_import_move_line/__manifest__.py @@ -3,11 +3,12 @@ { 'name': 'Bank statement import move lines', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'category': 'Accounting', 'summary': 'Import journal items into bank statement', 'author': 'Tecnativa, ' 'Odoo Community Association (OCA)', + 'maintainers': ['pedrobaeza'], 'website': 'https://www.tecnativa.com', 'depends': [ 'account', @@ -17,6 +18,7 @@ 'views/account_bank_statement_view.xml', ], 'license': 'AGPL-3', + 'development_status': 'Production/Stable', 'installable': True, 'auto_install': False, } diff --git a/account_bank_statement_import_move_line/models/account_move_line.py b/account_bank_statement_import_move_line/models/account_move_line.py index 5b467b9..1655f6d 100644 --- a/account_bank_statement_import_move_line/models/account_move_line.py +++ b/account_bank_statement_import_move_line/models/account_move_line.py @@ -10,7 +10,6 @@ class AccountMoveLine(models.Model): @api.multi def _prepare_statement_line_vals(self, statement): self.ensure_one() - assert statement, 'Missing statement' amount = 0.0 if self.debit > 0: amount = self.debit @@ -25,7 +24,7 @@ class AccountMoveLine(models.Model): 'date': self.date_maturity, 'amount_currency': self.amount_currency, 'currency_id': self.currency_id.id, - } + } return vals @api.multi diff --git a/account_bank_statement_import_move_line/readme/CONFIGURE.rst b/account_bank_statement_import_move_line/readme/CONFIGURE.rst new file mode 100644 index 0000000..e0283f4 --- /dev/null +++ b/account_bank_statement_import_move_line/readme/CONFIGURE.rst @@ -0,0 +1,5 @@ +To configure this module, you need to: + +#. Go to *Settings > Users & Companies > Users*. +#. Open the user that needs to use this feature. +#. Mark the check *Show Full Accounting Features*. diff --git a/account_bank_statement_import_move_line/readme/CONTRIBUTORS.rst b/account_bank_statement_import_move_line/readme/CONTRIBUTORS.rst index 4556d8d..1fb1207 100644 --- a/account_bank_statement_import_move_line/readme/CONTRIBUTORS.rst +++ b/account_bank_statement_import_move_line/readme/CONTRIBUTORS.rst @@ -1 +1,4 @@ -* Luis M. Ontalba luis.martinez@tecnativa.com> +* `Tecnativa `_: + + * Luis M. Ontalba + * Victor M.M. Torres diff --git a/account_bank_statement_import_move_line/static/description/index.html b/account_bank_statement_import_move_line/static/description/index.html index b165e19..b5c19c4 100644 --- a/account_bank_statement_import_move_line/static/description/index.html +++ b/account_bank_statement_import_move_line/static/description/index.html @@ -367,25 +367,35 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/bank-statement-import Translate me on Weblate Try me on Runbot

+

Production/Stable License: AGPL-3 OCA/bank-statement-import Translate me on Weblate Try me on Runbot

This module adds a button to bank statement form view to open a wizard to allow filtering, selecting and importing lines form journal items into the bank statement.

Table of contents

+
+

Configuration

+

To configure this module, you need to:

+
    +
  1. Go to Settings > Users & Companies > Users.
  2. +
  3. Open the user that needs to use this feature.
  4. +
  5. Mark the check Show Full Accounting Features.
  6. +
+
-

Usage

+

Usage

  1. Go to Invoicing > Dashboard.
  2. Create a new bank statement from a bank journal.
  3. @@ -398,35 +408,41 @@ lines filtered by the criteria.
-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Tecnativa
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/bank-statement-import project on GitHub.

+

Current maintainer:

+

pedrobaeza

+

This module is part of the OCA/bank-statement-import project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/account_bank_statement_import_move_line/views/account_bank_statement_view.xml b/account_bank_statement_import_move_line/views/account_bank_statement_view.xml index 81ab654..c66af69 100644 --- a/account_bank_statement_import_move_line/views/account_bank_statement_view.xml +++ b/account_bank_statement_import_move_line/views/account_bank_statement_view.xml @@ -11,7 +11,8 @@