[IMP] STOCK: Improvement in OSV wiz , Remove stock_move_track wiz
bzr revid: aag@tinyerp.co.in-20110214065413-jd4ow4sx80qaqgmc
This commit is contained in:
@@ -1114,7 +1114,6 @@ msgstr ""
|
||||
#: view:stock.invoice.onshipping:0
|
||||
#: view:stock.location.product:0
|
||||
#: view:stock.move:0
|
||||
#: view:stock.move.track:0
|
||||
#: view:stock.picking:0
|
||||
#: view:stock.split.into:0
|
||||
msgid "_Cancel"
|
||||
@@ -1693,7 +1692,6 @@ msgid "Search Inventory"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: field:stock.move.track,quantity:0
|
||||
msgid "Quantity per lot"
|
||||
msgstr ""
|
||||
|
||||
@@ -1920,7 +1918,6 @@ msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: model:ir.actions.act_window,name:stock.track_line_old
|
||||
#: view:stock.move.track:0
|
||||
msgid "Tracking a move"
|
||||
msgstr ""
|
||||
|
||||
@@ -2461,7 +2458,6 @@ msgid "If checked, products contained in child locations of selected location wi
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: field:stock.move.track,tracking_prefix:0
|
||||
msgid "Tracking prefix"
|
||||
msgstr ""
|
||||
|
||||
@@ -2901,7 +2897,6 @@ msgstr ""
|
||||
#: view:stock.move.consume:0
|
||||
#: view:stock.move.scrap:0
|
||||
#: view:stock.move.split:0
|
||||
#: view:stock.move.track:0
|
||||
#: view:stock.split.into:0
|
||||
msgid "Ok"
|
||||
msgstr ""
|
||||
|
||||
@@ -21,35 +21,6 @@
|
||||
|
||||
from osv import fields, osv
|
||||
|
||||
class stock_move_track(osv.osv_memory):
|
||||
_name = "stock.move.track"
|
||||
_description = "Track moves"
|
||||
|
||||
_columns = {
|
||||
'tracking_prefix': fields.char('Tracking prefix', size=64),
|
||||
'quantity': fields.float("Quantity per lot")
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
'quantity': lambda *x: 1
|
||||
}
|
||||
|
||||
def track_lines(self, cr, uid, ids, context=None):
|
||||
""" To track stock moves lines
|
||||
@param self: The object pointer.
|
||||
@param cr: A database cursor
|
||||
@param uid: ID of the user currently logged in
|
||||
@param ids: An ID or list of IDs if we want more than one
|
||||
@param context: A standard dictionary
|
||||
@return:
|
||||
"""
|
||||
datas = self.read(cr, uid, ids)[0]
|
||||
move_obj = self.pool.get('stock.move')
|
||||
move_obj._track_lines(cr, uid, context['active_id'], datas, context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
stock_move_track()
|
||||
|
||||
class stock_move_consume(osv.osv_memory):
|
||||
_name = "stock.move.consume"
|
||||
_description = "Consume Products"
|
||||
|
||||
@@ -2,34 +2,6 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_stock_move_track_wizard" model="ir.ui.view">
|
||||
<field name="name">Tracking a move</field>
|
||||
<field name="model">stock.move.track</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Tracking a move">
|
||||
<field name="tracking_prefix" colspan="4"/>
|
||||
<field name="quantity" colspan="4"/>
|
||||
<newline/>
|
||||
<separator string="" colspan="4" />
|
||||
<button icon='gtk-cancel' special="cancel"
|
||||
string="_Cancel" />
|
||||
<button name="track_lines" string="Ok"
|
||||
type="object" icon="gtk-ok" />
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="track_line_old" model="ir.actions.act_window">
|
||||
<field name="name">Tracking a move</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">stock.move.track</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!-- Consume, scrap move -->
|
||||
|
||||
<record id="view_stock_move_consume_wizard" model="ir.ui.view">
|
||||
|
||||
Reference in New Issue
Block a user