summaryrefslogtreecommitdiff
path: root/doc/howtos/website/basic-model
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2014-08-22 17:51:20 +0200
committerRaphael Collet <rco@openerp.com>2014-08-22 17:51:20 +0200
commit2ad092b5e54fa39a906b38d9240e08b9800ea0da (patch)
tree1879c2a6efe8ed1626d92635870aaff922306492 /doc/howtos/website/basic-model
parent97256fa1fba6c7d3d02962b5948158d17852cf43 (diff)
[ADD] doc: new documentation, with training tutorials, and new scaffolding
Diffstat (limited to 'doc/howtos/website/basic-model')
-rw-r--r--doc/howtos/website/basic-model19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/howtos/website/basic-model b/doc/howtos/website/basic-model
new file mode 100644
index 00000000000..2e2f7677bbe
--- /dev/null
+++ b/doc/howtos/website/basic-model
@@ -0,0 +1,19 @@
+# HG changeset patch
+# Parent 3e800beb7db0f9f05bfd4db275c86e8903d4f127
+diff -r 3e800beb7db0 -r 91c0cc5b319e academy/__init__.py
+--- a/academy/__init__.py Mon Aug 11 16:36:15 2014 +0200
++++ b/academy/__init__.py Mon Aug 11 16:49:10 2014 +0200
+@@ -1,1 +1,2 @@
+ from . import controllers
++from . import models
+diff -r 3e800beb7db0 -r 91c0cc5b319e academy/models.py
+--- /dev/null Thu Jan 01 00:00:00 1970 +0000
++++ b/academy/models.py Mon Aug 11 16:49:10 2014 +0200
+@@ -0,0 +1,7 @@
++from openerp import fields
++from openerp import models
++
++class Teachers(models.Model):
++ _name = 'academy.teachers'
++
++ name = fields.Char()