2014-10-20 11:48:39 +00:00
|
|
|
from netforce.model import Model, fields
|
|
|
|
|
|
|
|
class Translate(Model):
|
|
|
|
_name="clinic.translate"
|
|
|
|
_string="Translate"
|
2014-10-21 11:22:48 +00:00
|
|
|
_field_name="org"
|
2014-10-20 11:48:39 +00:00
|
|
|
_fields={
|
2014-10-21 11:22:48 +00:00
|
|
|
"org": fields.Char("Original String",required=True,search=True),
|
|
|
|
"tr": fields.Char("Translate"),
|
2014-10-20 11:48:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Translate.register()
|