Rename relationship into party

This commit is contained in:
Cédric Krier committed 2008-10-22 20:11:42 +02:00
1 parent c3ff696a9d
commit c6ae4b69e5
2 files changed
+7 -5

No files matched your search

+3 -2
View File
@@ -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',
+4 -3
View File
@@ -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'",