-
-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
67 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,5 @@ | ||
# 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 | ||
from . import template_account_chart_template_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
30 changes: 30 additions & 0 deletions
30
l10n_es_intrastat_report/models/template_account_chart_template_common.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,30 @@ | ||
# 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("account_chart_template_common") | ||
def _get_template_data(self): | ||
return { | ||
"property_account_receivable_id": "account_common_4300", | ||
"property_account_payable_id": "account_common_4100", | ||
"property_account_expense_categ_id": "account_common_600", | ||
"property_account_income_categ_id": "account_common_7000", | ||
"income_currency_exchange_account_id": "account_common_768", | ||
"expense_currency_exchange_account_id": "account_common_668", | ||
"default_pos_receivable_account_id": "account_common_4301", | ||
"account_journal_early_pay_discount_loss_account_id": "account_common_6060", | ||
"account_journal_early_pay_discount_gain_account_id": "account_common_7060", | ||
"default_cash_difference_income_account_id": "account_common_778", | ||
"default_cash_difference_expense_account_id": "account_common_678", | ||
"default_pos_receivable_account_id": "account_common_4301", | ||
"account_journal_suspense_account_id": "account_common_572998", | ||
"account_journal_payment_debit_account_id": "account_common_4312", | ||
"account_journal_payment_credit_account_id": "account_common_411", | ||
"property_tax_payable_account_id": "account_common_4750", | ||
"property_tax_receivable_account_id": "account_common_4700", | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from . import test_l10n_es_intrastat_report | ||
# from . import test_l10n_es_intrastat_report |
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.