-
-
Notifications
You must be signed in to change notification settings - Fork 350
[10.0] Improvement to l10n_it_fiscalcode #278
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
Closed
Closed
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
7be9630
Modified check_fiscalcode() method and button in the form
Giuliano69 54d6b5e
Modified check_fiscalcode() code and button visibility in form
Giuliano69 b8a7fcf
Modified .travis.yaml for test build start
Giuliano69 fe524d7
Modified .travis.yaml for test build start
Giuliano69 5279ff9
Removed is_individual field from wizard. Code cleaning for flake8
Giuliano69 5312e6c
Test Unit: Create a temporary partner to compute and test fiscal code
Giuliano69 4f25305
Ported constrain to @api.constrains - Changed res.partner in tes unit
Giuliano69 e84f395
Ported constrain to @api.constrains - Changed res.partner_2 in tes unit
Giuliano69 eb385f4
modified: .travis.yml
Giuliano69 eb9c274
modified: .travis.yml : added stdnum library for complet fiscalcod…
Giuliano69 7524569
modified: .travis.yml - corrected error in importing python-stdnum
Giuliano69 bb4cfe0
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py - test_fiscal…
Giuliano69 9425e1b
modified: .travis.yml : removed commented lines
Giuliano69 21ab865
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py - moved test…
Giuliano69 9bbdf0a
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py - changed do…
Giuliano69 5156a3e
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py updated sear…
Giuliano69 e839c9f
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py - changed "i…
Giuliano69 1d0a256
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py - try to fix…
Giuliano69 218989f
modified: .travis.yml - added codcov and covaralls
Giuliano69 d11a5cb
modified: l10n_it_fiscalcode/model/res_partner.py - modified oncha…
Giuliano69 276de27
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py corrected py…
Giuliano69 72a34ac
modified: l10n_it_fiscalcode/model/res_partner.py - pylint indent …
Giuliano69 70679c2
modified: l10n_it_fiscalcode/model/res_partner.py - changed empty …
Giuliano69 995f89e
modified: l10n_it_fiscalcode/model/res_partner.py - indent correction
Giuliano69 a9312d0
modified: l10n_it_fiscalcode/model/res_partner.py - bad indentatio…
Giuliano69 758f9cb
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py - changed va…
Giuliano69 64b9a16
modified: l10n_it_fiscalcode/tests/test_fiscalcode.py - too many b…
Giuliano69 a3821fb
modified: l10n_it_fiscalcode/i18n/it.po - updatet Italian translation
Giuliano69 4b163f0
modified: l10n_it_fiscalcode/static/description/icon.png - changed…
Giuliano69 8672ba8
modified: l10n_it_fiscalcode/__manifest__.py - extended to conside…
Giuliano69 fac8c35
modified: l10n_it_fiscalcode/__manifest__.py - fixed whitespaces i…
Giuliano69 d8ed237
modified: l10n_it_fiscalcode/model/res_partner.py - whitespaces fi…
Giuliano69 3434473
modified: l10n_it_fiscalcode/tests/test_fiscalcode_wizard.py - add…
Giuliano69 629f427
modified: l10n_it_fiscalcode/tests/test_fiscalcode_wizard.py - res…
Giuliano69 16eb0df
modified: l10n_it_fiscalcode/tests/test_fiscalcode_wizard.py - fis…
Giuliano69 955f3a6
modified: l10n_it_fiscalcode/tests/test_fiscalcode_wizard.py - one…
Giuliano69 9a7f1de
modified: l10n_it_fiscalcode/tests/test_fiscalcode_wizard.py rever…
Giuliano69 6173cc9
modified: l10n_it_fiscalcode/model/res_partner.py - isnumeric() ->…
Giuliano69 e56269c
modified: l10n_it_fiscalcode/tests/test_partner.py - corrected imp…
Giuliano69 ca1a38d
modified: l10n_it_fiscalcode/tests/test_partner.py - modified test…
Giuliano69 4e58f39
modified: l10n_it_fiscalcode/tests/test_partner.py - rewritten tes…
Giuliano69 25712ed
modified: l10n_it_fiscalcode/model/res_partner.py - boolean condit…
Giuliano69 97b6057
Merge branch 'fc-02' into fc-01
Giuliano69 60b3cd9
modified: l10n_it_fiscalcode/tests/test_fiscalcode_wizard.py - add…
Giuliano69 24ccd6a
modified: l10n_it_fiscalcode/__manifest__.py - updated new verion …
Giuliano69 8887440
modified: l10n_it_fiscalcode/model/res_partner.py - otpimized bran…
Giuliano69 0b9b537
Merge branch '10.0' into fc-01
Giuliano69 6440831
modified: l10n_it_fiscalcode/model/res_partner.py - modified to al…
Giuliano69 1366dd0
modified: l10n_it_fiscalcode/model/res_partner.py commented out de…
Giuliano69 1457d62
modified: l10n_it_fiscalcode/tests/test_partner.py removed flake8 …
Giuliano69 f2f27e8
modified: l10n_it_fiscalcode/tests/test_partner.py removed trailin…
Giuliano69 940f249
modified: tests/test_partner.py - modified test unit to avoid ORM bug
Giuliano69 b52289f
modified: __manifest__.py Exactly one space required after comma
Giuliano69 8f526ab
modified: l10n_it_fiscalcode/model/res_partner.py - removed debug …
Giuliano69 2fb02d1
modified: l10n_it_fiscalcode/i18n/it.po - sync with italian transl…
Giuliano69 33a181c
Merge branch '10.0' into fc-01
Giuliano69 3d4ca25
FIX l10n_it_fiscalcode: correctly test onchange (#1)
eLBati 1629903
modified: l10n_it_fiscalcode/README.rst - updated description to n…
Giuliano69 0ac022e
modified: l10n_it_fiscalcode/tests/test_partner.py - unused variab…
Giuliano69 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -12,14 +12,40 @@ and to allow you to computation Fiscal code computation for partner | |
| Installation | ||
| ============ | ||
|
|
||
| To install this module, you need to: | ||
| To install this module, you need the following external Python Packages: | ||
|
|
||
| * Python module to handle/check standardized numbers and codes `python-stdnum`_. | ||
| * Python library for Italian fiscal code creation - `codicefiscale`_. | ||
|
|
||
| .. _python-stdnum: https://pypi.python.org/pypi/python-stdnum/ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ciao @Giuliano69 , non è necessaria un'altra libreria: |
||
| .. _codicefiscale: https://pypi.python.org/pypi/codicefiscale | ||
|
|
||
| Install Python Depends `codicefiscale <https://pypi.python.org/pypi/codicefiscale>`_. | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| To use this module, you need to: | ||
| Il modulo: | ||
|
|
||
| * verifica l'esattezza del codice fiscale (anche con possibili omocodie),in fase di inserimento | ||
| * permette la ricerca del partner con il numero di codice fiscale, dalla barra di ricerca della scheda partner | ||
| * avvisa se eventualmente il codice fiscale è già presente nel sistema durante l'inserimento o modifica | ||
| * aggiunge il campo "impresa individuale" per le pesone fisiche, nella maschera del partner | ||
| * stampa il codice fiscale (se presente) nella fattura. | ||
|
|
||
| L'inserimento del CF, nonchè la sua uguaglianza o meno tra CF e partita IVA è considerata corretta nei casi sotto indicati: | ||
|
|
||
| * Persona: | ||
|
|
||
| a) Sotto-caso privato cittadino (solo CF), | ||
| b) Sotto-caso libero professionista (CF + PIVA, diversi) | ||
|
|
||
| * Azienda: | ||
|
|
||
| c) Sotto-caso impresa individuale (CF + PIVA, diversi) | ||
| d) Sotto-caso impresa societaria/associazioni (CF + PIVA, uguali) | ||
|
|
||
| Il modulo può generare anche un nuovo codice fiscale, richiedendo i dati | ||
| anagrafici della persona a cui riferisce: | ||
|
|
||
| #. Go to Partner and Run Wizard "Compute F.C." | ||
|
|
||
|
|
@@ -54,6 +80,7 @@ Contributors | |
| * Franco Tampieri <franco.tampieri@agilebg.com> | ||
| * Andrea Cometa <info@andreacometa.it> | ||
| * Andrea Gallina <a.gallina@apuliasoftware.it> | ||
| * Giuliano Lotta <giuliano.lotta@gmail.com> | ||
|
|
||
|
|
||
| Maintainer | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # Copyright 2016 Giuliano Lotta | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
|
||
| from odoo import models, fields | ||
|
|
||
|
|
||
| class ResCompany(models.Model): | ||
| """ Extends res.company to add Italian Fiscal Code | ||
| """ | ||
| # Private attributes | ||
| _inherit = 'res.company' | ||
|
|
||
| # Fields declaration | ||
| fiscalcode = fields.Char(related='partner_id.fiscalcode') | ||
| is_soletrader = fields.Boolean(related='partner_id.is_soletrader') |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Queste 2 righe non dovrebbero essere aggiunte