Fix
This commit is contained in:
parent
70505d0a09
commit
543a0c07a5
15
folio.py
15
folio.py
|
@ -505,12 +505,11 @@ class FolioGuest(ModelSQL, ModelView):
|
|||
('child', 'Child'),
|
||||
], 'Type Guest', required=True)
|
||||
type_guest_string = type_guest.translated('type_guest')
|
||||
nationality = fields.Many2One('party.nationality', 'Nationality',
|
||||
required=True)
|
||||
nationality = fields.Many2One('party.nationality', 'Nationality')
|
||||
origin_country = fields.Many2One('party.nationality', 'Origin Country',
|
||||
select=True, required=True)
|
||||
select=True)
|
||||
target_country = fields.Many2One('party.nationality', 'Target Country',
|
||||
select=True, required=True)
|
||||
select=True)
|
||||
# New fields for speed reason
|
||||
type_document = fields.Selection([
|
||||
('12', 'Tarjeta de Identidad'),
|
||||
|
@ -521,8 +520,12 @@ class FolioGuest(ModelSQL, ModelView):
|
|||
], 'Document Type', required=True)
|
||||
id_number = fields.Char('Id Number', select=True, required=True)
|
||||
name = fields.Char('Name', select=True, required=True)
|
||||
mobile = fields.Char('Mobile', select=True, required=True)
|
||||
email = fields.Char('Email', select=True, required=True)
|
||||
mobile = fields.Char('Mobile', select=True, states={
|
||||
'required': Eval('main_guest', False)
|
||||
})
|
||||
email = fields.Char('Email', select=True, states={
|
||||
'required': Eval('main_guest', False)
|
||||
})
|
||||
birthday = fields.Date('Birthday', select=True)
|
||||
sex = fields.Selection([
|
||||
('female', 'Female'),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=6.0.16
|
||||
version=6.0.17
|
||||
depends:
|
||||
party
|
||||
company
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form col="6">
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
<label name="folio"/>
|
||||
<field name="folio"/>
|
||||
<label name="type_guest"/>
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tree>
|
||||
<field name="folio"/>
|
||||
<field name="name"/>
|
||||
<field name="type_guest"/>
|
||||
<field name="nationality" widget="selection"/>
|
||||
<field name="type_document"/>
|
||||
<field name="id_number"/>
|
||||
<field name="mobile"/>
|
||||
<field name="email"/>
|
||||
<field name="folio"/>
|
||||
<field name="sex"/>
|
||||
</tree>
|
||||
|
|
Loading…
Reference in New Issue