forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[12.0][ADD] new module for OSS invoice management with l10n_it_fatturapa
- Loading branch information
1 parent
3b5e823
commit e15f114
Showing
24 changed files
with
1,108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
=========================================== | ||
ITA - Fattura elettronica - Emissione - OSS | ||
=========================================== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Alpha | ||
.. |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%2Fl10n--italy-lightgray.png?logo=github | ||
:target: https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_fatturapa_out_oss | ||
:alt: OCA/l10n-italy | ||
.. |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_fatturapa_out_oss | ||
: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| |badge5| | ||
|
||
**Italiano** | ||
|
||
Modulo tecnico di integrazione tra l10n_eu_oss e l10n_it_fatturapa_out | ||
|
||
**English** | ||
|
||
Technical module for integrating l10n_eu_oss and l10n_it_fatturapa_out | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
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 <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_fatturapa_out_oss%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. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Sergio Corato | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Sergio Corato <https://github.com/sergiocorato> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
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/12.0/l10n_it_fatturapa_out_oss>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2022 Sergio Corato <https://github.com/sergiocorato> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "ITA - Fattura elettronica - Emissione - OSS", | ||
"version": "12.0.1.0.0", | ||
"development_status": "Alpha", | ||
"category": "Localization/Italy", | ||
"summary": "OSS in fatturapa", | ||
"author": "Sergio Corato," "Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/l10n-italy", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
"l10n_it_fatturapa_out", | ||
"l10n_eu_oss", | ||
], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"security/oss_security.xml", | ||
"views/account.xml", | ||
"views/company_view.xml", | ||
], | ||
"installable": True, | ||
"autoinstall": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_it_fatturapa_out_oss | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2022-02-28 16:12+0000\n" | ||
"PO-Revision-Date: 2022-02-28 16:12+0000\n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model,name:l10n_it_fatturapa_out_oss.model_res_company | ||
msgid "Companies" | ||
msgstr "Aziende" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__company_id | ||
msgid "Company" | ||
msgstr "Azienda" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__create_uid | ||
msgid "Created by" | ||
msgstr "Creato da" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__create_date | ||
msgid "Created on" | ||
msgstr "Creato il" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__display_name | ||
msgid "Display Name" | ||
msgstr "Nome visualizzato" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model,name:l10n_it_fatturapa_out_oss.model_wizard_export_fatturapa | ||
msgid "Export E-invoice" | ||
msgstr "Esporta e-fattura" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year____last_update | ||
msgid "Last Modified on" | ||
msgstr "Ultima modifica il" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__write_uid | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__write_date | ||
msgid "Last Updated on" | ||
msgstr "Ultima modifica il" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model_terms:ir.ui.view,arch_db:l10n_it_fatturapa_out_oss.oss_year_view_company_form | ||
msgid "OSS Year" | ||
msgstr "Anno OSS" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_res_company__oss_year_ids | ||
msgid "OSS subjected year" | ||
msgstr "Anno soggetto OSS" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_account_tax__oss_subjected | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__oss_subjected | ||
msgid "Oss Subjected" | ||
msgstr "Soggetto OSS" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model,name:l10n_it_fatturapa_out_oss.model_account_tax | ||
msgid "Tax" | ||
msgstr "Imposta" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model,name:l10n_it_fatturapa_out_oss.model_oss_year | ||
msgid "Subjected OSS year" | ||
msgstr "Anno soggetto OSS" | ||
|
||
#. module: l10n_it_fatturapa_out_oss | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_out_oss.field_oss_year__year | ||
msgid "Year" | ||
msgstr "Anno" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import account_tax | ||
from . import oss_year | ||
from . import company |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright 2022 Sergio Corato <https://github.com/sergiocorato> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class AccountTax(models.Model): | ||
_inherit = 'account.tax' | ||
|
||
oss_subjected = fields.Boolean() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2022 Sergio Corato <https://github.com/sergiocorato> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResCompany(models.Model): | ||
|
||
_inherit = 'res.company' | ||
|
||
oss_year_ids = fields.One2many( | ||
'oss.year', 'company_id', | ||
string="OSS subjected year") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2022 Sergio Corato <https://github.com/sergiocorato> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class OssYear(models.Model): | ||
_name = 'oss.year' | ||
_description = 'Subjected OSS year' | ||
_order = 'company_id, year desc' | ||
_rec_name = 'year' | ||
|
||
company_id = fields.Many2one('res.company', string='Company') | ||
year = fields.Char(required=True) | ||
oss_subjected = fields.Boolean() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* Sergio Corato <https://github.com/sergiocorato> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**Italiano** | ||
|
||
Modulo tecnico di integrazione tra l10n_eu_oss e l10n_it_fatturapa_out | ||
|
||
**English** | ||
|
||
Technical module for integrating l10n_eu_oss and l10n_it_fatturapa_out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_oss_year,oss_year_user,model_oss_year,account.group_account_invoice,1,1,1,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
|
||
<!-- Multi - Company Rules --> | ||
<record id="oss_year_company_rule" model="ir.rule"> | ||
<field name="name">OSS Year multi-company</field> | ||
<field | ||
name="model_id" | ||
ref="model_oss_year" | ||
/> | ||
<field name="domain_force"> | ||
['|', ('company_id', '=', False), ('company_id', 'in', user.company_ids.ids)] | ||
</field> | ||
</record> | ||
|
||
</odoo> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.