Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
6406 Переглядів

I have inherited res.partner and then added a method that will get the partner's property_account_receivable_id field:

@api.multi
def get_receivable_id(self):

    return self.sudo().property_account_receivable_id.id


In Odoo 10 (python 2.7), the method works correctly. However in Odoo 11 (python 3), the code returns the property_account_receivable_id of the admin (SUPERUSER). I know there's a lot of workarounds/solution for this but I just want to know why did this happen. Did something change in Odoo 11? Do they have some kind of changelog for us developers? Thank you very much in advance.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лип. 25
539
0
груд. 24
1146
2
жовт. 24
1258
1
серп. 24
2410
2
лип. 24
1646