[IMP]Improve Code

bzr revid: vja@tinyerp.com-20121217130706-0xkms3vltsdzd9nq
This commit is contained in:
Vishmita 2012-12-17 18:37:06 +05:30
parent 34c88ccefc
commit 1165b5122b
3 changed files with 3 additions and 1 deletions

View File

@ -545,6 +545,7 @@
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="domain">[('bom_id', '=',active_ids)]</field>
<field name="view_type">tree</field>
<field name="view_id" ref="mrp_bom_tree_view"/>
</record>
<record id="ir_BOM_structure" model="ir.values">

View File

@ -939,7 +939,7 @@ class task(base_stage, osv.osv):
if task.child_ids:
for child in task.child_ids:
if child.state in ['draft', 'open', 'pending']:
raise osv.except_osv(_("Warning !"), _("Child task still open.\nPlease cancel or complete child task first."))
raise osv.except_osv(_("Warning !"), _("One or more delegated tasks are still open.\nPlease cancel or complete delegated tasks first."))
return True
def action_close(self, cr, uid, ids, context=None):

View File

@ -75,6 +75,7 @@
<div style="position: relative">
<a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
<div class="oe_module_vignette">
<img t-att-src="kanban_image('res.users', 'image_small', record.id.value)" class="oe_avatar oe_kanban_avatar_smallbox"/>
<div class="oe_module_desc">
<field name="name"/>
</div>