-
-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_es_intrastat_report: Migration to 17.0
- Loading branch information
Showing
11 changed files
with
34 additions
and
257 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
11 changes: 0 additions & 11 deletions
11
l10n_es_intrastat_report/data/account_fiscal_position_template.xml
This file was deleted.
Oops, something went wrong.
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
113 changes: 0 additions & 113 deletions
113
l10n_es_intrastat_report/migrations/16.0.1.0.0/post-migration.py
This file was deleted.
Oops, something went wrong.
98 changes: 0 additions & 98 deletions
98
l10n_es_intrastat_report/migrations/16.0.1.3.0/post-migration.py
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
from . import l10n_es_intrastat_product_declaration | ||
from . import stock_location | ||
from . import template_es_common |
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,15 @@ | ||
# Part of Odoo. See LICENSE file for full copyright and licensing details. | ||
from odoo import models | ||
|
||
from odoo.addons.account.models.chart_template import template | ||
|
||
|
||
class AccountChartTemplate(models.AbstractModel): | ||
_inherit = "account.chart.template" | ||
|
||
@template("es_common", model="account.fiscal.position") | ||
def _get_fiscal_position(self): | ||
return { | ||
"fp_intra_private": {"intrastat": "b2c"}, | ||
"fp_intra": {"intrastat": "b2b"}, | ||
} |
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
Oops, something went wrong.