"""
return all(procurement.move_id.state == 'cancel' for procurement in self.browse(cr, uid, ids, context=context))
- #This Function is create to avoid a server side Error Like 'ERROR:tests.mrp:name 'check_move' is not defined'
- def check_move(self, cr, uid, ids, context=None):
- pass
-
def check_move_done(self, cr, uid, ids, context=None):
""" Checks if move is done or not.
@return: True or False.
"""
return False
+ def check_move(self, cr, uid, ids, context=None):
+ """ Check whether the given procurement can be satisfied by an internal move,
+ typically a pulled flow. By default, it's False. Overwritten by the `stock_location` module.
+ """
+ return False
+
def check_conditions_confirm2wait(self, cr, uid, ids):
""" condition on the transition to go from 'confirm' activity to 'confirm_wait' activity """
return not self.test_cancel(cr, uid, ids)
<record id="trans_confirm_mto_make_done" model="workflow.transition">
<!-- This transition is there to unblock products that would be in MTO with a supply method that would be
- produce or buy without MRP or purchase module installed. These modules overwrite the check_produce()
+ produce or buy, and without MRP or Purchase modules installed. These modules overwrite the check_produce()
and check_buy() methods -so that it invalidates their part of this 'bypass transition'-, and define
their own workflow paths.
+ The stock_location module also introduces a check_move() alternative, for pulled flows that are
+ satisfied with an internal product move. This yields a threefold test for the bypass transition.
-->
<field name="act_from" ref="act_confirm_mto"/>
<field name="act_to" ref="act_make_done"/>