Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Anadelia
anadelia_produccion
Commits
ff198638
Commit
ff198638
authored
7 years ago
by
Santiago Said
Browse files
Options
Downloads
Plain Diff
Merge branch '7.0-stage' into '7.0'
7.0 stage See merge request
!10
parents
9875df02
111d139d
Branches
Branches containing commit
1 merge request
!10
7.0 stage
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
__openerp__.py
+1
-1
__openerp__.py
anadelia_produccion.py
+16
-0
anadelia_produccion.py
with
17 additions
and
1 deletion
__openerp__.py
+
1
−
1
View file @
ff198638
...
...
@@ -26,7 +26,7 @@
'
description
'
:
""""""
,
'
author
'
:
''
,
'
website
'
:
'
http://www.eynes.com.ar/
'
,
'
depends
'
:
[
'
mrp
'
,
'
jasper_reports
'
],
'
depends
'
:
[
'
mrp
'
,
'
jasper_reports
'
,
'
delivery_cot
'
],
'
init_xml
'
:
[],
'
data
'
:
[
'
anadelia_produccion_view.xml
'
,
...
...
This diff is collapsed.
Click to expand it.
anadelia_produccion.py
+
16
−
0
View file @
ff198638
...
...
@@ -493,6 +493,22 @@ class stock_picking(osv.osv):
'
operation_code
'
:
fields
.
char
(
'
Operation Code
'
,
size
=
13
),
}
def
_get_packages
(
self
,
cr
,
uid
,
ids
,
context
=
None
):
"""
Overriden to use the qty_x_package defined in product
"""
if
context
is
None
:
context
=
{}
for
line
in
self
.
browse
(
cr
,
uid
,
ids
,
context
=
context
):
qty
=
0
aux
=
0
for
move
in
line
.
move_lines
:
q_x_p
=
line
.
product_id
.
qty_x_package
if
q_x_p
:
aux
=
move
.
product_qty
/
q_x_p
qty
+=
aux
return
qty
def
create
(
self
,
cr
,
uid
,
vals
,
context
=
None
):
vals
[
'
operation_code
'
]
=
self
.
pool
.
get
(
'
ir.sequence
'
).
get
(
cr
,
uid
,
'
picking.code
'
)
or
'
/
'
return
super
(
stock_picking
,
self
).
create
(
cr
,
uid
,
vals
,
context
=
context
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets