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

View File

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

View File

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

View File

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

View File

@ -29,7 +29,7 @@ Port: %s
ENVIRONMENTS = {
# Local environments are listed with passwords
'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'),
'oa': Environment('http://localhost', '8080', 'tz-austria_1', 'admin', 'x', 'admin'),