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

Hi. I'm doing a post_init_hook for changing pending_msg in payment.acquirer message. So I do this inside my __init__.py:

def post_init_hook(cr, registry):
    from odoo import api, SUPERUSER_ID, _
   
    import logging
    _logger = logging.getLogger(__name__)
    _logger.critical('entramos en el post_init_hook')
   
    env = api.Environment(cr, SUPERUSER_ID, {})
    records = env['payment.acquirer'].search([('provider', '=', 'redsys')])     ​records.write({'pending_msg': _('The order data has been sent to the payment gateway. If the payment is not completed within 2 hours, the payment will be cancelled and you will have to place the order again.')})

This works fine but now if I download the .po file of this module, this string doesn't appear. I'm not able to translate it. How can I do it?

Thanks.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 25
2521
4
iul. 24
6654
2
iul. 24
2604
4
iun. 24
25267
3
apr. 24
2287