Add scheduler.procurement.log

Re-organize the code, so that each module xxx_usability only depend on xxx
This commit is contained in:
Alexis de Lattre
2016-04-03 10:53:35 +02:00
parent 8b361d54e1
commit d7085dad70
8 changed files with 192 additions and 19 deletions

View File

@@ -103,21 +103,3 @@ class StockMove(models.Model):
name = name + ' ' + fields.Date.to_string(date_expec_dt)
res.append((line.id, name))
return res
class ProcurementOrder(models.Model):
_inherit = "procurement.order"
def _procure_orderpoint_confirm(
self, cr, uid, use_new_cursor=False, company_id=False,
context=None):
logger.info(
'procurement scheduler: START to create procurements from '
'orderpoints')
res = super(ProcurementOrder, self)._procure_orderpoint_confirm(
cr, uid, use_new_cursor=use_new_cursor, company_id=company_id,
context=context)
logger.info(
'procurement scheduler: END creation of procurements from '
'orderpoints')
return res