-
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_it_account_stamp: stamp invoice line deleted on reset to d…
…raft
- Loading branch information
Showing
7 changed files
with
88 additions
and
67 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 |
---|---|---|
|
@@ -57,20 +57,20 @@ necessario abilitare le funzioni complete per la contabilità: | |
|
||
Modalità automatica: | ||
|
||
- andare sul prodotto "Imposta di bollo 2 euro" e configurare "Imposte | ||
per bollo" (Imposte in esenzione). | ||
- per ciascuna fattura o ricevuta, l'applicabilità dell'imposta di bollo | ||
verrà calcolata in modo automatico in base alla somma degli imponibili | ||
relativi alle imposte selezionate. | ||
- andare sul prodotto "Imposta di bollo 2 euro" e configurare "Imposte | ||
per bollo" (Imposte in esenzione). | ||
- per ciascuna fattura o ricevuta, l'applicabilità dell'imposta di | ||
bollo verrà calcolata in modo automatico in base alla somma degli | ||
imponibili relativi alle imposte selezionate. | ||
|
||
Modalità manuale: | ||
|
||
- andare sul prodotto "Imposta di bollo 2 euro" e deselezionare la | ||
casella "Calcolo automatico". | ||
- per ciascuna fattura o ricevuta, abilitare manualmente la casella di | ||
selezione "Imposta di bollo". L'applicabilità dell'imposta di bollo | ||
verrà calcolata in base alla somma degli imponibili relativi alle | ||
imposte selezionate. | ||
- andare sul prodotto "Imposta di bollo 2 euro" e deselezionare la | ||
casella "Calcolo automatico". | ||
- per ciascuna fattura o ricevuta, abilitare manualmente la casella di | ||
selezione "Imposta di bollo". L'applicabilità dell'imposta di bollo | ||
verrà calcolata in base alla somma degli imponibili relativi alle | ||
imposte selezionate. | ||
|
||
Impostare i conti di ricavo/costo nella scheda "Contabilità", | ||
generalmente ricavo="Debiti per bolli" e costo="Valori bollati". | ||
|
@@ -86,17 +86,17 @@ accounting features: | |
|
||
Automatic mode: | ||
|
||
- Go to 'Stamp duty 2 euro' product and configure 'Stamp taxes' | ||
(exemption taxes). | ||
- For each invoice or receipt, the base amount for each selected tax | ||
will be added up and used to determine the application of the account | ||
stamp. | ||
- Go to 'Stamp duty 2 euro' product and configure 'Stamp taxes' | ||
(exemption taxes). | ||
- For each invoice or receipt, the base amount for each selected tax | ||
will be added up and used to determine the application of the account | ||
stamp. | ||
|
||
Manual mode: | ||
|
||
- Go to 'Stamp duty 2 euro' product and deselect 'Auto-compute' | ||
checkbox. | ||
- For each invoice or receipt, manually enable 'Stamp Duty' checkbox. | ||
- Go to 'Stamp duty 2 euro' product and deselect 'Auto-compute' | ||
checkbox. | ||
- For each invoice or receipt, manually enable 'Stamp Duty' checkbox. | ||
|
||
Also set income/expense accounts, typically income = 'Debiti per bolli' | ||
and expense = 'Valori bollati'. | ||
|
@@ -157,17 +157,20 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Lorenzo Battistini <https://github.com/eLBati> | ||
- Sergio Corato | ||
- Ermanno Gnan | ||
- Enrico Ganzaroli | ||
- Sergio Zanchetta <https://github.com/primes2h> | ||
- Marco Colombo <https://github.com/TheMule71> | ||
- Gianmarco Conte <[email protected]> | ||
- Giovanni Serra <[email protected]> | ||
- `Aion Tech <https://aiontech.company/>`__: | ||
|
||
- Simone Rubino <[email protected]> | ||
- Lorenzo Battistini | ||
<`https://github.com/eLBati <https://github.com/eLBati>`__> | ||
- Sergio Corato | ||
- Ermanno Gnan | ||
- Enrico Ganzaroli | ||
- Sergio Zanchetta | ||
<`https://github.com/primes2h <https://github.com/primes2h>`__> | ||
- Marco Colombo | ||
<`https://github.com/TheMule71 <https://github.com/TheMule71>`__> | ||
- Gianmarco Conte <[email protected]> | ||
- Giovanni Serra <[email protected]> | ||
- `Aion Tech <https://aiontech.company/>`__: | ||
|
||
- Simone Rubino <[email protected]> | ||
|
||
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
15 changes: 15 additions & 0 deletions
15
l10n_it_account_stamp/migrations/18.0.1.1.0/post-migration.py
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 @@ | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.logged_query( | ||
env.cr, | ||
""" | ||
UPDATE account_move_line aml | ||
SET | ||
is_stamp_line = NULL | ||
FROM product_template pt | ||
WHERE aml.product_id = pt.id AND aml.is_stamp_line = 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
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