Minor changes in mrp_repair
bzr revid: ruchakpatel@gmail.com-20081016083732-fq30642bm3s43rek
This commit is contained in:
@@ -70,6 +70,7 @@ class mrp_repair(osv.osv):
|
||||
|
||||
_defaults = {
|
||||
'state': lambda *a: 'draft',
|
||||
'invoice_method': lambda *a: 'none',
|
||||
'pricelist_id': lambda self, cr, uid,context : self.pool.get('product.pricelist').search(cr,uid,[('type','=','sale')])[0]
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,12 @@ write({'state':'confirmed'})</field>
|
||||
<field name="condition">(invoice_method=='b4repair')</field>
|
||||
</record>
|
||||
|
||||
<record id="trans_confirm_2binvoiced" model="workflow.transition">
|
||||
<field name="act_from" ref="act_confirmed"/>
|
||||
<field name="act_to" ref="act_2binvoiced"/>
|
||||
<field name="condition">(invoice_method=='after_repair')</field>
|
||||
</record>
|
||||
|
||||
<record id="trans_draft_cancel" model="workflow.transition">
|
||||
<field name="act_from" ref="act_draft"/>
|
||||
<field name="act_to" ref="act_cancel"/>
|
||||
|
||||
Reference in New Issue
Block a user