code: def duplicate(self, password, db, new_db):
          
          self._odoo.json(
              '/jsonrpc',
              {'service': 'db',
               'method': 'duplicate_database',
               'args': [password, db, new_db]})
docs: Duplicate `db' as `new_db`.
  
          >>> odoo.db.duplicate('super_admin_passwd', 'prod', 'test') # doctest: +SKIP
  
          The super administrator password is required to perform this method.
  
          *Python 2:*
  
          :raise: :class:`odoorpc.error.RPCError` (access denied / wrong database)
          :raise: `urllib2.URLError` (connection error)
  
          *Python 3:*
  
          :raise: :class:`odoorpc.error.RPCError` (access denied / wrong database)
          :raise: `urllib.error.URLError` (connection error)