BASE,CLIENT: add right-to-left
bzr revid: ced-7a819d8387cda450b0cf611863fafbe924a2fd0f
This commit is contained in:
parent
705915410e
commit
ac97b14a7f
|
@ -15,6 +15,7 @@
|
|||
<field name="name" select="1"/>
|
||||
<field name="code" select="1"/>
|
||||
<field name="translatable"/>
|
||||
<field name="direction"/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
@ -63,10 +63,12 @@ class lang(osv.osv):
|
|||
'code': fields.char('Code', size=5, required=True),
|
||||
'translatable': fields.boolean('Translatable'),
|
||||
'active': fields.boolean('Active'),
|
||||
'direction': fields.selection([('ltr', 'Left-to-right'), ('rtl', 'Right-to-left')], 'Direction',resuired=True),
|
||||
}
|
||||
_defaults = {
|
||||
'active': lambda *a: 1,
|
||||
'translatable': lambda *a: 0,
|
||||
'direction': lambda *a: 'ltr',
|
||||
}
|
||||
lang()
|
||||
|
||||
|
|
Loading…
Reference in New Issue