sst test 1

develop
Andreas Brückl 2017-11-24 08:59:26 +01:00
parent b55280cbe7
commit 475c570519
8 changed files with 150983 additions and 13 deletions

150964
dev/scripts/interfaces/odoorpc Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,27 +4,32 @@ import odoorpc
host = 'localhost' host = 'localhost'
port = 8080 port = 8080
db = 'tz-austria_1' db = 'tz-austria_1'
user = 'admin' user = 'tz-admin'
pw = 'x' pw = 'x'
odoo = odoorpc.ODOO(host, port=port) odoo = odoorpc.ODOO(host, port=port)
odoo.login(db, user, pw) odoo.login(db, user, pw)
values = { values = {
"name": "Max Musterman", "firstname": "Max",
"midname": "middle",
"lastname": "Musterman",
"street": "Strasse 11", "street": "Strasse 11",
"street2": "Zusatz 1",
"zip": "1145", "zip": "1145",
"city": "Wien", "city": "Wien",
"country_id": "AT", "country_id": "AT",
"fax": "+43 456546", "fax": "+43 456546",
"phone": "+43 564564", "phone": "+43 564564",
"mobile": "+43 677 564564",
"endkunde": True, "endkunde": True,
"portal_id": "111111", "portal_id": "111111",
"company": "Bier AG",
"info_uid": "habe keine",
"info_kundennr": "K1234",
"email": "max@musterman.at", "email": "max@musterman.at",
"line_ids": ["12345"],
"opt_out": True, "opt_out": True,
"ref": "A88S",
"partner_sector_id": "Test",
"comment": "comment",
"vat": False, "vat": False,
"lang": "de" "lang": "de"
} }

View File

@ -4,7 +4,7 @@ import odoorpc
host = 'localhost' host = 'localhost'
port = 8080 port = 8080
db = 'tz-austria_1' db = 'tz-austria_1'
user = 'admin' user = 'tz-admin'
pw = 'x' pw = 'x'
odoo = odoorpc.ODOO(host, port=port) odoo = odoorpc.ODOO(host, port=port)
@ -16,7 +16,7 @@ values = {
"note": "note", "note": "note",
"date_order": "2017-11-21", "date_order": "2017-11-21",
"assembled": True, "assembled": True,
"line_id": "L1", "line_id": "12345",
"portal_id": "111111", "portal_id": "111111",
"portal_delivery_id": "222222", "portal_delivery_id": "222222",
"delivery_firstname": "Ahmed", "delivery_firstname": "Ahmed",

View File

@ -4,7 +4,7 @@ import odoorpc
host = 'localhost' host = 'localhost'
port = 8080 port = 8080
db = 'tz-austria_1' db = 'tz-austria_1'
user = 'admin' user = 'tz-admin'
pw = 'x' pw = 'x'
odoo = odoorpc.ODOO(host, port=port) odoo = odoorpc.ODOO(host, port=port)
@ -18,13 +18,14 @@ values = {
"thickness": 33.44, "thickness": 33.44,
"surface": "m", "surface": "m",
"weight": 80.45, "weight": 80.45,
"active": True,
"is_interneal": True, "is_interneal": True,
"xcat_id": "xcat_1", "xcat_id": "Kategorie 1",
"notes": "notes", "notes": "notes",
"material_type_id": "material_1", "material_type_id": "Holz",
"intrastat_id": "Code", "intrastat_id": "Code",
"sale_ok": True, "sale_ok": True,
"assembly_line_ids": ["L1", "L2"], "assembly_line_ids": ["12345", "12346"],
"list_price": 50.00 "list_price": 50.00
} }

View File

@ -9,7 +9,7 @@ class ConfigGlaser(Config):
self.company_xmlid = 'dp_custom.glaser_and_co_company' self.company_xmlid = 'dp_custom.glaser_and_co_company'
self.company_data = { self.company_data = {
'name': 'Glaser & Co.', 'name': 'Glaser & Co.',
'street': 'Neugasse 36', 'street': 'Neugasse 36',
'street2': False, 'street2': False,
'city': 'Spannberg', 'city': 'Spannberg',

View File

@ -29,7 +29,7 @@ Port: %s
ENVIRONMENTS = { ENVIRONMENTS = {
# Local environments are listed with passwords # Local environments are listed with passwords
'br': Environment('http://localhost', '8080', 'tz-austria_1', 'tz-admin', 'x', 'admin', config=ConfigTZA()), 'br': Environment('http://localhost', '8080', 'tz-austria_1', 'tz-admin', 'x', 'admin', config=ConfigTZA()),
'br-glaser': Environment('http://localhost', '8080', 'tz-austria_1', 'glaser-admin', 'x', 'admin', config=ConfigTZA()), 'br-glaser': Environment('http://localhost', '8080', 'tz-austria_1', 'glaser-admin', 'x', 'admin', config=ConfigGlaser()),
'aa': Environment('http://localhost', '8080', 'tz-austria_1', 'admin', 'x', 'admin'), 'aa': Environment('http://localhost', '8080', 'tz-austria_1', 'admin', 'x', 'admin'),
'oa': Environment('http://localhost', '8080', 'tz-austria_1', 'admin', 'x', 'admin'), 'oa': Environment('http://localhost', '8080', 'tz-austria_1', 'admin', 'x', 'admin'),