title: ODOO XMLRPC calling custom method which create a record on the same model
body: <p>ODOO(V11) XMLRPC calling on custom model method (test) is through an error if a create method is uncommitted and client expect &quot;self&quot; as argument. (I am using python)</p>
  <pre><code>    class DataParser(models.Modle):
            _name = &quot;data.parser&quot;
           test_a: fields.Char()
           test_b: fields.Char()
  
           @api.one
           def test(self):
               obj = self.env['data.parser'].create({'test_a':&quot;test a&quot;, 'test_b': &quot;Test B &quot;})
      
              return True
  </code></pre>
  <p>Client XMLRPC</p>
  <pre><code>   url = 'http://localhost:8069'
     db = 'test'
     username = 'admin'
     password = 'admin'
  
     logging.info(&quot;url {}, db {}&quot;.format(url, db))
  
     common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url), allow_none=True)
     print(common.version())
     val  = common.login(db, username, password)
  
    uid = common.authenticate(db, username, password, {})
  
    models = xmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(url))
    val = models.execute_kw(db, uid, password, &quot;data.parser&quot;, &quot;test&quot;, [&quot;self&quot;])
  </code></pre>
  <p>Error
  res = self._obj.execute(query, params)\npsycopg2.ProgrammingError: column &quot;test_b&quot; of relation &quot;data_parser&quot; does not exist\nLINE 1: INSERT INTO &quot;data_parser&quot; (&quot;id&quot;, &quot;test_b&quot;, &quot;test_a</p>