Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3954 Переглядів

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!

Related Posts Відповіді Переглядів Дія
1
груд. 22
3222
How to Hide Chatter Вирішено
2
жовт. 20
8268
Hide chatter in odoo 16 Вирішено
1
лист. 24
2906
2
лют. 24
9048
0
січ. 24
1493