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 f5430cb6
authored
2022-10-22 17:47:18 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Correccion de producto defecto
1 parent
8821e6b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
wizard/prod_pfinal.py
wizard/prod_pfinal.py
View file @
f5430cb
...
@@ -5,11 +5,15 @@ class asw_prod_pfinal(models.TransientModel):
...
@@ -5,11 +5,15 @@ class asw_prod_pfinal(models.TransientModel):
_name
=
'asw.prod_pfinal'
_name
=
'asw.prod_pfinal'
_description
=
'Producto Precio Final'
_description
=
'Producto Precio Final'
def
_ppf_producto_default
(
self
):
rta
=
self
.
env
[
"asw.producto"
]
.
search
([[
"active"
,
"="
,
True
]],
limit
=
1
)
return
(
rta
)
ppf_producto
=
fields
.
Many2one
(
ppf_producto
=
fields
.
Many2one
(
string
=
u'Producto'
,
string
=
u'Producto'
,
comodel_name
=
'asw.producto'
,
comodel_name
=
'asw.producto'
,
ondelete
=
'set null'
,
ondelete
=
'set null'
,
default
=
(
1
)
default
=
_ppf_producto_default
)
)
ppf_descripcion_producto
=
fields
.
Text
(
ppf_descripcion_producto
=
fields
.
Text
(
...
@@ -42,7 +46,7 @@ class asw_prod_pfinal(models.TransientModel):
...
@@ -42,7 +46,7 @@ class asw_prod_pfinal(models.TransientModel):
)
)
ppf_precio_bruto
=
fields
.
Monetary
(
ppf_precio_bruto
=
fields
.
Monetary
(
string
=
u'Precio
Bru
to'
,
string
=
u'Precio
Ne
to'
,
currency_field
=
'ppf_moneda'
,
currency_field
=
'ppf_moneda'
,
readonly
=
True
,
readonly
=
True
,
store
=
True
,
store
=
True
,
...
...
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