Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX][l10n_it_corrispettivi] Fix onchange in use corrispettivi … #13

Open
wants to merge 62 commits into
base: 14.0-mig-l10n_it_corrispettivi
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
b12fd04
[ADD] prima bozza
eLBati Jul 22, 2011
ac548b5
[ADD] l10n_it_corrispettivi
Feb 18, 2013
a5bce57
[REF] Set all the modules of the master branches to "installable": False
eLBati Jul 6, 2014
82a7be4
[MOV] move addons out of __unported__ (they remain not installable)
sbidoul Oct 13, 2015
17f9ae9
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
e27bc82
OCA Transbot updated translations from Transifex
oca-transbot Nov 30, 2015
8d73b0a
manually moving module from 7.0 branch beacause
eLBati Jun 3, 2016
6582e59
Porting l10n_it_corrispettivi to 8.0
shakin89 Jun 3, 2016
b4f2c2b
IMP metadata
eLBati Jun 3, 2016
f197fd3
OCA Transbot updated translations from Transifex
oca-transbot Jul 30, 2016
74487ee
[l10n_it_corrispettivi] Fix ValueError: "name 'partner_id' is not def…
tafaRU Aug 24, 2016
a46d485
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 26, 2016
045cbd8
FIX
eLBati Sep 12, 2016
30284b8
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
3f1b9d5
[FIX] Add partner on search view (#343)
Jun 23, 2017
cbfb23e
[MIG] l10n_it_corrispettivi: Migration to 10.0
SimoRubi May 22, 2018
2cce74f
OCA Transbot updated translations from Transifex
oca-transbot Jun 2, 2018
7fe6333
[IMP] Added fiscal position management
SimoRubi Jun 7, 2018
f9084b5
[UPD] Update l10n_it_corrispettivi.pot
oca-travis Jun 20, 2018
0ee7b50
[FIX] group accounting_entries is not visible unless user is in accou…
SimoRubi Jul 5, 2018
5ad37a9
[MIG] l10n_it_corrispettivi: Migration to 11.0
SimoRubi Sep 3, 2018
12e089a
[UPD] Update l10n_it_corrispettivi.pot
oca-travis Sep 18, 2018
5c5aaef
[UPD] README.rst
OCA-git-bot Sep 19, 2018
9f174c9
Translated using Weblate (Italian)
primes2h Oct 13, 2018
5437408
Update translation files
oca-transbot Nov 25, 2018
47125af
[MIG] l10n_it_corrispettivi: Migration to 12.0
monen17 Jan 19, 2019
9faec1a
[FIX] l10n_it_corrispettivi: Hide Send & Print button: it makes littl…
monen17 Jan 23, 2019
01f0f50
[FIX] l10n_it_corrispettivi: Hide partner and payment details
monen17 Jan 24, 2019
5eb05ee
[IMP] l10n_it_corrispettivi: Create a corrispettivi journal when inst…
monen17 Jan 26, 2019
760936e
[IMP] l10n_it_corrispettivi: Use Corrispettivi report for portal preview
monen17 Jan 31, 2019
5bc27a8
[UPD] Update l10n_it_corrispettivi.pot
oca-travis Feb 7, 2019
b4813cc
Update translation files
oca-transbot Feb 9, 2019
dbaa6d1
Translated using Weblate (Italian)
primes2h Feb 14, 2019
0a7beb8
Translated using Weblate (Italian)
primes2h Feb 18, 2019
7529238
[FIX] l10n_it_corrispettivi use correct term 'receipt'
primes2h Feb 12, 2019
1a1caff
[UPD] Update l10n_it_corrispettivi.pot
oca-travis Feb 18, 2019
a3a4824
Update translation files
oca-transbot Mar 3, 2019
bb05930
Translated using Weblate (Italian)
primes2h Mar 7, 2019
3a7de05
[ADD] icon.png
OCA-git-bot Apr 3, 2019
a752830
[FIX] l10n_it_corrispettivi: Find fiscal positions without company
SimoRubi Apr 3, 2019
72b24c3
[IMP] l10n_it_corrispettivi: Show the corrispettivi tree view as a re…
SimoRubi Apr 3, 2019
bd24cec
[UPD] Update l10n_it_corrispettivi.pot
oca-travis Apr 19, 2019
2554310
Update translation files
oca-transbot May 20, 2019
6f18237
[UPD] README.rst
OCA-git-bot Jul 29, 2019
e4ea97d
Translated using Weblate (Italian)
primes2h Aug 2, 2019
419bf12
[12.0][FIX] l10n_it_corrispettivi, fix account report
GSLabIt Jan 8, 2020
a2c968d
[UPD] README.rst
OCA-git-bot Jan 9, 2020
a872be2
l10n_it_corrispettivi 12.0.1.1.3
OCA-git-bot Jan 9, 2020
19aa784
- fix journal on partner change
GSLabIt Feb 6, 2020
842cc0d
[UPD] Update l10n_it_corrispettivi.pot
oca-travis Feb 12, 2020
455feda
[UPD] README.rst
OCA-git-bot Feb 12, 2020
7ca5e69
l10n_it_corrispettivi 12.0.1.1.4
OCA-git-bot Feb 12, 2020
b10c434
Update translation files
oca-transbot Feb 12, 2020
abed5d4
merge PR 1264 1717 1728 1737 1739
May 13, 2020
0e8d139
[12.0][FIX] refund and modify invoice
sergiocorato May 26, 2020
8715dd6
FIX license LGPL-3 conflicts
eLBati Sep 24, 2020
1fa8175
[UPD] Update l10n_it_corrispettivi.pot
oca-travis Sep 24, 2020
513f1da
l10n_it_corrispettivi 12.0.1.1.7
OCA-git-bot Sep 24, 2020
bbcbd35
Update translation files
oca-transbot Sep 24, 2020
978b679
[IMP] l10n_it_corrispettivi: black, isort, prettier
tafaRU Nov 12, 2021
76ed5ea
[MIG] l10n_it_corrispettivi: Migration to 14.0
tafaRU Nov 12, 2021
cb9b1c8
[14.0][FIX][l10n_it_corrispettivi] Fix onchange in use corrispettivi …
alessandrocamilli Dec 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 127 additions & 0 deletions l10n_it_corrispettivi/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
===============================
Italian Localization - Ricevute
===============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-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_corrispettivi
: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_corrispettivi
: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**

Questo modulo permette di generare le ricevute specificando le varie aliquote per riga
(le righe della ricevuta hanno gli stessi automatismi di quelle della fattura) e quindi registrare le ricevute una per una.
Un esempio tipico di questo caso d’uso è la vendita tramite sito di e-commerce.

Chi invece emette scontrini (e non ha un POS integrato con Odoo) dovrà registrare in contabilità, a fine giornata, gli incassi totali.

**English**

This module allows you to generate receipts by specifying the different taxes per line
(the receipt lines have the same automatisms as those on the invoice) and then record the receipts one by one.
A typical example of this use case is the sale via e-commerce site.

On the other hand, those who issue receipts (and do not have an integrated POS with Odoo) will have to record the total revenue at the end of the day.

**Table of contents**

.. contents::
:local:

Configuration
=============

**Italiano**

Creare almeno un registro di tipo vendita nel quale saranno registrate le ricevute, deve avere la casella ricevute abilitata.

Se necessario, creare una posizione fiscale per le ricevute (specificando l'azienda), deve avere la casella ricevute abilitata.
Nota: il campo *Azienda* nella posizione fiscale è visibile solo se la configurazione *Multi azienda* è attiva.
Questa posizione fiscale verrà assegnata a tutti i nuovi partner (nell'azienda specificata) aventi la casella *Usare ricevute* abilitata.

Utilizzando un utente del gruppo Contabilità e finanza > Fatturazione, sul partner associato al "Public user":

* Modificare, se necessario, i conti di debito e di credito da utilizzare per le ricevute;
* Abilitare la casella *Usare ricevute*

Nota: Il "Public user" è di norma disabilitato (stato "Inattivo").

**English**

Create at least one journal of type sales on which the receipts will be recorded,
it must have the receipts flag enabled.

If necessary, create a fiscal position for the receipts (specifying the company), it must have the receipts flag enabled.
Note: the field *Company* in the fiscal position is only visible when the *Multi-companies* configuration is active.
This fiscal position will be assigned to all new partners (of the specified company) with the *Use receipts* flag enabled.

Using a user of the Accounting & Finance > Accounting group, on the partner associated with the "Public user":

* Change, if necessary, the debit and credit accounts to be used for the receipts;
* Enable the flag *Use receipts*

Note: The "Public user" is usually disabled ("Inactive" state).

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_corrispettivi%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
~~~~~~~

* Odoo Italian Community
* Agile Business Group
* AIR s.r.l.

Contributors
~~~~~~~~~~~~

* Lorenzo Battistini <[email protected]>
* Simone Rubino <[email protected]>
* Sergio Zanchetta <https://github.com/primes2h>
* Giovanni Serra <[email protected]>
* Kevin Poli <[email protected]>

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 `AIR/l10n-italy <https://github.com/airsrl/l10n-italy/tree/14.0/l10n_it_corrispettivi>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions l10n_it_corrispettivi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

from . import controllers
from . import models
from . import wizards

23 changes: 23 additions & 0 deletions l10n_it_corrispettivi/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2016 Lorenzo Battistini - Agile Business Group
# Copyright 2018-2019 Simone Rubino - Agile Business Group
# Copyright 2019 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo)
# Copyright 2020 Giovanni Serra - GSLab.it
# Copyright 2021 Kevin Poli - AIR s.r.l.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
'name': 'Italian Localization - Ricevute',
'version': '14.0.1.0.0',
'category': 'Accounting & Finance',
'author': 'Odoo Italian Community,AIR s.r.l, Agile Business Group, '
'Odoo Community Association (OCA)',
'website': 'https://github.com/airsrl/l10n-italy/tree/14.0/'
'l10n_it_corrispettivi',
'license': 'LGPL-3',
'depends': ['account'],
'data': [
'data/account_journal_data.xml',
'views/account_report.xml',
'views/account_view.xml'
],
'installable': True
}
3 changes: 3 additions & 0 deletions l10n_it_corrispettivi/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright 2019 Simone Rubino

from . import main
12 changes: 12 additions & 0 deletions l10n_it_corrispettivi/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2019 Simone Rubino
#Copyright 2021 Kevin Poli - AIR s.r.l.

from odoo.addons.portal.controllers.portal import CustomerPortal


class CorrispettiviPortal(CustomerPortal):

def _show_report(self, model, report_type, report_ref, download=False):
if model._name == 'account.move' and model.corrispettivo:
report_ref = 'l10n_it_corrispettivi.account_corrispettivi'
return super()._show_report(model, report_type, report_ref, download)
15 changes: 15 additions & 0 deletions l10n_it_corrispettivi/data/account_journal_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2019 Simone Rubino
-->

<odoo noupdate="1">
<record id="corrispettivi_journal" model="account.journal">
<field name="name">Receipts Journal</field>
<field name="code">RICEV</field>
<field name="type">sale</field>
<field name="corrispettivi" eval="True"/>
<!-- Avoid being selected as default journal -->
<field name="sequence">20</field>
</record>
</odoo>
104 changes: 104 additions & 0 deletions l10n_it_corrispettivi/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_corrispettivi
#
# Translators:
# OCA Transbot <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-01 08:10+0000\n"
"PO-Revision-Date: 2018-06-01 08:10+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2018\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: l10n_it_corrispettivi
#: model_terms:ir.ui.view,arch_db:l10n_it_corrispettivi.report_corrispettivi_document
msgid "<strong>Receipt Date:</strong>"
msgstr ""

#. module: l10n_it_corrispettivi
#: model_terms:ir.ui.view,arch_db:l10n_it_corrispettivi.report_corrispettivi_document
msgid "Cancelled Receipt"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.model,name:l10n_it_corrispettivi.model_res_partner
msgid "Contact"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.model,name:l10n_it_corrispettivi.model_account_invoice_refund
msgid "Credit Note"
msgstr ""

#. module: l10n_it_corrispettivi
#: model_terms:ir.ui.view,arch_db:l10n_it_corrispettivi.report_corrispettivi_document
msgid "Draft Receipt"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.model,name:l10n_it_corrispettivi.model_account_fiscal_position
msgid "Fiscal Position"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.model,name:l10n_it_corrispettivi.model_account_invoice
msgid "Invoice"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.model,name:l10n_it_corrispettivi.model_account_journal
#: model:ir.model.fields,field_description:l10n_it_corrispettivi.field_account_invoice__journal_id
msgid "Journal"
msgstr ""

#. module: l10n_it_corrispettivi
#: code:addons/l10n_it_corrispettivi/models/account.py:82
#, python-format
msgid "No journal found for receipts"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.model.fields,field_description:l10n_it_corrispettivi.field_account_invoice__partner_id
msgid "Partner"
msgstr "ተባባሪ"

#. module: l10n_it_corrispettivi
#: model_terms:ir.ui.view,arch_db:l10n_it_corrispettivi.corrispettivi_form
msgid "Print Receipt"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.actions.report,name:l10n_it_corrispettivi.account_corrispettivi
#: model:ir.model.fields,field_description:l10n_it_corrispettivi.field_account_invoice__corrispettivo
#: model_terms:ir.ui.view,arch_db:l10n_it_corrispettivi.report_corrispettivi_document
msgid "Receipt"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.actions.act_window,name:l10n_it_corrispettivi.action_corrispettivi_tree1
#: model:ir.model.fields,field_description:l10n_it_corrispettivi.field_account_bank_statement_import_journal_creation__corrispettivi
#: model:ir.model.fields,field_description:l10n_it_corrispettivi.field_account_fiscal_position__corrispettivi
#: model:ir.model.fields,field_description:l10n_it_corrispettivi.field_account_journal__corrispettivi
#: model:ir.ui.menu,name:l10n_it_corrispettivi.menu_action_corrispettivi_tree
#: model_terms:ir.ui.view,arch_db:l10n_it_corrispettivi.view_account_journal_form
msgid "Receipts"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.model.fields,field_description:l10n_it_corrispettivi.field_res_partner__use_corrispettivi
#: model:ir.model.fields,field_description:l10n_it_corrispettivi.field_res_users__use_corrispettivi
msgid "Use Receipts"
msgstr ""

#. module: l10n_it_corrispettivi
#: model:ir.model.fields,help:l10n_it_corrispettivi.field_account_invoice__partner_id
msgid "You can find a contact by its Name, TIN, Email or Internal Reference."
msgstr ""
Loading