-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
57 additions
and
37 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 |
---|---|---|
|
@@ -144,12 +144,15 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Lorenzo Battistini <https://github.com/eLBati> | ||
- Lorenzo Battistini | ||
<`https://github.com/eLBati <https://github.com/eLBati>`__> | ||
- Sergio Corato | ||
- Ermanno Gnan | ||
- Enrico Ganzaroli | ||
- Sergio Zanchetta <https://github.com/primes2h> | ||
- Marco Colombo <https://github.com/TheMule71> | ||
- 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/>`__: | ||
|
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/16.0.1.2.0/post-migrate.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