From c6ae4b69e5bc9e748476ebea17be0ee7043907d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 22 Oct 2008 20:11:42 +0200 Subject: [PATCH] Rename relationship into party --- __tryton__.py | 5 +++-- work.py | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/__tryton__.py b/__tryton__.py index ad504823ad..a9587610f8 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -1,4 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. +#This file is part of Tryton. The COPYRIGHT file at the top level of +#this repository contains the full copyright notices and license terms. { 'name': 'Project', 'version': '0.1', @@ -10,7 +11,7 @@ 'depends': [ 'ir', 'timesheet', - 'relationship', + 'party', ], 'xml': [ 'project.xml', diff --git a/work.py b/work.py index 370cbfb893..bfe09e7387 100644 --- a/work.py +++ b/work.py @@ -1,4 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. +#This file is part of Tryton. The COPYRIGHT file at the top level of +#this repository contains the full copyright notices and license terms. "Project" from trytond.osv import fields, OSV @@ -33,11 +34,11 @@ class Work(OSV): project_type = fields.Selection([ ('project', 'Project'), ], 'Type', required=True, select=1) - party = fields.Many2One('relationship.party', 'Party', + party = fields.Many2One('party.party', 'Party', states={ 'invisible': "project_type != 'project'", }) - party_address = fields.Many2One('relationship.address', 'Contact Address', + party_address = fields.Many2One('party.address', 'Contact Address', domain="[('party', '=', party)]", states={ 'invisible': "project_type != 'project'",