migration clinic setting
parent
3af54bbee7
commit
3801ae16ea
|
@ -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
|
|
@ -1,2 +1,3 @@
|
||||||
from . import models
|
from . import models
|
||||||
|
from . import migrations
|
||||||
from . import controllers
|
from . import controllers
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
<inherit inherit="main_menu">
|
<inherit inherit="main_menu">
|
||||||
<item string="Sales" position="after">
|
<item string="General" position="before">
|
||||||
<item string="Clinic" action="clinic_board"/>
|
<item string="Clinic" action="clinic_board"/>
|
||||||
</item>
|
</item>
|
||||||
</inherit>
|
</inherit>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
from . import clinic_setting
|
|
@ -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()
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue