[IMP] Removed little bit code for concating the message_post.
bzr revid: psa@tinyerp.com-20130215112117-v6jwvl2p6f2goczz
This commit is contained in:
parent
3ddc47486e
commit
f8e78b68c6
|
@ -163,7 +163,6 @@ class purchase_order(osv.osv):
|
||||||
'state': {
|
'state': {
|
||||||
'purchase.mt_rfq_confirmed': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'confirmed',
|
'purchase.mt_rfq_confirmed': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'confirmed',
|
||||||
'purchase.mt_rfq_approved': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'approved',
|
'purchase.mt_rfq_approved': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'approved',
|
||||||
'purchase.mt_rfq_invoice_paid': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'done',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
_columns = {
|
_columns = {
|
||||||
|
@ -1192,7 +1191,7 @@ class mail_compose_message(osv.Model):
|
||||||
|
|
||||||
class account_invoice(osv.Model):
|
class account_invoice(osv.Model):
|
||||||
_inherit = 'account.invoice'
|
_inherit = 'account.invoice'
|
||||||
|
|
||||||
def invoice_validate(self, cr, uid, ids, context=None):
|
def invoice_validate(self, cr, uid, ids, context=None):
|
||||||
po_ids = self.pool.get('purchase.order').search(cr,uid,[('invoice_ids','in',ids)],context)
|
po_ids = self.pool.get('purchase.order').search(cr,uid,[('invoice_ids','in',ids)],context)
|
||||||
res = super(account_invoice, self).invoice_validate(cr, uid, ids, context=None)
|
res = super(account_invoice, self).invoice_validate(cr, uid, ids, context=None)
|
||||||
|
|
|
@ -60,10 +60,6 @@
|
||||||
<field name="default" eval="False"/>
|
<field name="default" eval="False"/>
|
||||||
<field name="res_model">purchase.order</field>
|
<field name="res_model">purchase.order</field>
|
||||||
</record>
|
</record>
|
||||||
<record id="mt_rfq_invoice_paid" model="mail.message.subtype">
|
|
||||||
<field name="name">Invoice Paid</field>
|
|
||||||
<field name="default" eval="False"/>
|
|
||||||
<field name="res_model">purchase.order</field>
|
|
||||||
</record>
|
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
|
Loading…
Reference in New Issue