migration clinic setting

conv_bal
chayut.s 2014-09-22 18:36:00 +07:00
parent 3af54bbee7
commit 3801ae16ea
17 changed files with 31 additions and 1 deletions

14
.gitignore vendored 100644
View File

@ -0,0 +1,14 @@
*.pyc
*/models_js/*
*/templates_js/*
*/actions_js/*
*/templates_c/*
*/actions_c/*
*/views_c/*
*/xml_views_js/*
*/xml_views_c/*
*.egg-info/*
*/static/js/*
*/static/css/*
dist/*
*.swp

View File

@ -1,2 +1,3 @@
from . import models
from . import migrations
from . import controllers

View File

@ -1,5 +1,5 @@
<inherit inherit="main_menu">
<item string="Sales" position="after">
<item string="General" position="before">
<item string="Clinic" action="clinic_board"/>
</item>
</inherit>

View File

@ -0,0 +1 @@
from . import clinic_setting

View File

@ -0,0 +1,14 @@
from netforce.model import get_model
from netforce import migration
class Migration(migration.Migration):
_name="clinic.setting"
_version="1.180.0"
def migrate(self):
res=get_model("clinic.setting").search([])
if res:
return
get_model("clinic.setting").create({})
Migration.register()