From 789fc84afcefd40f22d2c74c511a5eec83acb6a3 Mon Sep 17 00:00:00 2001 From: Admin Date: Sat, 4 Jul 2020 15:16:12 +0100 Subject: [PATCH] update Partner Tweaks Access module to be able to install in Odoo 13. --- prt_partner_tweaks_access/__manifest__.py | 2 +- prt_partner_tweaks_access/models/prt_partner_user.py | 4 ++-- .../static/description/index.html | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/prt_partner_tweaks_access/__manifest__.py b/prt_partner_tweaks_access/__manifest__.py index 383087b..ca19290 100644 --- a/prt_partner_tweaks_access/__manifest__.py +++ b/prt_partner_tweaks_access/__manifest__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- { 'name': 'Partner Tweaks. Limit Restrict Configure Partner Contact Access Easily', - 'version': '11.0.1.0', + 'version': '13.0.1.0.0', 'author': 'Ivan Sokolov', 'category': 'Sales', 'license': 'GPL-3', diff --git a/prt_partner_tweaks_access/models/prt_partner_user.py b/prt_partner_tweaks_access/models/prt_partner_user.py index 10039a4..e4cfd02 100644 --- a/prt_partner_tweaks_access/models/prt_partner_user.py +++ b/prt_partner_tweaks_access/models/prt_partner_user.py @@ -40,8 +40,8 @@ def tweak_access_rules(self): rules.sudo().write({'active': False}) # -- Write. Clear caches if related vals changed - @api.multi + # @api.multi def write(self, vals): super(PRTUsers, self).write(vals) if 'allowed_partner_category_ids' in vals or 'allowed_country_ids' in vals or 'allowed_country_state_ids' in vals: - self.clear_caches() \ No newline at end of file + self.clear_caches() diff --git a/prt_partner_tweaks_access/static/description/index.html b/prt_partner_tweaks_access/static/description/index.html index 5208717..760e81b 100644 --- a/prt_partner_tweaks_access/static/description/index.html +++ b/prt_partner_tweaks_access/static/description/index.html @@ -11,11 +11,11 @@

User Groups Added

Optional extension

Support