Browse Source

[CLEAN] remove trailing space

pull/114/head
Thibault Francois 8 years ago
committed by Rémy Taymans
parent
commit
aee89b0488
  1. 8
      beesdoo_purchase/models/purchase.py

8
beesdoo_purchase/models/purchase.py

@ -9,10 +9,10 @@ class PurchaseOrder(models.Model):
purchase_order = super(PurchaseOrder, self).create(vals) purchase_order = super(PurchaseOrder, self).create(vals)
command_contact = self.env.ref('beesdoo_base.commande_beescoop', raise_if_not_found=False) command_contact = self.env.ref('beesdoo_base.commande_beescoop', raise_if_not_found=False)
types = self.env['mail.message.subtype'].search(['|',('res_model','=','purchase.order'),('name','=','Discussions')]) types = self.env['mail.message.subtype'].search(['|',('res_model','=','purchase.order'),('name','=','Discussions')])
if command_contact: if command_contact:
self.env['mail.followers'].create({'res_model' : 'purchase.order',
'res_id' : purchase_order.id,
self.env['mail.followers'].create({'res_model' : 'purchase.order',
'res_id' : purchase_order.id,
'partner_id' : command_contact.id, 'partner_id' : command_contact.id,
'subtype_ids': [(6, 0, types.ids)]}) 'subtype_ids': [(6, 0, types.ids)]})
return purchase_order
return purchase_order
Loading…
Cancel
Save