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
25 lines
590 B
Python
25 lines
590 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models, fields
|
|
|
|
class Inheritance0(models.Model):
|
|
_name = 'inheritance.0'
|
|
_description = 'Inheritance Zero'
|
|
|
|
name = fields.Char()
|
|
|
|
def call(self):
|
|
return self.check("model 0")
|
|
|
|
def check(self, s):
|
|
return "This is {} record {}".format(s, self.name)
|
|
|
|
class Inheritance1(models.Model):
|
|
_name = 'inheritance.1'
|
|
_inherit = 'inheritance.0'
|
|
_description = 'Inheritance One'
|
|
|
|
def call(self):
|
|
return self.check("model 1")
|