Skip to content

Instantly share code, notes, and snippets.

View mdyusufalam's full-sized avatar

Md Yusuf Mia mdyusufalam

View GitHub Profile
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
public object GetCreateAndShipOrder(string userName, string productSku)
{
// get product
var product = _merchelloContext.Services.ProductService.GetAll().FirstOrDefault(p => p.Sku == productSku);
// get customer
var customer = _merchelloContext.Services.CustomerService.GetByLoginName(userName);
// create customer with fake data if it does not exist already
if (customer == null)