diff --git a/account_move_template/README.rst b/account_move_template/README.rst deleted file mode 100644 index e28415de..00000000 --- a/account_move_template/README.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - -===================================================== -Account Move Template - Templates for Journal Entries -===================================================== - -The user can configure journal entries templates, useful for recurring entries. -The amount of each template line can be computed (through python code) -or kept as user input. - -If user input, when using the template, user has to fill -the amount of every input lines. - -The journal entry form allows lo load, through a wizard, -the template to use and the amounts to fill. - - -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 -`here `_. - - -Credits -======= - -Images ------- - -* Odoo Community Association: `Icon `_. - -Authors: --------- - -* Davide Corio -* Lorenzo Battistini -* Paolo Chiara -* Franco Tampieri - -Contributors: -------------- - -* Jalal ZAHID (port to v10) -* Alex Comba (Port to V8) -* Guewen Baconnier -* Raf Ven (port to v11) - -Maintainer ----------- - -.. image:: https://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: https://odoo-community.org - -This module is maintained by the OCA. - -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. - -To contribute to this module, please visit https://odoo-community.org. diff --git a/account_move_template/__init__.py b/account_move_template/__init__.py index 6af4c2a7..9b429614 100644 --- a/account_move_template/__init__.py +++ b/account_move_template/__init__.py @@ -1,5 +1,2 @@ -# Copyright 2015-2017 See manifest -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html - from . import models from . import wizard diff --git a/account_move_template/models/__init__.py b/account_move_template/models/__init__.py index beb062b4..15a3794a 100644 --- a/account_move_template/models/__init__.py +++ b/account_move_template/models/__init__.py @@ -1,5 +1,2 @@ -# Copyright 2015-2017 See manifest -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html - from . import account_document_template from . import account_move_template diff --git a/account_move_template/readme/CONTRIBUTORS.rst b/account_move_template/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..7df9093c --- /dev/null +++ b/account_move_template/readme/CONTRIBUTORS.rst @@ -0,0 +1,15 @@ +Authors +------- + +* Davide Corio +* Lorenzo Battistini +* Paolo Chiara +* Franco Tampieri + +Contributors +------------ + +* Jalal ZAHID (port to v10) +* Alex Comba (Port to V8) +* Guewen Baconnier +* Raf Ven (port to v11) \ No newline at end of file diff --git a/account_move_template/readme/DESCRIPTION.rst b/account_move_template/readme/DESCRIPTION.rst new file mode 100644 index 00000000..34a9f8fb --- /dev/null +++ b/account_move_template/readme/DESCRIPTION.rst @@ -0,0 +1,9 @@ +The user can configure journal entries templates, useful for recurring entries. +The amount of each template line can be computed (through python code) +or kept as user input. + +If user input, when using the template, user has to fill +the amount of every input lines. + +The journal entry form allows lo load, through a wizard, +the template to use and the amounts to fill. diff --git a/account_move_template/readme/USAGE.rst b/account_move_template/readme/USAGE.rst new file mode 100644 index 00000000..0642b273 --- /dev/null +++ b/account_move_template/readme/USAGE.rst @@ -0,0 +1,13 @@ +To create new templates: + +#. Make sure that you have flagged *Show Full Accounting Features* in your + user, and that the user has belongs to the *Billing Manager* group. +#. Go to *Invoicing / Configuration / Accounting / Journal Templates* and + define there your template. You can choose to complete a line using a + defined formula, based on other lines, or by requiring the user input. + +To use an existing template: + +#. Go to *Invoicing / Adviser / Accounting Entries / Create Journal Entry from Template* +#. Select one of the available templates and optionally a partner. +#. Complete the entries according to the template and press *Load* \ No newline at end of file diff --git a/account_move_template/view/move_template.xml b/account_move_template/view/move_template.xml index aa668cb1..3f674f6c 100644 --- a/account_move_template/view/move_template.xml +++ b/account_move_template/view/move_template.xml @@ -105,7 +105,7 @@ - Move Templates + Journal Entry Templates account.move.template form tree,form @@ -115,6 +115,6 @@ diff --git a/account_move_template/wizard/__init__.py b/account_move_template/wizard/__init__.py index c7919455..959815f8 100644 --- a/account_move_template/wizard/__init__.py +++ b/account_move_template/wizard/__init__.py @@ -1,20 +1 @@ -############################################################################## -# -# Copyright (C) 2011 Agile Business Group sagl () -# Copyright (C) 2011 Domsense srl () -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published -# by the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## from . import select_template diff --git a/account_move_template/wizard/select_template.py b/account_move_template/wizard/select_template.py index 389989f7..8a2550c9 100644 --- a/account_move_template/wizard/select_template.py +++ b/account_move_template/wizard/select_template.py @@ -2,7 +2,7 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html import time -from odoo import models, fields, api +from odoo import models, fields, api, _ class WizardSelectMoveTemplate(models.TransientModel): @@ -64,7 +64,7 @@ class WizardSelectMoveTemplate(models.TransientModel): move.write({'line_ids': lines}) return { 'domain': [('id', 'in', moves.ids)], - 'name': 'Entries from template: %s' % name, + 'name': _('Entries from template: %s') % name, 'view_type': 'form', 'view_mode': 'tree,form', 'res_model': 'account.move', @@ -88,7 +88,7 @@ class WizardSelectMoveTemplate(models.TransientModel): 'journal_id': line.journal_id.id, 'analytic_account_id': line.analytic_account_id.id, 'account_id': line.account_id.id, - 'date': time.strftime('%Y-%m-%d'), + 'date': fields.Date.today(), 'credit': not debit and amounts[line.sequence] or 0.0, 'debit': debit and amounts[line.sequence] or 0.0, 'partner_id': partner_id, diff --git a/account_move_template/wizard/select_template.xml b/account_move_template/wizard/select_template.xml index ad9266bb..d3c2877d 100644 --- a/account_move_template/wizard/select_template.xml +++ b/account_move_template/wizard/select_template.xml @@ -76,5 +76,5 @@ id="action_wizard_select_template_by_move" view_id="wizard_select_template"/> - +