From 046c3eb7aa8b4caf48fed3ea98f18a56070f6b6e Mon Sep 17 00:00:00 2001 From: hveficent Date: Mon, 20 Jan 2020 10:41:00 +0100 Subject: [PATCH] [12.0] account_financial_tools: Lint fixing --- account_move_template/README.rst | 9 ++++++++- account_move_template/__manifest__.py | 4 ++-- .../models/account_move_template.py | 2 ++ account_move_template/readme/CONTRIBUTORS.rst | 7 +++++++ .../static/description/index.html | 19 +++++++++++++++---- 5 files changed, 34 insertions(+), 7 deletions(-) diff --git a/account_move_template/README.rst b/account_move_template/README.rst index 045462ee..f10ae429 100644 --- a/account_move_template/README.rst +++ b/account_move_template/README.rst @@ -23,7 +23,7 @@ Account Move Template :target: https://runbot.odoo-community.org/runbot/92/12.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| The user can configure journal entries templates, useful for recurring entries. The amount of each template line can be computed (through python code) @@ -82,11 +82,18 @@ Authors Contributors ~~~~~~~~~~~~ +Module Authors +-------------- + * Davide Corio * Lorenzo Battistini * Paolo Chiara * Franco Tampieri * Alexis de Lattre (full re-write for v12) + +Module Contributors +------------------- + * Jalal ZAHID (port to v10) * Alex Comba (Port to V8) * Guewen Baconnier diff --git a/account_move_template/__manifest__.py b/account_move_template/__manifest__.py index 4c27a84d..347c049f 100644 --- a/account_move_template/__manifest__.py +++ b/account_move_template/__manifest__.py @@ -8,8 +8,8 @@ 'version': '12.0.1.0.0', 'category': 'Accounting', 'summary': "Templates for recurring Journal Entries", - 'author': "Agile Business Group, Odoo Community Association (OCA), Aurium " - "Technologies, Vauxoo, Eficent, Akretion", + 'author': "Agile Business Group, Aurium Technologies, Vauxoo, Eficent, " + "Akretion, Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/account-financial-tools', 'license': 'AGPL-3', 'depends': [ diff --git a/account_move_template/models/account_move_template.py b/account_move_template/models/account_move_template.py index 2c39871f..34ca07b2 100644 --- a/account_move_template/models/account_move_template.py +++ b/account_move_template/models/account_move_template.py @@ -28,6 +28,8 @@ class AccountMoveTemplate(models.Model): 'This name is already used by another template!' )] + @api.multi + @api.returns('self', lambda value: value.id) def copy(self, default=None): self.ensure_one() default = dict(default or {}, name=_('%s (copy)') % self.name) diff --git a/account_move_template/readme/CONTRIBUTORS.rst b/account_move_template/readme/CONTRIBUTORS.rst index f584031a..3c18f6b0 100644 --- a/account_move_template/readme/CONTRIBUTORS.rst +++ b/account_move_template/readme/CONTRIBUTORS.rst @@ -1,8 +1,15 @@ +Module Authors +-------------- + * Davide Corio * Lorenzo Battistini * Paolo Chiara * Franco Tampieri * Alexis de Lattre (full re-write for v12) + +Module Contributors +------------------- + * Jalal ZAHID (port to v10) * Alex Comba (Port to V8) * Guewen Baconnier diff --git a/account_move_template/static/description/index.html b/account_move_template/static/description/index.html index ca1879a3..85313515 100644 --- a/account_move_template/static/description/index.html +++ b/account_move_template/static/description/index.html @@ -3,7 +3,7 @@ - + Account Move Template