Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Jorels Community
Edi
Commits
a5852b9e
Commit
a5852b9e
authored
Nov 10, 2020
by
Jorge Sanabria
Browse files
Update
parent
70acd6ea
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
404 additions
and
99 deletions
+404
-99
l10n_co_edi_jorels/.gitignore
l10n_co_edi_jorels/.gitignore
+189
-0
l10n_co_edi_jorels/i18n/es_CO.po
l10n_co_edi_jorels/i18n/es_CO.po
+2
-2
l10n_co_edi_jorels/models/account_invoice.py
l10n_co_edi_jorels/models/account_invoice.py
+204
-95
l10n_co_edi_jorels/models/listings/municipalities.py
l10n_co_edi_jorels/models/listings/municipalities.py
+1
-0
l10n_co_edi_jorels/models/mail_template.py
l10n_co_edi_jorels/models/mail_template.py
+2
-2
l10n_co_edi_jorels/views/account_invoice_view.xml
l10n_co_edi_jorels/views/account_invoice_view.xml
+3
-0
update_from_csv/.gitignore
update_from_csv/.gitignore
+3
-0
No files found.
l10n_co_edi_jorels/.gitignore
0 → 100644
View file @
a5852b9e
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
#lib/
#lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
#*.mo
#*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
.idea/
controllers/__pycache__/
models/__pycache__/
models/listings/__pycache__/
tests/__pycache__/
/i18n/*.mo
l10n_co_edi_jorels/i18n/es_CO.po
View file @
a5852b9e
...
...
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-08 18:18+0000\n"
"PO-Revision-Date: 2020-1
0
-0
8
1
5:11
-0500\n"
"PO-Revision-Date: 2020-1
1
-0
9
1
8:57
-0500\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
...
...
@@ -5276,7 +5276,7 @@ msgstr "El último día del ejercicio fiscal es inválido"
#: model_terms:ir.ui.view,arch_db:account.view_account_invoice_filter
#, python-format
msgid "Invoice"
msgstr "Factura"
msgstr "Factura
electrónica de Venta
"
#. module: account
#: model:ir.model.fields,field_description:account.field_account_invoice_report__number
...
...
l10n_co_edi_jorels/models/account_invoice.py
View file @
a5852b9e
This diff is collapsed.
Click to expand it.
l10n_co_edi_jorels/models/listings/municipalities.py
View file @
a5852b9e
...
...
@@ -30,6 +30,7 @@ class Municipalities(models.Model):
_name
=
"l10n_co_edi_jorels.municipalities"
_inherit
=
"l10n_co_edi_jorels.languages"
_description
=
"Municipios"
_order
=
"name"
department_id
=
fields
.
Many2one
(
comodel_name
=
'l10n_co_edi_jorels.departments'
,
string
=
"Departamento"
,
required
=
True
,
readonly
=
True
,
index
=
True
)
l10n_co_edi_jorels/models/mail_template.py
View file @
a5852b9e
...
...
@@ -11,8 +11,8 @@ class MailTemplate(models.Model):
if
self
.
env
.
context
.
get
(
'attach_ei_zip_file'
):
for
res_id
,
template
in
self
.
get_email_template
(
res_ids
).
items
():
invoice
=
self
.
env
[
'account.invoice'
].
browse
(
res_id
)
zip_filename
=
invoice
.
ei_
zip_name
zip_string
=
invoice
.
ei_zip_base64_bytes
zip_filename
=
invoice
.
ei_
uuid
zip_string
=
invoice
.
ei_
attached_
zip_base64_bytes
zip_attachments
=
invoice
.
_generate_email_attachment
(
zip_filename
,
zip_string
)
if
len
(
zip_attachments
)
==
1
and
zip_filename
:
ext
=
'.zip'
...
...
l10n_co_edi_jorels/views/account_invoice_view.xml
View file @
a5852b9e
...
...
@@ -40,6 +40,8 @@
<button
name=
"validate_dian_test"
type=
"object"
string=
"Validar DIAN Test"
class=
"o_invoice_validate"
groups=
"base.group_no_one"
attrs=
"{'invisible': [('state','!=','validate')]}"
/>
<button
name=
"status_document"
type=
"object"
string=
"Consultar DIAN"
groups=
"base.group_no_one"
attrs=
"{'invisible': [('state','!=','open')]}"
/>
</xpath>
<!-- <xpath expr="//field[@name='state']" position="replace">-->
<!-- <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,validate,open,paid"/>-->
...
...
@@ -70,6 +72,7 @@
<field
name=
"ei_pdf_base64_bytes"
readonly=
"True"
/>
<field
name=
"ei_zip_base64_bytes"
readonly=
"True"
/>
<field
name=
"ei_dian_response_base64_bytes"
readonly=
"True"
/>
<field
name=
"ei_attached_zip_base64_bytes"
readonly=
"True"
/>
</group>
<group
name=
"dian_qr"
>
<field
name=
"ei_qr_data"
readonly=
"True"
/>
...
...
update_from_csv/.gitignore
0 → 100644
View file @
a5852b9e
/.idea
/.directory
*.pyc
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment