20 lines
942 B
Python
20 lines
942 B
Python
import base64
|
|
CACHE = {}
|
|
|
|
# Openbravo API parameters
|
|
|
|
ob_api_url = "http://[your-openbravo-domain]/openbravo/org.openbravo.service.json.jsonrest/"
|
|
# Keep only one of the 2 sections below and comment out the other:
|
|
# 1) you may enter the Openbravo user and password
|
|
ob_user = 'your-ob-user'
|
|
ob_pass = 'your-ob-password'
|
|
userpass_b64 = base64.b64encode((ob_user+':'+ob_pass).encode('ascii')).decode('ascii')
|
|
# 2) you may enter the user:password base64 encoded
|
|
#userpass_b64 = "your-ob-user:your-ob-password-base64-encoded"
|
|
|
|
# You may use a special product as a 'comment flag' in order to print the invoice line description instead of the product description.
|
|
# To take advantage of this feature, first create a product for this purpose in the Master Data of Openbravo, and then update
|
|
# the line below to match the 'Search Key' of that specific product:
|
|
# comment_product = 'search-key-of-your-comment-product'
|
|
comment_product = 'Comment/Note'
|