bzr revid: jvo@tinyerp.com-20100519111346-z9dvw9dsp2xumtv3
This commit is contained in:
Jay (Open ERP) 2010-05-19 16:43:46 +05:30
parent 101bebe2a6
commit 54245a5b8d
3 changed files with 3 additions and 3 deletions

View File

@ -21,6 +21,7 @@
from osv import fields, osv
from tools.translate import _
import netsvc
import time
class account_invoice_refund(osv.osv_memory):
@ -35,7 +36,7 @@ class account_invoice_refund(osv.osv_memory):
}
_defaults = {
'date': lambda *a: time.strftime('%Y-%m-%d'),
'date': time.strftime('%Y-%m-%d'),
}
def compute_refund(self, cr, uid, ids, mode, context=None):

View File

@ -19,7 +19,6 @@
#
##############################################################################
import time
import datetime
from osv import fields, osv
from tools.translate import _

View File

@ -185,7 +185,7 @@ class mrp_production(osv.osv):
def action_production_end(self, cr, uid, ids):
obj=self.browse(cr,uid,ids)[0]
for workcenter_line in obj.workcenter_lines:
tmp=self.pool.get('mrp.production.workcenter.line').action_done(cr,uid,[workcenter_line.id])
tmp = self.pool.get('mrp.production.workcenter.line').action_done(cr,uid,[workcenter_line.id])
return super(mrp_production,self).action_production_end(cr,uid,ids)
def action_in_production(self, cr, uid, ids):