@api depends ('appointment line_ids', 'appointment _line_ids.qty') For this decoration, If there is only one record, appointment _line_ids.qty is OK. If there are many records, appointment _line_ids.qty will be issue because appointment _line_ids is a recordset(kind of List).
@OdooMates6 ай бұрын
thanks but as i have added mapped, it will manage the multiple records i believe
@jirongzhang32376 ай бұрын
@@OdooMates Yes, There is no problem in your function part. For the decoration line, I cannot understand this"appointment _line_ids.qty".
@OdooMates6 ай бұрын
@@jirongzhang3237 its fine to add in decorator i believe, am i right or did you find any issue
@jirongzhang32376 ай бұрын
@@OdooMates I have no issues. Just thought it might be an issue. If it is OK, I think Odoo will handle it by its decoration itself.