Skip to content

Instantly share code, notes, and snippets.

View randall-vx's full-sized avatar
🎯
Focusing

Randall Castro - https://www.vauxoo.com randall-vx

🎯
Focusing
View GitHub Profile
@randall-vx
randall-vx / create_partner_xmlrpc.py
Created February 27, 2024 19:25
partner_vat_unique XMLRPC python code to test PR #1675
# For this example we would be using the native xmlrpc python library.
import xmlrpc.client
import json
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
# CONFIGURATION
# These parameters should be configurable in the external system.
url = 'http://oca-partner-contact-16-0-pr1675-a32c38a00de6.runboat.odoo-community.org'
@randall-vx
randall-vx / READ.md
Last active January 26, 2024 21:43
CHARLA VAUXOO - Development Environment for Functional Dummies
@randall-vx
randall-vx / odoo.js
Last active October 5, 2022 16:21
odoo appscript
url = <insert server URL>
db = <insert database name>
username = <insert username>
password = <insert password>
// Authenticate user and get uid:
var common = new XMLRPC.XmlRpcRequest(url + "/xmlrpc/2/common", "authenticate");
common.addParam(db);
common.addParam(username);
common.addParam(password);
@randall-vx
randall-vx / error.py
Created February 28, 2021 19:42
error importer
Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/odoo/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)