-
-
Notifications
You must be signed in to change notification settings - Fork 170
/
Copy pathmodel_inhe2.py
52 lines (31 loc) · 1.02 KB
/
model_inhe2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# coding: utf-8
from openerp import models
class TestModel(models.Model):
_inherit = 'res.company'
class TestModel2(models.Model):
_inherit = 'res.company'
class TestModel3(models.Model):
_inherit = 'res.partner'
class TestModel4(models.Model):
_inherit = 'res.partner'
class TestModel41(models.Model):
_name = 'res.partner'
_inherit = 'res.partner'
class TestModel5(models.Model):
_inherit = 'valid.duplicated' # pylint: disable=consider-merging-classes-inherited
class TestModel6(models.Model):
_inherit = 'valid.duplicated'
class TestModel7(models.Model):
_name = 'valid.duplicated.2'
_inherit = 'valid.duplicated'
class TestModel75(models.Model):
_inherit = 'valid.duplicated'
_name = 'valid.duplicated.2'
class TestModel8(models.Model):
_inherit = ['valid.duplicated', 'valid.duplicated2']
def method_1(self):
_inherit = 'not-class-attribute'
return _inherit
def method_2(self):
_inherit = 'not-class-attribute'
return _inherit