The Party language is now a property for which the default value is no more managed by default method. Also it is probably better to leave the field empty if user doesn't know than having a default value set like that a choice can be done at run time. issue5198 review20111002
16 lines
540 B
Python
16 lines
540 B
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
from trytond.model import ModelView, ModelSQL, ModelSingleton, fields
|
|
|
|
__all__ = ['Configuration']
|
|
|
|
|
|
class Configuration(ModelSingleton, ModelSQL, ModelView):
|
|
'Party Configuration'
|
|
__name__ = 'party.configuration'
|
|
|
|
party_sequence = fields.Property(fields.Many2One('ir.sequence',
|
|
'Party Sequence', domain=[
|
|
('code', '=', 'party.party'),
|
|
]))
|