Public release from ruodoo-project: 19.0 - 2026-05-31 21:19:12 UTC

This commit is contained in:
CI Publish Bot
2026-05-31 21:19:21 +00:00
commit aa4214c195
1213 changed files with 183945 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