Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5753 มุมมอง

Dear Colleagues,

I'm just trying to figure out if there is a module to enable the "messages and communication history" for journal entries (account.move). Basically what is missing for us are the atomatic notes created by Odoo indicating who" and "when" created or modified a journal entry.

As a workaround I have tested the module "auditlog", the problem is that it logs the "id" of the object, but there is no direct link from the journal entry to the log, so for a normal user it's not a solution.

Thanks,

Nicolas

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You could do it simply by add the necessary code for that model. like:

#put it to inherit from mail.threadclass account_move(osv.osv):    _name = 'account.move'    _inherit = ['mail.thread']

Extend the views to add the chatter widget, like:

<record id="view_move_form" model="ir.ui.view">

<field name="name">account.move.form</field>

<field name="model">account.move</field>

<field name="inherit_id" ref="account.view_move_form"/>

<field name="arch" type="xml">

<xpath expr="//notebook" position="after">

<div class="oe_chatter">

<field name="message_follower_ids" widget="mail_followers"/>

<field name="message_ids" widget="mail_thread" options='{"thread_level": 1}'/>

</div>

</xpath>

</field>

</record>

The only thing is that normally the openchatter widget is after the <sheet> tag but there is no sheet in the original view, Try it to see how it looks

อวตาร
ละทิ้ง
ผู้เขียน

Dear Alex, thanks for your fast response. I was wondering if there is already a module for this, cause I don't have develpment skills.

ผู้เขียน

Sorry, I've just misstyped your name AXEL. :)

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 22
3996
1
มี.ค. 25
2178
0
ก.ค. 24
1677
3
พ.ค. 24
8504
0
พ.ย. 22
2050