_columns = {
'bom_id': fields.many2one('mrp.bom', 'BoM', ondelete='cascade', select=True),
'property_ids': fields.many2many('mrp.property', 'procurement_property_rel', 'procurement_id','property_id', 'Properties'),
+ 'production_id': fields.many2one('mrp.production', 'Manufucture Order'),
}
- def check_produce_product(self, cr, uid, procurement, context=[]):
+ def check_produce_product(self, cr, uid, procurement, context=None):
""" Finds the bill of material for the product from procurement order.
@return: True or False
"""
return obj_id
def create_send_note(self, cr, uid, ids, context=None):
- self.message_post(cr, uid, ids, body=_("Procurement has been <b>created</b>."), context=context)
+ self.message_post(cr, uid, ids, body=_("Procurement <b>created</b>."), context=context)
def confirm_send_note(self, cr, uid, ids, context=None):
- self.message_post(cr, uid, ids, body=_("Procurement has been <b>confirmed</b>."), context=context)
+ self.message_post(cr, uid, ids, body=_("Procurement <b>confirmed</b>."), context=context)
- def running_send_note(self, cr, uid, ids, context=None):
- self.message_post(cr, uid, ids, body=_("Procurement set to <b>running</b>."), context=context)
-
- def ready_send_note(self, cr, uid, ids, context=None):
- self.message_post(cr, uid, ids, body=_("Procurement set to <b>ready</b>."), context=context)
-
def cancel_send_note(self, cr, uid, ids, context=None):
- self.message_post(cr, uid, ids, body=_("Procurement has been <b>cancelled</b>."), context=context)
+ self.message_post(cr, uid, ids, body=_("Procurement <b>cancelled</b>."), context=context)
def done_send_note(self, cr, uid, ids, context=None):
- self.message_post(cr, uid, ids, body=_("Procurement has been <b>done</b>."), context=context)
+ self.message_post(cr, uid, ids, body=_("Procurement <b>done</b>."), context=context)
procurement_order()