99. How To Set Inverse Function For Computed Field In Odoo || Editable Compute Field In Odoo

  Рет қаралды 5,496

Odoo Mates

Odoo Mates

Күн бұрын

Пікірлер: 22
@hectorherrera4193
@hectorherrera4193 11 ай бұрын
inverse is very interesting and also the troubleshooting! Thanks for sharing
@burnaviour
@burnaviour 6 ай бұрын
Is it necessary to add depends on the inverse function as its defined in the age field already
@luthfinizar2771
@luthfinizar2771 2 жыл бұрын
I want change the compute value when i change the field value, not trigerred when it saved but by onchange. it is possibly?
@OdooMates
@OdooMates 2 жыл бұрын
not clear with scenario, manually triggering the compute function by calling the self.function_name from onchange function will solve the problem ? or copy the depends of the onchange function to the compute functon will solve ?
@publicparadise5156
@publicparadise5156 Жыл бұрын
Great video! Thanks for the help!
@OdooMates
@OdooMates Жыл бұрын
glad it helped
@hectorherrera4193
@hectorherrera4193 2 жыл бұрын
very interesting!. Thanks. By the way, I have many issues using datetiime values with our timezone. Do you have a video about this? Thanks !!
@subashv9769
@subashv9769 2 жыл бұрын
What is the issue with datetime method
@OdooMates
@OdooMates 2 жыл бұрын
kzbin.info/www/bejne/kKnVdXqKerpqeJo
@hectorherrera4193
@hectorherrera4193 2 жыл бұрын
@@subashv9769 Hello!. I am making a wizard for creating all the attendances of a person for a month. It asks for the arrival and leave time to be used for the entire month (integer values) and the month to be processed. When the records are created, the time at the datetime field does not match with the requested time because it is calculated as UTC, and we are MST (UTC + 6:00). So, after checking I just added 6 hours to the datetime field and it worked fine. BUT I do not like that soluction
@wildbeauty9257
@wildbeauty9257 2 жыл бұрын
Thank you 👍👍👍
@OdooMates
@OdooMates 2 жыл бұрын
Welcome 👍
@ShadHastam
@ShadHastam 8 ай бұрын
Thanks
@OdooMates
@OdooMates 7 ай бұрын
Welcome
@rintoach
@rintoach 2 жыл бұрын
If there is any possibility to refresh the value of the date of Bith while entering the age before saving. Currently, inverse updating field updating while saving only.
@OdooMates
@OdooMates 2 жыл бұрын
can you try by adding dependency to inverse ?
@rintoach
@rintoach 2 жыл бұрын
@@OdooMates @api.depends was not working. But @api.onchange is working. Thanks for the reply 👍
@sage.swagat
@sage.swagat Жыл бұрын
exactly followed but inverse function is not working. tried with api depends as well as print statement. age field changes is not reflected
@mohammadharb613
@mohammadharb613 5 ай бұрын
Why here the inverse function is not calculated every time we change the age?? Why we need to save in order to see the result
@abidpatel5552
@abidpatel5552 Жыл бұрын
def _inverse_compute_age(self): today = date.today() for rec in self: rec.date_of_birth = today - relativedelta(years=rec.age)
@OdooMates
@OdooMates Жыл бұрын
thanks
@Bilal.asa2
@Bilal.asa2 Жыл бұрын
from dateutil.relativedelta import relativedelta
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 10 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 28 МЛН
«Кім тапқыр?» бағдарламасы
00:16
Balapan TV
Рет қаралды 188 М.
Bank Reconciliation | Odoo Accounting
5:44
Odoo
Рет қаралды 8 М.
Odoo Development - URL Actions in Odoo 13
9:29
Cybrosys Technologies
Рет қаралды 1,8 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 10 МЛН