Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
tpv_correcciones
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 179e8869
authored
2021-06-29 07:56:13 -0300
by
adrian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
notas manuales
1 parent
380f3a23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
__manifest__.py
models/comprobante.py
views/comprobante.xml
__manifest__.py
View file @
179e886
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
en lo que respecta experiencia de usuario
en lo que respecta experiencia de usuario
Tambien en este modulo se entaran las bases de facturacion
Tambien en este modulo se entaran las bases de facturacion
automatica
automatica
Se Agrega generacion manual para notas de credito y notas
de debito
"""
,
"""
,
'author'
:
'HGT'
,
'author'
:
'HGT'
,
...
@@ -20,7 +22,7 @@
...
@@ -20,7 +22,7 @@
# Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml
# Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml
# for the full list
# for the full list
'category'
:
'Localization/Argentina'
,
'category'
:
'Localization/Argentina'
,
'version'
:
'1.0
5.03
.21'
,
'version'
:
'1.0
6.25
.21'
,
# any module necessary for this one to work correctly
# any module necessary for this one to work correctly
'depends'
:
[
'base'
,
'depends'
:
[
'base'
,
...
...
models/comprobante.py
View file @
179e886
...
@@ -39,6 +39,11 @@ class asw_comprobante(models.Model):
...
@@ -39,6 +39,11 @@ class asw_comprobante(models.Model):
string
=
'QR Fiscal'
string
=
'QR Fiscal'
)
)
referencia_orig_ptv
=
fields
.
Integer
(
string
=
'Punto de venta factura original'
)
referencia_orig_numero
=
fields
.
Integer
(
string
=
'Numero factura original'
)
referencia_orig_letra
=
fields
.
Char
(
string
=
'Letra factura original'
)
referencia_orig_fact
=
fields
.
Many2one
(
comodel_name
=
'asw.comprobante'
,
string
=
'Factura referencia'
)
@api.depends
(
'afip_qr_img'
)
@api.depends
(
'afip_qr_img'
)
def
_compute_afip_qr
(
self
):
def
_compute_afip_qr
(
self
):
for
rec
in
self
:
for
rec
in
self
:
...
...
views/comprobante.xml
View file @
179e886
...
@@ -45,6 +45,10 @@
...
@@ -45,6 +45,10 @@
<data>
<data>
<xpath
expr=
"//field[@name='afip_xml_response']"
position=
"after"
>
<xpath
expr=
"//field[@name='afip_xml_response']"
position=
"after"
>
<!--<field name="qr" />-->
<!--<field name="qr" />-->
<field
name=
"referencia_orig_fact"
/>
<field
name=
"referencia_orig_ptv"
/>
<field
name=
"referencia_orig_numero"
/>
<field
name=
"referencia_orig_letra"
/>
<field
name=
"afip_qr"
/>
<field
name=
"afip_qr"
/>
<field
name=
"afip_qr_img"
widget=
"image"
/>
<field
name=
"afip_qr_img"
widget=
"image"
/>
</xpath>
</xpath>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment