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 18d07251
authored
2021-11-27 13:48:33 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Correcciones para dolar
1 parent
9cdd547e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
models/__init__.py
models/currency.py
views/currency.xml
models/__init__.py
View file @
18d0725
...
...
@@ -4,3 +4,4 @@ from . import comprobante
from
.
import
referencias
from
.
import
referencia_compra
from
.
import
gastosmobil
from
.
import
currency
\ No newline at end of file
models/currency.py
0 → 100644
View file @
18d0725
# -*- coding: utf-8 -*-
from
odoo
import
models
,
fields
,
api
,
exceptions
from
.qr
import
qrfiscal
from
odoo.exceptions
import
UserError
,
ValidationError
,
Warning
,
RedirectWarning
import
base64
,
datetime
class
res_currency
(
models
.
Model
):
_inherit
=
'res.currency'
codigo_afip
=
fields
.
Char
(
string
=
'Codigo AFIP'
,
help
=
"si se deja en blanco se toma pesos"
)
\ No newline at end of file
views/currency.xml
0 → 100644
View file @
18d0725
<odoo>
<data>
<record
id=
"view_form_inherit_comprobante_recibido_ui"
model=
"ir.ui.view"
>
<field
name=
"name"
>
Moneda
</field>
<field
name=
"model"
>
res.currency
</field>
<field
name=
"inherit_id"
ref=
"asw_tpv.view_form_comprobante_recibido_ui"
/>
<field
name=
"arch"
type=
"xml"
>
<data>
<xpath
expr=
"//group[1]"
position=
"after"
>
<group
string=
"Referencias"
col=
"2"
>
<!--<field name="referencia_corr" widget="many2many_tags" />-->
<field
name=
"referencia_compras_corr"
widget=
"many2many_tags"
/>
</group>
</xpath>
</data>
</field>
</record>
</data>
</odoo>
\ No newline at end of file
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