[MERGE] Merged Addons fixes branch
bzr revid: jvo@tinyerp.com-20101026113257-5vu05j7n3r5w0gai
This commit is contained in:
@@ -66,7 +66,8 @@ class account_tax_chart(osv.osv_memory):
|
||||
result['context'] = str({'state': data['target_move']})
|
||||
|
||||
if data['period_id']:
|
||||
result['name'] += ':' + self.pool.get('account.period').read(cr, uid, [data['period_id']], context=context)[0]['code']
|
||||
period_code = period_obj.read(cr, uid, [data['period_id']], context=context)[0]['code']
|
||||
result['name'] += period_code and (':' + period_code) or ''
|
||||
return result
|
||||
|
||||
_defaults = {
|
||||
|
||||
+2
-1
@@ -26,6 +26,7 @@ from osv import osv, fields
|
||||
from tools.translate import _
|
||||
import netsvc
|
||||
import time
|
||||
import tools
|
||||
|
||||
|
||||
#----------------------------------------------------------
|
||||
@@ -311,7 +312,7 @@ class mrp_bom(osv.osv):
|
||||
mult = (d + (m and 1.0 or 0.0))
|
||||
cycle = mult * wc_use.cycle_nbr
|
||||
result2.append({
|
||||
'name': bom.routing_id.name,
|
||||
'name': tools.ustr(wc_use.name) + ' - ' + tools.ustr(bom.product_id.name),
|
||||
'workcenter_id': wc.id,
|
||||
'sequence': level+(wc_use.sequence or 0),
|
||||
'cycle': cycle,
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<label string="ID: %%(task_id)s"/>
|
||||
<label string="Status: %%(state)s"/>
|
||||
<label string="Date Start: %%(date_start)s"/>
|
||||
<label string="Date Stop: %%(date_stop)s"/>
|
||||
<label string="Date Stop: %%(date)s"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Tasks Stages" groups="base.group_extended">
|
||||
|
||||
Reference in New Issue
Block a user