title: Call function from another class (Odoo13)
body: <p>I want to call same function from another class-object. I try this but doesn't work.Any help please.</p>
  <pre><code>class ClassA(models.Model):
      _name = 'class.a'
          def action_button(self):
                ......
          }
  
  class ClassB(models.Model):
      _name = 'class.b'
      def call_func_b(self):
          self.env[&quot;class.b&quot;].action_button()
  
   &lt;button name=&quot;call_func_b&quot; type=&quot;object&quot; string=&quot;Create Action b&quot;/&gt;
  
  
  class ClassC(models.Model):
      _name = 'class.c'
      def call_func_c(self):
          self.env[&quot;class.c&quot;].action_button()
  
   &lt;button name=&quot;call_func_c&quot; type=&quot;object&quot; string=&quot;Create Action c&quot;/&gt;
  </code></pre>