Skip to content

Commit

Permalink
[MIG] l10n_it_vat_registries: Migration to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eLBati committed Jan 28, 2019
1 parent 83ae997 commit a3b4cd5
Show file tree
Hide file tree
Showing 17 changed files with 529 additions and 96 deletions.
26 changes: 15 additions & 11 deletions l10n_it_vat_registries/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ Italian Localization - VAT Registries
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-italy/tree/10.0/l10n_it_vat_registries
:target: https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_vat_registries
:alt: OCA/l10n-italy
.. |badge4| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/122/10.0
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_vat_registries
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/122/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4|
|badge1| |badge2| |badge3| |badge4| |badge5|

Law: Decreto del Presidente della Repubblica del 26 ottobre 1972 n. 633
https://goo.gl/31yTVj
Expand Down Expand Up @@ -50,8 +53,8 @@ aprire Contabilità > Configurazione > Contabilità > Intervalli date > Genera i
Tramite
Contabilità -> Configurazione -> Contabilità -> Registri IVA
è possibile configurare i registri IVA, ad esempio 'vendite', 'acquisti' o 'corrispettivi'.
Per associare un sezionale ad un registro IVA, aprire il sezionale tramite
Contabilità -> Configurazione -> Contabilità -> Sezionali
Per associare un registro ad un registro IVA, aprire il registro tramite
Contabilità -> Configurazione -> Contabilità -> Registri
ed impostare il campo 'Registro IVA'


Expand Down Expand Up @@ -82,10 +85,10 @@ Usage
**Italiano**

Dal menu
Contabilità -> Report -> Imposte -> Registri IVA
Contabilità -> Rendicontazione -> Imposte -> Registri IVA
è possibile lanciare il wizard di stampa, nel quale è necessario impostare un intervallo di date. Qui è possibile utilizzare un periodo fiscale nel campo 'Intervallo Date'.

Nel campo 'Registro IVA' è possibile selezionare un registro preconfigurato, oppure è possibile andare direttamente a impostare i sezionali ed il layout nei campi sottostanti.
Nel campo 'Registro IVA' è possibile selezionare un registro preconfigurato, oppure è possibile andare direttamente a impostare i registri ed il layout nei campi sottostanti.


**English**
Expand All @@ -101,7 +104,8 @@ Bug Tracker

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/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.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_vat_registries%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -119,8 +123,8 @@ Contributors

* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Sergio Corato <sergiocorato@gmail.com>
* Elena Carlesso <ecarlesso@linkgroup.it>
* Alex Comba <alex.comba@agilebg.com>
* Lara Baggio <lbaggio@linkgroup.it>

Other credits
~~~~~~~~~~~~~
Expand All @@ -142,6 +146,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/l10n-italy <https://github.com/OCA/l10n-italy/tree/10.0/l10n_it_vat_registries>`_ project on GitHub.
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_vat_registries>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 0 additions & 4 deletions l10n_it_vat_registries/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Copyright 2011-2013 Associazione OpenERP Italia
# (<http://www.openerp-italia.org>).
# Copyright 2014-2017 Lorenzo Battistini - Agile Business Group
# (<http://www.agilebg.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
Expand Down
3 changes: 1 addition & 2 deletions l10n_it_vat_registries/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{
'name': 'Italian Localization - VAT Registries',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Localization/Italy',
"author": "Agile Business Group, Odoo Community Association (OCA)"
", LinkIt Srl",
Expand All @@ -20,7 +20,6 @@
'l10n_it_account',
'web',
'account_tax_balance',
'account_invoicing',
'date_range',
],
"data": [
Expand Down
4 changes: 0 additions & 4 deletions l10n_it_vat_registries/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Copyright 2011-2013 Associazione OpenERP Italia
# (<http://www.openerp-italia.org>).
# Copyright 2014-2017 Lorenzo Battistini - Agile Business Group
# (<http://www.agilebg.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import account_journal
Expand Down
4 changes: 0 additions & 4 deletions l10n_it_vat_registries/models/account.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Copyright 2011-2013 Associazione OpenERP Italia
# (<http://www.openerp-italia.org>).
# Copyright 2014-2017 Lorenzo Battistini - Agile Business Group
# (<http://www.agilebg.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models, fields
Expand Down
2 changes: 0 additions & 2 deletions l10n_it_vat_registries/models/account_journal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Copyright 2015-2017 Lorenzo Battistini - Agile Business Group
# (<http://www.agilebg.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models
Expand Down
3 changes: 1 addition & 2 deletions l10n_it_vat_registries/models/account_tax_registry.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Copyright 2015-2017 Lorenzo Battistini - Agile Business Group
# (<http://www.agilebg.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class AccountTaxRegistry(models.Model):
_name = 'account.tax.registry'
_description = 'Tax registry'
name = fields.Char('Name', required=True)
company_id = fields.Many2one(
'res.company', 'Company', required=True,
Expand Down
12 changes: 8 additions & 4 deletions l10n_it_vat_registries/models/vat_registry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Copyright 2016-2017 Lorenzo Battistini - Agile Business Group
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import api, models
Expand All @@ -11,9 +10,10 @@

class ReportRegistroIva(models.AbstractModel):
_name = 'report.l10n_it_vat_registries.report_registro_iva'
_description = 'Report VAT registry'

@api.model
def get_report_values(self, docids, data=None):
def _get_report_values(self, docids, data=None):
# docids required by caller but not used
# see addons/account/report/account_balance.py

Expand Down Expand Up @@ -49,8 +49,12 @@ def _get_move(self, move_ids):
return move_list

def _format_date(self, my_date, date_format):
formatted_date = time.strftime(date_format,
time.strptime(my_date, '%Y-%m-%d'))
# supporting both cases, as data['form']['from_date'] is string
if isinstance(my_date, str):
formatted_date = time.strftime(
date_format, time.strptime(my_date, '%Y-%m-%d'))
else:
formatted_date = my_date.strftime(date_format)
return formatted_date or ''

def _get_invoice_from_move(self, move):
Expand Down
4 changes: 2 additions & 2 deletions l10n_it_vat_registries/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ aprire Contabilità > Configurazione > Contabilità > Intervalli date > Genera i
Tramite
Contabilità -> Configurazione -> Contabilità -> Registri IVA
è possibile configurare i registri IVA, ad esempio 'vendite', 'acquisti' o 'corrispettivi'.
Per associare un sezionale ad un registro IVA, aprire il sezionale tramite
Contabilità -> Configurazione -> Contabilità -> Sezionali
Per associare un registro ad un registro IVA, aprire il registro tramite
Contabilità -> Configurazione -> Contabilità -> Registri
ed impostare il campo 'Registro IVA'


Expand Down
4 changes: 2 additions & 2 deletions l10n_it_vat_registries/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
**Italiano**

Dal menu
Contabilità -> Report -> Imposte -> Registri IVA
Contabilità -> Rendicontazione -> Imposte -> Registri IVA
è possibile lanciare il wizard di stampa, nel quale è necessario impostare un intervallo di date. Qui è possibile utilizzare un periodo fiscale nel campo 'Intervallo Date'.

Nel campo 'Registro IVA' è possibile selezionare un registro preconfigurato, oppure è possibile andare direttamente a impostare i sezionali ed il layout nei campi sottostanti.
Nel campo 'Registro IVA' è possibile selezionare un registro preconfigurato, oppure è possibile andare direttamente a impostare i registri ed il layout nei campi sottostanti.


**English**
Expand Down
Loading

0 comments on commit a3b4cd5

Please sign in to comment.