clinic/netforce_clinic/models/branch.py

14 lines
381 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 06:09:40 +00:00
"pick_out_journal_id": fields.Many2One("stock.journal","Goods Issue Journal"),
2014-11-27 03:50:13 +00:00
}
Branch.register()