mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
@@ -1,11 +1,11 @@
|
|||||||
# Copyright 2011-2016 Akretion (http://www.akretion.com)
|
# Copyright 2011-2020 Akretion (http://www.akretion.com)
|
||||||
# Copyright 2018 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
# Copyright 2018-2020 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
||||||
# Copyright 2009-2020 Noviat (http://www.noviat.com)
|
# Copyright 2009-2020 Noviat (http://www.noviat.com)
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Intrastat Reporting Base",
|
"name": "Intrastat Reporting Base",
|
||||||
"version": "13.0.1.1.0",
|
"version": "14.0.1.0.0",
|
||||||
"category": "Intrastat",
|
"category": "Intrastat",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"summary": "Base module for Intrastat reporting",
|
"summary": "Base module for Intrastat reporting",
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
"depends": ["base_vat", "account"],
|
"depends": ["base_vat", "account"],
|
||||||
"excludes": ["account_intrastat"],
|
"excludes": ["account_intrastat"],
|
||||||
"data": [
|
"data": [
|
||||||
|
"security/ir.model.access.csv",
|
||||||
"data/country_data.xml",
|
"data/country_data.xml",
|
||||||
"views/product_template.xml",
|
"views/product_template.xml",
|
||||||
"views/res_partner.xml",
|
"views/res_partner.xml",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2011-2019 Akretion France (http://www.akretion.com/)
|
Copyright 2011-2020 Akretion France (http://www.akretion.com/)
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
@@ -18,6 +18,6 @@
|
|||||||
<field name="type">service</field>
|
<field name="type">service</field>
|
||||||
<field name="categ_id" ref="product.product_category_all" />
|
<field name="categ_id" ref="product.product_category_all" />
|
||||||
<field name="list_price">30</field>
|
<field name="list_price">30</field>
|
||||||
<field name="is_accessory_cost">True</field>
|
<field name="is_accessory_cost" eval="True" />
|
||||||
</record>
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2011-2019 Akretion France (http://www.akretion.com).
|
# Copyright 2011-2020 Akretion France (http://www.akretion.com).
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from odoo import fields, models
|
from odoo import fields, models
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Copyright 2010-2016 Akretion (<alexis.delattre@akretion.com>)
|
# Copyright 2010-2020 Akretion (<alexis.delattre@akretion.com>)
|
||||||
# Copyright 2009-2019 Noviat (http://www.noviat.com)
|
# Copyright 2009-2020 Noviat (http://www.noviat.com)
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
@@ -102,7 +102,6 @@ class IntrastatCommon(models.AbstractModel):
|
|||||||
corresponding attachement"""
|
corresponding attachement"""
|
||||||
action = {
|
action = {
|
||||||
"name": title,
|
"name": title,
|
||||||
"view_type": "form",
|
|
||||||
"view_mode": "form",
|
"view_mode": "form",
|
||||||
"res_model": "ir.attachment",
|
"res_model": "ir.attachment",
|
||||||
"type": "ir.actions.act_window",
|
"type": "ir.actions.act_window",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2010-2016 Akretion (<alexis.delattre@akretion.com>)
|
# Copyright 2010-2020 Akretion (<alexis.delattre@akretion.com>)
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from odoo import _, api, fields, models
|
from odoo import _, api, fields, models
|
||||||
@@ -26,5 +26,5 @@ class ProductTemplate(models.Model):
|
|||||||
"this option for the product '%s' which is of type "
|
"this option for the product '%s' which is of type "
|
||||||
"'%s'"
|
"'%s'"
|
||||||
)
|
)
|
||||||
% (this.name, this.type)
|
% (this.display_name, this.type)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2013-2017 Akretion France (http://www.akretion.com/)
|
# Copyright 2013-2020 Akretion France (http://www.akretion.com/)
|
||||||
# @author: <alexis.delattre@akretion.com>
|
# @author: <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
@@ -10,7 +10,8 @@ class ResCompany(models.Model):
|
|||||||
_inherit = "res.company"
|
_inherit = "res.company"
|
||||||
|
|
||||||
intrastat_remind_user_ids = fields.Many2many(
|
intrastat_remind_user_ids = fields.Many2many(
|
||||||
"res.users",
|
comodel_name="res.users",
|
||||||
|
relation="company_intrastat_reminder_user_rel",
|
||||||
column1="company_id",
|
column1="company_id",
|
||||||
column2="user_id",
|
column2="user_id",
|
||||||
string="Users Receiving the Intrastat Reminder",
|
string="Users Receiving the Intrastat Reminder",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Copyright 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
# Copyright 2017-2020 Akretion France (http://www.akretion.com/)
|
||||||
# Copyright 2018 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
# Copyright 2018-2020 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).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from odoo import fields, models
|
from odoo import fields, models
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2011-2019 Akretion France (http://www.akretion.com/)
|
# Copyright 2011-2020 Akretion France (http://www.akretion.com/)
|
||||||
# @author: <alexis.delattre@akretion.com>
|
# @author: <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
|||||||
2
intrastat_base/security/ir.model.access.csv
Normal file
2
intrastat_base/security/ir.model.access.csv
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||||
|
access_intrastat_result_view,Access on intrastat.result.view,model_intrastat_result_view,account.group_account_user,1,1,1,0
|
||||||
|
@@ -17,4 +17,4 @@ class TestIntrastatBase(TransactionCase):
|
|||||||
demo_company = self.env.ref("base.main_company")
|
demo_company = self.env.ref("base.main_company")
|
||||||
demo_company.write({"intrastat_remind_user_ids": [(6, False, [demo_user.id])]})
|
demo_company.write({"intrastat_remind_user_ids": [(6, False, [demo_user.id])]})
|
||||||
# then check if intrastat_email_list contains the email of the user
|
# then check if intrastat_email_list contains the email of the user
|
||||||
self.assertEquals(demo_company.intrastat_email_list, demo_user.email)
|
self.assertEqual(demo_company.intrastat_email_list, demo_user.email)
|
||||||
|
|||||||
@@ -1,19 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2011-2019 Akretion France (http://www.akretion.com/)
|
Copyright 2011-2020 Akretion France (http://www.akretion.com/)
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
<odoo>
|
<odoo>
|
||||||
<!-- Add 'exclude_from_intrastat_if_present' on tax form view -->
|
|
||||||
<record id="view_tax_form" model="ir.ui.view">
|
<record id="view_tax_form" model="ir.ui.view">
|
||||||
<field name="name">intrastat.base.tax</field>
|
<field name="name">intrastat.base.tax</field>
|
||||||
<field name="model">account.tax</field>
|
<field name="model">account.tax</field>
|
||||||
<field name="inherit_id" ref="account.view_tax_form" />
|
<field name="inherit_id" ref="account.view_tax_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="active" position="before">
|
<group name="advanced_booleans" position="inside">
|
||||||
<field name="exclude_from_intrastat_if_present" />
|
<field name="exclude_from_intrastat_if_present" />
|
||||||
</field>
|
</group>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2011-2016 Akretion France (http://www.akretion.com/)
|
Copyright 2011-2020 Akretion France (http://www.akretion.com/)
|
||||||
Copyright 2015-2016 Noviat (http://www.noviat.com/)
|
Copyright 2015-2020 Noviat (http://www.noviat.com/)
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
<odoo>
|
<odoo>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<field name="note" nolabel="1" />
|
<field name="note" nolabel="1" />
|
||||||
</group>
|
</group>
|
||||||
<footer>
|
<footer>
|
||||||
<button string="Ok" class="oe_highlight" special="cancel" />
|
<button string="Ok" class="btn-primary" special="cancel" />
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2010-2019 Akretion France (http://www.akretion.com/)
|
Copyright 2010-2020 Akretion France (http://www.akretion.com/)
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
@@ -11,9 +11,9 @@
|
|||||||
<field name="inherit_id" ref="account.product_template_form_view" />
|
<field name="inherit_id" ref="account.product_template_form_view" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<group name="properties" position="after">
|
<group name="properties" position="after">
|
||||||
<group string="Intrastat Properties" name="intrastat">
|
<group string="Intrastat" name="intrastat">
|
||||||
<!-- If you need this field, inherit this view in a
|
<!-- If you need this field, inherit this view in a
|
||||||
localisation module to set invisible="0" -->
|
localisation module to set invisible="0" -->
|
||||||
<field
|
<field
|
||||||
name="is_accessory_cost"
|
name="is_accessory_cost"
|
||||||
attrs="{'invisible': [('type', '!=', 'service')]}"
|
attrs="{'invisible': [('type', '!=', 'service')]}"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2013-2019 Akretion France (http://www.akretion.com/)
|
Copyright 2013-2020 Akretion France (http://www.akretion.com/)
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
Copyright 2018 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
Copyright 2018-2020 brain-tec AG (Kumar Aberer <kumar.aberer@braintec-group.com>)
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2011-2016 Akretion France (http://www.akretion.com)
|
Copyright 2011-2020 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).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2010-2019 Akretion France (http://www.akretion.com/)
|
Copyright 2010-2020 Akretion France (http://www.akretion.com/)
|
||||||
@author David BEAL <david.beal@akretion.com>
|
@author David BEAL <david.beal@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
|
|||||||
Reference in New Issue
Block a user