Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3874 Vizualizări

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!

Imagine profil
Abandonează
Cel mai bun răspuns

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')

Imagine profil
Abandonează
Autor

Worked perfectly, thanks!

Related Posts Răspunsuri Vizualizări Activitate
1
dec. 22
3159
2
oct. 20
8195
1
nov. 24
2820
2
feb. 24
8910
0
ian. 24
1421