-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[14.0][IMP] add ability to set intrastat only for in_ or out_ invoice…
…s in l10n_it_intrastat
- Loading branch information
1 parent
55e4c1c
commit 2a0a5fd
Showing
9 changed files
with
94 additions
and
20 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 |
---|---|---|
|
@@ -103,9 +103,9 @@ N.B.: Il sottomenù "Intrastat" è visibile solo se vengono abilitate le funzion | |
|
||
**Posizione fiscale** | ||
|
||
L'assoggettamento ad Intrastat può essere gestito anche a livello generale di singolo partner, associandogli una posizione fiscale che abbia l'apposita casella "Soggetta a Intrastat" selezionata. | ||
L'assoggettamento ad Intrastat può essere gestito anche a livello generale di singolo partner, associandogli una posizione fiscale che abbia una o entrambe le caselle: "Soggetta a Intrastat Acquisti" o "Soggetta a Intrastat Vendite" selezionate. | ||
|
||
Tutte le fatture create per il partner che ha una posizione fiscale marcata come soggetta ad Intrastat avranno l’apposito campo "Soggetta a Intrastat" selezionato automaticamente. | ||
Tutte le fatture/note di credito, del tipo Acquisti per fornitori e Vendite per clienti, create per il partner che ha una posizione fiscale marcata come soggetta ad Intrastat avranno l’apposito campo "Soggetta a Intrastat" selezionato automaticamente. | ||
|
||
|
||
**Prodotti e categorie** | ||
|
@@ -197,6 +197,7 @@ Contributors | |
* Antonio Maria Vigliotti <[email protected]> | ||
* Fabio Giovannelli <[email protected]> | ||
* Alex Comba <[email protected]> | ||
* Sergio Corato <https://github.com/sergiocorato> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
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
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,34 @@ | ||
from openupgradelib import openupgrade | ||
from openupgradelib.openupgrade_tools import column_exists | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
for table, column in [ | ||
("account_fiscal_position", "intrastat_sale"), | ||
("account_fiscal_position", "intrastat_purchase"), | ||
]: | ||
if not column_exists(env.cr, table, column): | ||
openupgrade.add_fields( | ||
env, | ||
[ | ||
( | ||
column, | ||
".".join(table.split("_")), | ||
False, | ||
"boolean", | ||
False, | ||
"l10n_it_intrastat", | ||
) | ||
], | ||
) | ||
openupgrade.logged_query( | ||
env.cr, | ||
""" | ||
UPDATE account_fiscal_position | ||
SET | ||
intrastat_sale = intrastat, | ||
intrastat_purchase = intrastat | ||
WHERE intrastat is 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
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
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
* Antonio Maria Vigliotti <[email protected]> | ||
* Fabio Giovannelli <[email protected]> | ||
* Alex Comba <[email protected]> | ||
* 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
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
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