projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5710f88
)
[IMP]stock : improve little bit code
author
Mayur Maheshwari (OpenERP)
<mma@tinyerp.com>
Thu, 30 Aug 2012 13:03:53 +0000
(18:33 +0530)
committer
Mayur Maheshwari (OpenERP)
<mma@tinyerp.com>
Thu, 30 Aug 2012 13:03:53 +0000
(18:33 +0530)
bzr revid: mma@tinyerp.com-
20120830130353
-9pvgngbpoleef3f2
addons/stock/stock.py
patch
|
blob
|
history
diff --git
a/addons/stock/stock.py
b/addons/stock/stock.py
index
e49cc0f
..
f499717
100644
(file)
--- a/
addons/stock/stock.py
+++ b/
addons/stock/stock.py
@@
-1738,15
+1738,13
@@
class stock_move(osv.osv):
@return: type
"""
picking_type = context.get('picking_type')
- type = False
+ type = 'internal'
if context is None:
context = {}
if picking_type == 'in':
type = 'in'
elif picking_type == 'out':
type = 'out'
- else:
- type = 'internal'
return type
_defaults = {