From e2056d8e2c7e8cd44de5762196ca9686097993aa Mon Sep 17 00:00:00 2001 From: mreficent Date: Thu, 30 Jan 2020 18:58:17 +0100 Subject: [PATCH] [MIG] account_move_line_tax_editable: Migration to 13.0 --- account_move_line_tax_editable/README.rst | 12 ++++----- .../__manifest__.py | 7 +++-- .../i18n/account_move_line_tax_editable.pot | 7 +++-- .../models/account_move_line.py | 1 - .../readme/DESCRIPTION.rst | 2 +- .../static/description/index.html | 8 +++--- .../views/account_move.xml | 26 ++++++++++++------- .../views/account_move_line.xml | 21 ++++++++------- 8 files changed, 45 insertions(+), 39 deletions(-) diff --git a/account_move_line_tax_editable/README.rst b/account_move_line_tax_editable/README.rst index fc544edd..679e7cbb 100644 --- a/account_move_line_tax_editable/README.rst +++ b/account_move_line_tax_editable/README.rst @@ -14,18 +14,18 @@ Account Move Line Tax Editable :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/12.0/account_move_line_tax_editable + :target: https://github.com/OCA/account-financial-tools/tree/13.0/account_move_line_tax_editable :alt: OCA/account-financial-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_move_line_tax_editable + :target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_move_line_tax_editable :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/92/12.0 + :target: https://runbot.odoo-community.org/runbot/92/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| -Allows to edit taxes on account move lines +Allows to edit taxes on account move lines. **Table of contents** @@ -38,7 +38,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. @@ -73,6 +73,6 @@ 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/account-financial-tools `_ project on GitHub. +This module is part of the `OCA/account-financial-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_move_line_tax_editable/__manifest__.py b/account_move_line_tax_editable/__manifest__.py index c5a925e7..4383bf9a 100644 --- a/account_move_line_tax_editable/__manifest__.py +++ b/account_move_line_tax_editable/__manifest__.py @@ -3,11 +3,10 @@ { "name": "Account Move Line Tax Editable", - "summary": """ - Allows to edit taxes on non-posted account move lines""", - "version": "12.0.1.0.0", + "summary": "Allows to edit taxes on non-posted account move lines", + "version": "13.0.1.0.0", "license": "AGPL-3", - "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-financial-tools", "depends": ["account"], "data": ["views/account_move.xml", "views/account_move_line.xml"], diff --git a/account_move_line_tax_editable/i18n/account_move_line_tax_editable.pot b/account_move_line_tax_editable/i18n/account_move_line_tax_editable.pot index 0aecf744..7067346f 100644 --- a/account_move_line_tax_editable/i18n/account_move_line_tax_editable.pot +++ b/account_move_line_tax_editable/i18n/account_move_line_tax_editable.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * account_move_line_tax_editable +# * account_move_line_tax_editable # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -22,4 +22,3 @@ msgstr "" #: model:ir.model,name:account_move_line_tax_editable.model_account_move_line msgid "Journal Item" msgstr "" - diff --git a/account_move_line_tax_editable/models/account_move_line.py b/account_move_line_tax_editable/models/account_move_line.py index f026f570..25372fd5 100644 --- a/account_move_line_tax_editable/models/account_move_line.py +++ b/account_move_line_tax_editable/models/account_move_line.py @@ -12,7 +12,6 @@ class AccountMoveLine(models.Model): string="Is tax data editable?", compute="_compute_is_tax_editable" ) - @api.multi @api.depends("move_id.state") def _compute_is_tax_editable(self): for rec in self: diff --git a/account_move_line_tax_editable/readme/DESCRIPTION.rst b/account_move_line_tax_editable/readme/DESCRIPTION.rst index a7968283..d4228b83 100644 --- a/account_move_line_tax_editable/readme/DESCRIPTION.rst +++ b/account_move_line_tax_editable/readme/DESCRIPTION.rst @@ -1 +1 @@ -Allows to edit taxes on account move lines +Allows to edit taxes on account move lines. diff --git a/account_move_line_tax_editable/static/description/index.html b/account_move_line_tax_editable/static/description/index.html index b1867951..1e0bd071 100644 --- a/account_move_line_tax_editable/static/description/index.html +++ b/account_move_line_tax_editable/static/description/index.html @@ -367,8 +367,8 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runbot

-

Allows to edit taxes on account move lines

+

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runbot

+

Allows to edit taxes on account move lines.

Table of contents

    @@ -386,7 +386,7 @@ ul.auto-toc {

    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.

@@ -415,7 +415,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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/account-financial-tools project on GitHub.

+

This module is part of the OCA/account-financial-tools project on GitHub.

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

diff --git a/account_move_line_tax_editable/views/account_move.xml b/account_move_line_tax_editable/views/account_move.xml index 53971b81..0bdc3c66 100644 --- a/account_move_line_tax_editable/views/account_move.xml +++ b/account_move_line_tax_editable/views/account_move.xml @@ -1,21 +1,27 @@ - + - - account.move.form (in account_move_line_tax_editable) account.move - + - - - - + + + + - diff --git a/account_move_line_tax_editable/views/account_move_line.xml b/account_move_line_tax_editable/views/account_move_line.xml index a4c04681..c9e45f6c 100644 --- a/account_move_line_tax_editable/views/account_move_line.xml +++ b/account_move_line_tax_editable/views/account_move_line.xml @@ -1,26 +1,29 @@ - + - - - account.move.line.form (in account_move_line_tax_editable) + account.move.line.form (in account_move_line_tax_editable) account.move.line - + - + 0 - {'readonly': [('is_tax_editable', '=', False)]} + {'readonly': [('is_tax_editable', '=', False)]} 0 - {'readonly': [('is_tax_editable', '=', False)]} + {'readonly': [('is_tax_editable', '=', False)]} -