Public release from ruodoo-project: 19.0 - 2026-09-20 21:17:41 UTC

This commit is contained in:
CI Publish Bot
2026-09-20 21:17:50 +00:00
commit ebd298dbf0
1234 changed files with 187334 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
from logging import getLogger
from odoo import api, models
from ..utils.num2words import num2words_, num2words_currency
from ..utils.format_number import format_number
_logger = getLogger(__name__)
class IrActionsReport(models.Model):
_inherit = "ir.actions.report"
@api.model
def _get_rendering_context(self, report, docids, data):
data = super()._get_rendering_context(report, docids, data)
data.update(
{
"number2words": num2words_,
"currency2words": num2words_currency,
"format_number": format_number,
}
)
return data