mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[MIG] intrastat_base to v15
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
# Copyright 2011-2020 Akretion (http://www.akretion.com)
|
||||
# Copyright 2018-2020 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
||||
# Copyright 2009-2020 Noviat (http://www.noviat.com)
|
||||
# Copyright 2011-2021 Akretion (http://www.akretion.com)
|
||||
# Copyright 2018-2021 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
||||
# Copyright 2009-2021 Noviat (http://www.noviat.com)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
"name": "Intrastat Reporting Base",
|
||||
"version": "14.0.2.0.0",
|
||||
"version": "15.0.1.0.0",
|
||||
"category": "Intrastat",
|
||||
"license": "AGPL-3",
|
||||
"summary": "Base module for Intrastat reporting",
|
||||
"author": "ACSONE SA/NV, Akretion,Noviat,Odoo Community Association (OCA)",
|
||||
"maintainers": ["alexis-via", "luc-demeyer"],
|
||||
"website": "https://github.com/OCA/intrastat-extrastat",
|
||||
"depends": ["base_vat", "account"],
|
||||
"excludes": ["account_intrastat"],
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2011-2020 Akretion France (http://www.akretion.com/)
|
||||
Copyright 2011-2021 Akretion France (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo noupdate="1">
|
||||
<record id="base.main_company" model="res.company">
|
||||
<field
|
||||
name="intrastat_remind_user_ids"
|
||||
eval="[(4, ref('base.user_demo')), (4, ref('base.user_admin'))]"
|
||||
/>
|
||||
</record>
|
||||
<record id="base.main_partner" model="res.partner">
|
||||
<field name="vat">FR58441019213</field>
|
||||
</record>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Copyright 2020 Akretion France (http://www.akretion.com/)
|
||||
# Copyright 2020-2021 Akretion France (http://www.akretion.com/)
|
||||
# @author: <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2020 Akretion France (http://www.akretion.com/)
|
||||
# Copyright 2020-2021 Akretion France (http://www.akretion.com/)
|
||||
# @author: <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
@@ -9,7 +9,6 @@ class AccountFiscalPosition(models.Model):
|
||||
_inherit = "account.fiscal.position"
|
||||
|
||||
intrastat = fields.Boolean(
|
||||
string="Intrastat",
|
||||
help="Set to True if the invoices with this fiscal position should "
|
||||
"be taken into account for the generation of the intrastat reports.",
|
||||
)
|
||||
|
||||
@@ -8,7 +8,6 @@ class AccountFiscalPositionTemplate(models.Model):
|
||||
_inherit = "account.fiscal.position.template"
|
||||
|
||||
intrastat = fields.Boolean(
|
||||
string="Intrastat",
|
||||
help="Check this if you want to generate intrastat declarations with"
|
||||
"the created fiscal position",
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2020 Akretion France (http://www.akretion.com/)
|
||||
# Copyright 2020-2021 Akretion France (http://www.akretion.com/)
|
||||
# @author: <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Copyright 2010-2020 Akretion (<alexis.delattre@akretion.com>)
|
||||
# Copyright 2010-2021 Akretion France (http://www.akretion.com/)
|
||||
# @author: <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import _, api, fields, models
|
||||
@@ -9,7 +10,6 @@ class ProductTemplate(models.Model):
|
||||
_inherit = "product.template"
|
||||
|
||||
is_accessory_cost = fields.Boolean(
|
||||
string="Is accessory cost",
|
||||
help="Activate this option for shipping costs, packaging "
|
||||
"costs and all services related to the sale of products. "
|
||||
"This option is used for Intrastat reports.",
|
||||
@@ -23,8 +23,12 @@ class ProductTemplate(models.Model):
|
||||
_(
|
||||
"The option 'Is accessory cost?' should only be "
|
||||
"activated on 'Service' products. You have activated "
|
||||
"this option for the product '%s' which is of type "
|
||||
"'%s'"
|
||||
"this option for the product '{product_name}' which is "
|
||||
"configured with type '{product_type}'."
|
||||
).format(
|
||||
product_name=this.display_name,
|
||||
product_type=this._fields["type"].convert_to_export(
|
||||
this.type, this
|
||||
),
|
||||
)
|
||||
% (this.display_name, this.type)
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2013-2020 Akretion France (http://www.akretion.com/)
|
||||
# Copyright 2013-2021 Akretion France (http://www.akretion.com/)
|
||||
# @author: <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
@@ -63,10 +63,10 @@ class ResCompany(models.Model):
|
||||
logger.warning(xml_bytes)
|
||||
logger.warning(e)
|
||||
usererror = "{}\n\n{}".format(e.__class__.__name__, str(e))
|
||||
raise UserError(usererror)
|
||||
except Exception:
|
||||
raise UserError(usererror) from e
|
||||
except Exception as e:
|
||||
error = _("Unknown Error")
|
||||
tb = "".join(format_exception(*exc_info()))
|
||||
error += "\n%s" % tb
|
||||
logger.warning(error)
|
||||
raise UserError(error)
|
||||
raise UserError(error) from e
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2020 Akretion France (https://akretion.com/)
|
||||
Copyright 2020-2021 Akretion France (https://akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2011-2020 Akretion France (http://www.akretion.com/)
|
||||
Copyright 2015-2020 Noviat (http://www.noviat.com/)
|
||||
Copyright 2011-2021 Akretion France (http://www.akretion.com/)
|
||||
Copyright 2015-2021 Noviat (http://www.noviat.com/)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2010-2020 Akretion France (http://www.akretion.com/)
|
||||
Copyright 2010-2021 Akretion France (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2013-2020 Akretion France (http://www.akretion.com/)
|
||||
Copyright 2013-2021 Akretion France (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
Copyright 2018-2020 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
||||
Copyright 2018-2021 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2010-2020 Akretion France (http://www.akretion.com/)
|
||||
Copyright 2010-2021 Akretion France (http://www.akretion.com/)
|
||||
@author David BEAL <david.beal@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Copyright 2017-2020 Akretion France (http://www.akretion.com/)
|
||||
# Copyright 2018-2020 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
||||
# Copyright 2017-2021 Akretion France (http://www.akretion.com/)
|
||||
# Copyright 2018-2021 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
|
||||
1
setup/intrastat_base/odoo/addons/intrastat_base
Symbolic link
1
setup/intrastat_base/odoo/addons/intrastat_base
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../intrastat_base
|
||||
6
setup/intrastat_base/setup.py
Normal file
6
setup/intrastat_base/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
Reference in New Issue
Block a user