تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4823 أدوات العرض

Hi, i'm trying to put a chatter in a custom module.. here is my code :


.py :

from odoo import models, fields, api
from dateutil.relativedelta import relativedelta
from odoo.exceptions import ValidationError class Warranty(models.Model):   
_name = 'eb.warranty'   
_description = 'Warranty'   
_inherit = ['mail.thread']

.xml :

	​</sheet>
​​<div class="oe_chatter">
​​<field name="message_follower_ids" widget="mail_followers"/>
​<field name="message_ids" widget="mail_thread"/>
​</div>
</form>

​The chatter is appearing but in a strange format... did you guys already have this issue?

It appears like this at bottom of the view... like there are the fields but no formatting.. Thanks in advance for your help

الصورة الرمزية
إهمال

Solved my issue, thanks!

الكاتب

Thanks for the answer, it worked. Is there a doc where we can find this changes ? Odoo doc isn't up-to-date

أفضل إجابة

Hi,
The way chatter has been added in 18 has been improved, now you just need to use <chatter/>





Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 25
1558
2
أغسطس 25
224
0
أغسطس 25
308
1
أغسطس 25
702
1
أغسطس 25
523