Revert "[IMP] account/stock_account: Add a clickable history on journal entries chatters"

This reverts commit 92929ec6a7.

This chatter significantly reduces the perfomances.
This commit is contained in:
Yannick Tivisse
2017-07-11 14:27:37 +02:00
parent 3afb78371f
commit c9b74a047c
4 changed files with 0 additions and 11 deletions
-3
View File
@@ -941,9 +941,6 @@ class AccountInvoice(models.Model):
'move_name': move.name,
}
inv.with_context(ctx).write(vals)
move.message_post_with_view('mail.message_origin_link',
values={'self': move, 'origin': inv},
subtype_id=self.env.ref('mail.mt_note').id)
return True
@api.multi
-1
View File
@@ -19,7 +19,6 @@ from lxml import etree
class AccountMove(models.Model):
_name = "account.move"
_description = "Account Entry"
_inherit = ['mail.thread']
_order = 'date desc, id desc'
@api.multi
-4
View File
@@ -1459,10 +1459,6 @@
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
-3
View File
@@ -137,9 +137,6 @@ class StockQuant(models.Model):
'date': date,
'ref': move.picking_id.name})
new_account_move.post()
new_account_move.message_post_with_view('mail.message_origin_link',
values={'self': new_account_move, 'origin': move.picking_id},
subtype_id=self.env.ref('mail.mt_note').id)
def _quant_create_from_move(self, qty, move, lot_id=False, owner_id=False, src_package_id=False, dest_package_id=False, force_location_from=False, force_location_to=False):
quant = super(StockQuant, self)._quant_create_from_move(qty, move, lot_id=lot_id, owner_id=owner_id, src_package_id=src_package_id, dest_package_id=dest_package_id, force_location_from=force_location_from, force_location_to=force_location_to)