summaryrefslogtreecommitdiff
path: root/odoo/addons/test_documentation_examples
diff options
context:
space:
mode:
authorNimesh Jethva <nje@odoo.com>2018-09-17 16:35:47 +0530
committerYannick Tivisse <yti@odoo.com>2018-09-21 11:45:15 +0200
commit427ba08e0d161e322c5774d7e99be6daf93ece86 (patch)
tree55b1db22f08bd949712303bbfd16327e484b94d9 /odoo/addons/test_documentation_examples
parent7eea263f3649a5b6e7e9456bf30de13d7c65d13a (diff)
[IMP]various: Improvement in model description
Purpose of this commit is to give description more "business oriented" because those descriptions appears in Odoo Studio which is supposed to be used by end users, not only by developers. Related Task ID : 37311
Diffstat (limited to 'odoo/addons/test_documentation_examples')
-rw-r--r--odoo/addons/test_documentation_examples/delegation.py3
-rw-r--r--odoo/addons/test_documentation_examples/extension.py1
-rw-r--r--odoo/addons/test_documentation_examples/inheritance.py2
3 files changed, 6 insertions, 0 deletions
diff --git a/odoo/addons/test_documentation_examples/delegation.py b/odoo/addons/test_documentation_examples/delegation.py
index 3f9ba035168..54beeef77c6 100644
--- a/odoo/addons/test_documentation_examples/delegation.py
+++ b/odoo/addons/test_documentation_examples/delegation.py
@@ -5,16 +5,19 @@ from odoo import models, fields
class Child0(models.Model):
_name = 'delegation.child0'
+ _description = 'Delegation Child zero'
field_0 = fields.Integer()
class Child1(models.Model):
_name = 'delegation.child1'
+ _description = 'Delegation Child one'
field_1 = fields.Integer()
class Delegating(models.Model):
_name = 'delegation.parent'
+ _description = 'Delegation Parent'
_inherits = {
'delegation.child0': 'child0_id',
diff --git a/odoo/addons/test_documentation_examples/extension.py b/odoo/addons/test_documentation_examples/extension.py
index 344c809026e..5e01e800b2f 100644
--- a/odoo/addons/test_documentation_examples/extension.py
+++ b/odoo/addons/test_documentation_examples/extension.py
@@ -5,6 +5,7 @@ from odoo import models, fields
class Extension0(models.Model):
_name = 'extension.0'
+ _description = 'Extension zero'
name = fields.Char(default="A")
diff --git a/odoo/addons/test_documentation_examples/inheritance.py b/odoo/addons/test_documentation_examples/inheritance.py
index b1586760d98..510adb877d5 100644
--- a/odoo/addons/test_documentation_examples/inheritance.py
+++ b/odoo/addons/test_documentation_examples/inheritance.py
@@ -5,6 +5,7 @@ from odoo import models, fields
class Inheritance0(models.Model):
_name = 'inheritance.0'
+ _description = 'Inheritance Zero'
name = fields.Char()
@@ -17,6 +18,7 @@ class Inheritance0(models.Model):
class Inheritance1(models.Model):
_name = 'inheritance.1'
_inherit = 'inheritance.0'
+ _description = 'Inheritance One'
def call(self):
return self.check("model 1")