Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2200 Zobrazení

I would like assistance in adapting this code to be compatible with odoo 17


@api.model
    def _search(self, args, offset=0, limit=None, order=None, count=False, access_rights_uid=None):
        args += [('user_id', '=', self._uid)]
        return super(ResPartner, self)._search(args, offset, limit, order, count=count, access_rights_uid=access_rights_uid)



Avatar
Zrušit
Nejlepší odpověď
# Try this

@api.model
def _search(self, domain, offset=0, limit=None, order=None, access_rights_uid=None):
domain += [('user_id', '=', self._uid)]
return super()._search(domain, offset=offset, limit=limit, order=order, access_rights_uid=access_rights_uid)

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
dub 24
2284
4
kvě 25
2480
2
kvě 25
5818
1
bře 25
1652
4
bře 25
4444