clinic/netforce_clinic/models/branch.py

14 lines
375 B
Python
Raw Normal View History

2014-11-27 03:50:13 +00:00
from netforce.model import Model, fields
class Branch(Model):
_name="clinic.branch"
_string="Branch"
_key=['name']
_fields={
"name": fields.Char("Name",required=True,search=True),
"parent_id": fields.Many2One("clinic.branch","Parent"),
2015-01-11 08:10:38 +00:00
"pick_out_journal_id": fields.Many2One("stock.journal","Stock Journal"),
2014-11-27 03:50:13 +00:00
}
Branch.register()