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

Hi,


Whever I update a quotation's price Odoo logs the price change on Chatter.


Here's an example:



However, I don't use Odoo to calculate taxes, so my Untaxed Amount will always be the same value as Total.


Therefor I would like to hide Untaxed Amount, like this:



How can I do that?


Thanks in advance!

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

    In odoo 14, if you check the account_move.py , they have set tracking is true for Untaxed amount

amount_untaxed = fields.Monetary(string='Untaxed Amount', store=True, readonly=True, tracking=True, compute='_compute_amount')

You can set tracking = False by inheriting account.move class and make sure you inherit the compute function too.

class AccountMove(models.Model):

    _inherit = "account.move"

    amount_untaxed = fields.Monetary(string='Untaxed Amount', store=True, readonly=True, tracking=False, compute='_compute_amount')

الصورة الرمزية
إهمال
الكاتب

Worked perfectly, thanks!

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 22
3205
How to Hide Chatter تم الحل
2
أكتوبر 20
8259
1
نوفمبر 24
2883
2
فبراير 24
9011
0
يناير 24
1475