Skip to Content
Menu
This question has been flagged

I am stuck in something and need urgent help please.. Still new to Odoo..


class CustomAccountInvoice(models.Model):
    _inherit = "account.invoice"
  
    @api.one
    def _compute_custom_tax_report(self):

            for line in self.tax_line_ids:
           
            base_amt = line.base
            tax_percent = line.amount

            _logger.warning('test print base (%s)', base_amt )
            _logger.warning('test print - tax (%s)', tax_percent )

-------

Here I am getting the tax charged in amount and tax base amount.

I need the tax programmed in '%'.

here, I have created 2 taxes at 10% of product price and 18% an applied on invoice products.

I intend to get 10 and 18 and so on..

It maybe silly but appreciate support and advice on how o fetch Tax rate configured..

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 24
233
2
Aug 24
354
3
Jul 24
2385
1
Jul 24
361
2
Jun 24
452