跳至内容
菜单
此问题已终结
1 回复
3867 查看

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
12月 22
3158
2
10月 20
8192
1
11月 24
2818
2
2月 24
8901
0
1月 24
1417