Skip to content

Commit

Permalink
Merge PR #2303 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by TheMule71
  • Loading branch information
OCA-git-bot committed Sep 17, 2021
2 parents 47b068e + 7d625be commit b8993d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 3 additions & 0 deletions l10n_it_fatturapa_out/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
* Sergio Zanchetta <https://github.com/primes2h>
* Marco Colombo <https://github.com/TheMule71>
* Giovanni Serra <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`_:

* Víctor Martínez
10 changes: 3 additions & 7 deletions l10n_it_fatturapa_out/tests/fatturapa_common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import base64
import os
import shutil
import tempfile

from lxml import etree
Expand Down Expand Up @@ -209,11 +207,9 @@ def getFilePath(self, filepath):
def getAttachment(self, name, module_name=None):
if module_name is None:
module_name = "l10n_it_fatturapa_out"
path = get_module_resource(module_name, "tests", "data", "attah_base.pdf")
currDir = os.path.dirname(path)
new_file = "{}/{}".format(currDir, name)
shutil.copyfile(path, new_file)
return self.getFilePath(new_file)
return self.getFilePath(
get_module_resource(module_name, "tests", "data", "attah_base.pdf")
)

def getFile(self, filename, module_name=None):
if module_name is None:
Expand Down

0 comments on commit b8993d1

Please sign in to comment.