Skip to content

Commit

Permalink
[MIG] l10n_fr_intrastat_service to v16
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Jan 30, 2023
1 parent c21ee0b commit 6a929b3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion l10n_fr_intrastat_service/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "DES",
"version": "14.0.1.1.0",
"version": "16.0.1.0.0",
"category": "Localisation/Report Intrastat",
"license": "AGPL-3",
"summary": "Module for Intrastat service reporting (DES) for France",
Expand Down
2 changes: 1 addition & 1 deletion l10n_fr_intrastat_service/models/intrastat_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def generate_service_lines(self):
regular_product_in_invoice = False

for line in invoice.invoice_line_ids.filtered(
lambda x: not x.display_type and x.product_id
lambda x: x.display_type == "product" and x.product_id
):
# If we have a regular product/consu in the invoice, we
# don't take the is_accessory_cost in DES (it will be in DEB)
Expand Down
7 changes: 3 additions & 4 deletions l10n_fr_intrastat_service/tests/test_fr_intrastat_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
from dateutil.relativedelta import relativedelta
from lxml import etree

from odoo.exceptions import UserError
from odoo.tests import tagged
from odoo.tests.common import SavepointCase
from odoo.tests.common import TransactionCase
from odoo.tools import float_compare
from odoo.exceptions import UserError


@tagged("post_install", "-at_install")
class TestFrIntrastatService(SavepointCase):

class TestFrIntrastatService(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down
6 changes: 6 additions & 0 deletions setup/l10n_fr_intrastat_service/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 6a929b3

Please sign in to comment.