Merge lp:~numerigraphe/openobject-addons/trunk-stock-docstrings into lp:openobject-addons

Proposed by Numérigraphe
Status: Merged
Merged at revision: 7622
Proposed branch: lp:~numerigraphe/openobject-addons/trunk-stock-docstrings
Merge into: lp:openobject-addons
Diff against target: 50 lines (+11/-2)
1 file modified
stock/stock.py (+11/-2)
To merge this branch: bzr merge lp:~numerigraphe/openobject-addons/trunk-stock-docstrings
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+94740@code.launchpad.net

Description of the change

More informative docstrings and comments in stock/stock.py

To post a comment you must log in.
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

merged in trunk , thanks for the contribution.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'stock/stock.py'
--- stock/stock.py 2012-02-15 18:00:28 +0000
+++ stock/stock.py 2012-02-28 16:09:49 +0000
@@ -669,6 +669,7 @@
669 ]669 ]
670670
671 def action_process(self, cr, uid, ids, context=None):671 def action_process(self, cr, uid, ids, context=None):
672 """Open the partial picking wizard"""
672 if context is None: context = {}673 if context is None: context = {}
673 context = dict(context, active_ids=ids, active_model=self._name)674 context = dict(context, active_ids=ids, active_model=self._name)
674 partial_id = self.pool.get("stock.partial.picking").create(cr, uid, {}, context=context)675 partial_id = self.pool.get("stock.partial.picking").create(cr, uid, {}, context=context)
@@ -710,6 +711,7 @@
710 return {}711 return {}
711712
712 def action_explode(self, cr, uid, moves, context=None):713 def action_explode(self, cr, uid, moves, context=None):
714 """Hook to allow other modules to split the moves of a picking."""
713 return moves715 return moves
714716
715 def action_confirm(self, cr, uid, ids, context=None):717 def action_confirm(self, cr, uid, ids, context=None):
@@ -844,14 +846,20 @@
844 # TODO: change and create a move if not parents846 # TODO: change and create a move if not parents
845 #847 #
846 def action_done(self, cr, uid, ids, context=None):848 def action_done(self, cr, uid, ids, context=None):
847 """ Changes picking state to done.849 """Changes picking state to done.
850
851 This method is called at the end of the workflow by the activity "done".
848 @return: True852 @return: True
849 """853 """
850 self.write(cr, uid, ids, {'state': 'done', 'date_done': time.strftime('%Y-%m-%d %H:%M:%S')})854 self.write(cr, uid, ids, {'state': 'done', 'date_done': time.strftime('%Y-%m-%d %H:%M:%S')})
851 return True855 return True
852856
853 def action_move(self, cr, uid, ids, context=None):857 def action_move(self, cr, uid, ids, context=None):
854 """ Changes move state to assigned.858 """Process the Stock Moves of the Picking
859
860 This method is called by the workflow by the activity "move".
861 Normally that happens when the signal button_done is received (button
862 "Done" pressed on a Picking view).
855 @return: True863 @return: True
856 """864 """
857 for pick in self.browse(cr, uid, ids, context=context):865 for pick in self.browse(cr, uid, ids, context=context):
@@ -2367,6 +2375,7 @@
2367 return res2375 return res
23682376
2369 # action_split function is not used anywhere2377 # action_split function is not used anywhere
2378 # FIXME: deprecate this method
2370 def action_split(self, cr, uid, ids, quantity, split_by_qty=1, prefix=False, with_lot=True, context=None):2379 def action_split(self, cr, uid, ids, quantity, split_by_qty=1, prefix=False, with_lot=True, context=None):
2371 """ Split Stock Move lines into production lot which specified split by quantity.2380 """ Split Stock Move lines into production lot which specified split by quantity.
2372 @param cr: the database cursor2381 @param cr: the database cursor

Subscribers

People subscribed via source and target branches

to all changes: