openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #03910
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-729539-ron into lp:openobject-addons
Rohan Nayani(openerp) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-729539-ron into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
#729539 split production lot in 'products to consume'
https://bugs.launchpad.net/bugs/729539
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-729539-ron/+merge/52668
* Bug #729539: split production lot in 'products to consume' Remove
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-729539-ron/+merge/52668
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-729539-ron.
=== modified file 'stock/wizard/stock_move.py'
--- stock/wizard/stock_move.py 2011-01-14 00:11:01 +0000
+++ stock/wizard/stock_move.py 2011-03-09 12:30:47 +0000
@@ -21,6 +21,8 @@
from osv import fields, osv
+import decimal_precision as dp
+
class stock_move_track(osv.osv_memory):
_name = "stock.move.track"
_description = "Track moves"
@@ -198,7 +200,7 @@
return res
_columns = {
- 'qty': fields.integer('Quantity'),
+ 'qty': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM')),
'product_id': fields.many2one('product.product', 'Product', required=True, select=True),
'product_uom': fields.many2one('product.uom', 'UoM'),
'line_ids': fields.one2many('stock.move.split.lines', 'lot_id', 'Production Lots'),
@@ -297,12 +299,12 @@
_description = "Exist Split lines"
_columns = {
'name': fields.char('Tracking serial', size=64),
- 'quantity': fields.integer('Quantity'),
+ 'quantity': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM')),
'lot_id': fields.many2one('stock.move.split', 'Lot'),
'prodlot_id': fields.many2one('stock.production.lot', 'Production Lot'),
}
_defaults = {
- 'quantity': lambda *x: 1,
+ 'quantity': lambda *x: 1.00,
}
stock_move_split_lines_exist()
@@ -312,13 +314,13 @@
_description = "Split lines"
_columns = {
'name': fields.char('Tracking serial', size=64),
- 'quantity': fields.integer('Quantity'),
+ 'quantity': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM')),
'use_exist' : fields.boolean('Existing Lot'),
'lot_id': fields.many2one('stock.move.split', 'Lot'),
'action': fields.selection([('split','Split'),('keepinone','Keep in one lot')],'Action'),
}
_defaults = {
- 'quantity': lambda *x: 1,
+ 'quantity': lambda *x: 1.00,
'action' : lambda *x: 'split',
}
stock_move_split_lines()
Follow ups