Hello. I have 2 models, appointment.order and report.appointment.order. In appointment.order I have 1 field that I want to show or use in the pivot table (the model for the pivot table is report. appointment.order).
Here's my python code in appointment.order:
from odoo import api, fields, models, _
class AppointmentOrder(models.Model):
_inherit = 'appointment.order'
time= fields.Float('Time')
In the XML files, I use the float_time widget for the time field.
I need to use the time field in report. appointment.order so I can show the time field in pivot table, but I don't know how to do that since the model is different. Does anyone know how to do that?
Thank you.