Hello!
I'm trying to add a new field in my POS Receipt.
I already inherited the template and I added a simple static text.
But I want to add a field, how can I achieve that? Is by JavaScript or Python?
What model does it use? I already tried POS Order, but didn't work
Thanks!
This is my code so far:
from odoo import models
classPosSession(models.Model):
_inherit = ["pos.session", "evo.payments.session"] # Evo Payments Session is my custom model
def_loader_params_evo_payments_session(self):|
""" Loads the QR Code to the Order Receipt, calling the Evo Payments Session method """
result = super().CUSTOM_FUNCTION()
result["search_params"]["fields"].append(CUSTOM_FIELD)
return result
What should I put in CUSTOM_FUNCTION() and CUSTOM_FIELD?
Hi mauricio,
Do you mean you want to add it to the POS receipt?
can you please send an image of the place you want to add the field?
Regards,