Browse Source

[FIX] flake8, relative import, unused context initialization

pull/103/head
Holger Brunn 11 years ago
committed by Sandy Carter
parent
commit
3500d55cd7
  1. 2
      partner_relations/__init__.py
  2. 8
      partner_relations/model/__init__.py
  3. 3
      partner_relations/model/res_partner.py

2
partner_relations/__init__.py

@ -18,4 +18,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import model
from . import model

8
partner_relations/model/__init__.py

@ -18,8 +18,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import res_partner
import res_partner_relation
import res_partner_relation_type
import res_partner_relation_type_selection
from . import res_partner
from . import res_partner_relation
from . import res_partner_relation_type
from . import res_partner_relation_type_selection
from . import res_partner_relation_all

3
partner_relations/model/res_partner.py

@ -30,9 +30,6 @@ class ResPartner(orm.Model):
def _get_relation_ids(
self, cr, uid, ids, dummy_name, dummy_arg, context=None):
if context is None:
context = {}
# TODO: do a permission test on returned ids
cr.execute(
'''select id, left_partner_id, right_partner_id

Loading…
Cancel
Save