From ffdfaa4dc5a7400c4e4afa69de1d7c39981ccdb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Br=C3=BCckl?= Date: Tue, 13 Jan 2015 16:48:08 +0100 Subject: [PATCH] dmi, set_uom function, translation --- dev/dmi/run1/Kundendaten.ktr | 1737 ++++++++++++++ dev/dmi/run1/Produktdaten.ktr | 2034 +++++++++++++++++ dev/dmi/run1/VAT-Lookup.ktr | 883 +++++++ dev/dmi/run1/Validation.ktr | 1469 ++++++++++++ dev/dmi/run1/cam_dmi/__init__.py | 23 + dev/dmi/run1/cam_dmi/__openerp__.py | 38 + dev/dmi/run1/cam_dmi/res.users.csv | 2 + .../run1/cam_dmi/static/description/icon.png | Bin 0 -> 2870 bytes dev/dmi/run1/input/README.txt | 1 + dev/odoo-server-dev-br.conf | 2 +- dev/odoo-server-dev-sk.conf | 2 +- ext/custom-addons/cam_custom/__openerp__.py | 2 +- ext/custom-addons/cam_custom/i18n/de.po | 25 + setup/lib/config_at.py | 2 +- setup/lib/functions.py | 8 +- 15 files changed, 6223 insertions(+), 5 deletions(-) create mode 100644 dev/dmi/run1/Kundendaten.ktr create mode 100644 dev/dmi/run1/Produktdaten.ktr create mode 100644 dev/dmi/run1/VAT-Lookup.ktr create mode 100644 dev/dmi/run1/Validation.ktr create mode 100755 dev/dmi/run1/cam_dmi/__init__.py create mode 100755 dev/dmi/run1/cam_dmi/__openerp__.py create mode 100644 dev/dmi/run1/cam_dmi/res.users.csv create mode 100644 dev/dmi/run1/cam_dmi/static/description/icon.png create mode 100644 dev/dmi/run1/input/README.txt create mode 100644 ext/custom-addons/cam_custom/i18n/de.po diff --git a/dev/dmi/run1/Kundendaten.ktr b/dev/dmi/run1/Kundendaten.ktr new file mode 100644 index 00000000..d925479b --- /dev/null +++ b/dev/dmi/run1/Kundendaten.ktr @@ -0,0 +1,1737 @@ + + + Kundendaten + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2014/12/19 13:36:06.719 + - + 2015/01/13 16:27:12.108 + + + + + TransformPrioritize streamsY + Prioritize streamsres.partner.csvY + LänderStream lookupY + lieferanten_20150107.csvStream lookupY + kunden_20150107.csvStream lookup 2Y + LänderStream lookup 2Y + Stream lookup 2vat lookupY + vat lookupTransformY + Transform 2Prioritize streamsY + Stream lookupvat lookup 2Y + vat lookup 2Transform 2Y + vat_lookup.csvvat lookupY + vat_lookup.csvvat lookup 2Y + + + Länder + DataGrid + + N + + 1 + + none + + + + + key + String + + + + + -1 + -1 + N + + + value + String + + + + + -1 + -1 + N + + + + Österreichbase.at + Deutschlandbase.de + Italybase.it + Ungarnbase.hu + Belgienbase.be + Schweizbase.ch + + + + 652 + 178 + Y + + + + + Prioritize streams + PrioritizeStreams + + Y + + 1 + + none + + + + + Transform + + + Transform 2 + + + + + 650 + 525 + Y + + + + + Stream lookup + StreamLookup + + Y + + 1 + + none + + + Länder + N + Y + N + N + + + Land + key + + + value + land_xml + + None + + + + + 806 + 217 + Y + + + + + Stream lookup 2 + StreamLookup + + Y + + 1 + + none + + + Länder + N + Y + N + N + + + Land + key + + + value + land_xml + + None + + + + + 539 + 228 + Y + + + + + Transform + UserDefinedJavaClass + + N + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + + + + + + id + + String + + -1 + + -1 + + + + name + + String + + -1 + + -1 + + + + parent_id/id + + String + + -1 + + -1 + + + + street + + String + + -1 + + -1 + + + + city + + String + + -1 + + -1 + + + + zip + + String + + -1 + + -1 + + + + website + + String + + -1 + + -1 + + + + phone + + String + + -1 + + -1 + + + + mobile + + String + + -1 + + -1 + + + + fax + + String + + -1 + + -1 + + + + email + + String + + -1 + + -1 + + + + comment + + String + + -1 + + -1 + + + + ref + + String + + -1 + + -1 + + + + lang + + String + + -1 + + -1 + + + + vat + + String + + -1 + + -1 + + + + date + + String + + -1 + + -1 + + + + is_company + + String + + -1 + + -1 + + + + function + + String + + -1 + + -1 + + + + use_parent_address + + String + + -1 + + -1 + + + + country_id/id + + String + + -1 + + -1 + + + + customer + + String + + -1 + + -1 + + + + supplier + + String + + -1 + + -1 + + + + notify_email + + String + + -1 + + -1 + + + Y + + + 545 + 469 + Y + + + + + Transform 2 + UserDefinedJavaClass + + Y + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + + + + + + id + + String + + -1 + + -1 + + + + name + + String + + -1 + + -1 + + + + parent_id/id + + String + + -1 + + -1 + + + + street + + String + + -1 + + -1 + + + + city + + String + + -1 + + -1 + + + + zip + + String + + -1 + + -1 + + + + website + + String + + -1 + + -1 + + + + phone + + String + + -1 + + -1 + + + + mobile + + String + + -1 + + -1 + + + + fax + + String + + -1 + + -1 + + + + email + + String + + -1 + + -1 + + + + comment + + String + + -1 + + -1 + + + + ref + + String + + -1 + + -1 + + + + lang + + String + + -1 + + -1 + + + + vat + + String + + -1 + + -1 + + + + date + + String + + -1 + + -1 + + + + is_company + + String + + -1 + + -1 + + + + function + + String + + -1 + + -1 + + + + use_parent_address + + String + + -1 + + -1 + + + + country_id/id + + String + + -1 + + -1 + + + + customer + + String + + -1 + + -1 + + + + supplier + + String + + -1 + + -1 + + + + notify_email + + String + + -1 + + -1 + + + Y + + + 817 + 447 + Y + + + + + kunden_20150107.csv + CsvInput + + Y + + 1 + + none + + + ${GITREPOS}/input/kunden_20150107.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + Kundennr + String + + + + + -1 + -1 + none + + + Suchname + String + + + + + -1 + -1 + none + + + x + String + + + + + -1 + -1 + none + + + Name + String + + + + + -1 + -1 + none + + + Ansprechpartner + String + + + + + -1 + -1 + none + + + Adresse + String + + + + + -1 + -1 + none + + + PLZ + String + + + + + -1 + -1 + none + + + Ort + String + + + + + -1 + -1 + none + + + Land + String + + + + + -1 + -1 + none + + + Telefon + String + + + + + -1 + -1 + none + + + Fax + String + + + + + -1 + -1 + none + + + mail + String + + + + + -1 + -1 + none + + + Steuernummer + String + + + + + -1 + -1 + none + + + Rechnung per Mail + String + + + + + -1 + -1 + none + + + Zahlungsziel + String + + + + + -1 + -1 + none + + + + + 537 + 115 + Y + +
+ + + lieferanten_20150107.csv + CsvInput + + N + + 1 + + none + + + ${GITREPOS}/input/lieferanten_20150107.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + Lieferanten Nr + String + + + + + -1 + -1 + none + + + Suchname + String + + + + + -1 + -1 + none + + + Bezeichnung + String + + + + + -1 + -1 + none + + + Firmenname + String + + + + + -1 + -1 + none + + + Ansprechpartner + String + + + + + -1 + -1 + none + + + Strasse + String + + + + + -1 + -1 + none + + + PLZ + String + + + + + -1 + -1 + none + + + Stadt + String + + + + + -1 + -1 + none + + + Land + String + + + + + -1 + -1 + none + + + Code + String + + + + + -1 + -1 + none + + + Steuer Nr. + String + + + + + -1 + -1 + none + + + Mail + String + + + + + -1 + -1 + none + + + + + 800 + 115 + Y + +
+ + + res.partner.csv + TextFileOutput + + Y + + 1 + + none + + + , + " + N + N +
Y
+
N
+ DOS + None + UTF-8 + + N + + Y + + ${GITREPOS}/cam_dmi/res.partner + N + N + N + csv + N + N + N + N + N + N + + Y + N + N + 0 + + + + id + String + + + + + + none + -1 + -1 + + + name + String + + + + + + none + -1 + -1 + + + parent_id/id + String + + + + + + none + -1 + -1 + + + street + String + + + + + + none + -1 + -1 + + + city + String + + + + + + none + -1 + -1 + + + zip + String + + + + + + none + -1 + -1 + + + website + String + + + + + + none + -1 + -1 + + + phone + String + + + + + + none + -1 + -1 + + + mobile + String + + + + + + none + -1 + -1 + + + fax + String + + + + + + none + -1 + -1 + + + email + String + + + + + + none + -1 + -1 + + + comment + String + + + + + + none + -1 + -1 + + + ref + String + + + + + + none + -1 + -1 + + + lang + String + + + + + + none + -1 + -1 + + + vat + String + + + + + + none + -1 + -1 + + + date + String + + + + + + none + -1 + -1 + + + is_company + String + + + + + + none + -1 + -1 + + + function + String + + + + + + none + -1 + -1 + + + use_parent_address + String + + + + + + none + -1 + -1 + + + country_id/id + String + + + + + + none + -1 + -1 + + + customer + String + + + + + + none + -1 + -1 + + + supplier + String + + + + + + none + -1 + -1 + + + notify_email + String + + + + + + none + -1 + -1 + + + + + 650 + 615 + Y + +
+ + + vat lookup + StreamLookup + + Y + + 1 + + none + + + vat_lookup.csv + N + Y + N + N + + + Steuernummer + vat_old + + + vat_new + help_newvat + + None + + + + + 543 + 336 + Y + + + + + vat lookup 2 + StreamLookup + + Y + + 1 + + none + + + vat_lookup.csv + N + Y + N + N + + + Steuer Nr. + vat_old + + + vat_new + help_newvat + + None + + + + + 810 + 344 + Y + + + + + vat_lookup.csv + CsvInput + + N + + 1 + + none + + + ${GITREPOS}/cam_dmi/vat_lookup.csv + + + N + , + " +
Y
+ 50000 + N + N + N + N + + + + vat_old + String + + + + + -1 + -1 + none + + + vat_new + String + + + + + -1 + -1 + none + + + + + 669 + 257 + Y + +
+ + + + + + N + + diff --git a/dev/dmi/run1/Produktdaten.ktr b/dev/dmi/run1/Produktdaten.ktr new file mode 100644 index 00000000..a4495347 --- /dev/null +++ b/dev/dmi/run1/Produktdaten.ktr @@ -0,0 +1,2034 @@ + + + Produktdaten + + + + Normal + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2014/12/30 09:51:06.375 + - + 2015/01/13 16:27:51.078 + + + + + METransformY + Transformproduct.product.csvY + MengeneinheitenMEY + artikel_20150107.csvSort rowsY + Sort rowsUnique rowsY + Unique rowsTransform 2Y + Transform 2product.category.csvY + artikel_20150107.csvKategorieY + KategorieMEY + Transform 2KategorieY + Transform - Orderpointstock.warehouse.orderpoint.csvY + artikel_20150107.csvTransform - OrderpointY + Lagerstandstock.inventory.line.csvY + MELagerstandY + Inventurauftrag 2stock.inventory.csvY + Lieferanteninfosproduct.supplierinfo.csvY + MELieferanteninfosY + + + Inventurauftrag 2 + DataGrid + + Y + + 1 + + none + + + + + id + String + + + + + -1 + -1 + N + + + name + String + + + + + -1 + -1 + N + + + state + String + + + + + -1 + -1 + N + + + + inv_initinitialbefüllungconfirm + + + + 1228 + 343 + Y + + + + + Kategorie + StreamLookup + + Y + + 1 + + none + + + Transform 2 + N + Y + N + N + + + Artikelgruppe + name + + + id + help_category + + None + + + + + 400 + 365 + Y + + + + + Lagerstand + UserDefinedJavaClass + + N + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + + + + + + id + + String + + -1 + + -1 + + + + inventory_id/id + + String + + -1 + + -1 + + + + product_id/id + + String + + -1 + + -1 + + + + location_id/id + + String + + -1 + + -1 + + + + product_uom_id/id + + String + + -1 + + -1 + + + + product_qty + + String + + -1 + + -1 + + + Y + + + 1064 + 345 + Y + + + + + Lieferanteninfos + UserDefinedJavaClass + + N + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + + + + + + id + + String + + -1 + + -1 + + + + name/id + + String + + -1 + + -1 + + + + product_name + + String + + -1 + + -1 + + + + product_code + + String + + -1 + + -1 + + + + sequence + + String + + -1 + + -1 + + + + min_qty + + String + + -1 + + -1 + + + + product_tmpl_id/id + + String + + -1 + + -1 + + + + delay + + String + + -1 + + -1 + + + + pricelist_ids/price + + String + + -1 + + -1 + + + + pricelist_ids/min_quantity + + String + + -1 + + -1 + + + Y + + + 1390 + 343 + Y + + + + + ME + StreamLookup + + N + + 1 + + none + + + Mengeneinheiten + N + Y + N + N + + + Einheit + key + + + value + me + + None + + + + + 400 + 481 + Y + + + + + Mengeneinheiten + DataGrid + + Y + + 1 + + none + + + + + key + String + + + + + -1 + -1 + N + + + value + String + + + + + -1 + -1 + N + + + + Ktnproduct.product_uom_unit + Rolproduct.product_uom_unit + Kanproduct.product_uom_unit + lfmproduct.product_uom_meter + Stkproduct.product_uom_unit + qmcam_custom.product_uom_qm + Stgproduct.product_uom_unit + Paarproduct.product_uom_unit + + + + 200 + 255 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + Artikelgruppe + Y + N + N + + + + + 638 + 151 + Y + + + + + Transform + UserDefinedJavaClass + + N + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + + + + + + id + + String + + -1 + + -1 + + + + name + + String + + -1 + + -1 + + + + default_code + + String + + -1 + + -1 + + + + sale_ok + + String + + -1 + + -1 + + + + type + + String + + -1 + + -1 + + + + uom_id/id + + String + + -1 + + -1 + + + + uom_po_id/id + + String + + -1 + + -1 + + + + route_ids/id + + String + + -1 + + -1 + + + + standard_price + + String + + -1 + + -1 + + + + list_price + + String + + -1 + + -1 + + + + description + + String + + -1 + + -1 + + + + categ_id/id + + String + + -1 + + -1 + + + + purchase_ok + + String + + -1 + + -1 + + + + weight_net + + String + + -1 + + -1 + + + Y + + + 399 + 574 + Y + + + + + Transform - Orderpoint + UserDefinedJavaClass + + N + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + + + + + + id + + String + + -1 + + -1 + + + + name + + String + + -1 + + -1 + + + + product_id/id + + String + + -1 + + -1 + + + + product_min_qty + + String + + -1 + + -1 + + + + product_max_qty + + String + + -1 + + -1 + + + + qty_multiple + + String + + -1 + + -1 + + + Y + + + 825 + 300 + Y + + + + + Transform 2 + UserDefinedJavaClass + + N + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + + + + + + id + + String + + -1 + + -1 + + + + name + + String + + -1 + + -1 + + + Y + + + 638 + 301 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + Artikelgruppe + N + + + 641 + 213 + Y + + + + + artikel_20150107.csv + CsvInput + + N + + 1 + + none + + + ${GITREPOS}/input/artikel_20150107.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + Artikelnummer + String + + + + + -1 + -1 + none + + + Bezeichnung + String + + + + + -1 + -1 + none + + + Lieferantennummer + String + + + + + -1 + -1 + none + + + Lagerbestand + String + + + + + -1 + -1 + none + + + Mindestbestand + String + + + + + -1 + -1 + none + + + Einheit + String + + + + + -1 + -1 + none + + + MwSt. + String + + + + + -1 + -1 + none + + + Listenpreis ohne MWST + String + + + + + -1 + -1 + none + + + Einkaufspreis ohne MWST + String + + + + + -1 + -1 + none + + + Artikelgruppe + String + + + + + -1 + -1 + none + + + Hersteller + String + + + + + -1 + -1 + none + + + Herstellercode + String + + + + + -1 + -1 + none + + + Lagerwert + String + + + + + -1 + -1 + none + + + + + 638 + 48 + Y + +
+ + + product.category.csv + TextFileOutput + + Y + + 1 + + none + + + , + " + N + N +
Y
+
N
+ DOS + None + + + N + + Y + + ${GITREPOS}/cam_dmi/product.category + N + N + N + csv + N + N + N + N + N + N + + Y + N + N + 0 + + + + id + String + + + + + + none + -1 + -1 + + + name + String + + + + + + none + -1 + -1 + + + + + 644 + 655 + Y + +
+ + + product.product.csv + TextFileOutput + + Y + + 1 + + none + + + , + " + N + N +
Y
+
N
+ DOS + None + + + N + + Y + + ${GITREPOS}/cam_dmi/product.product + N + N + N + csv + N + N + N + N + N + N + + Y + N + N + 0 + + + + id + String + + + + + + none + -1 + -1 + + + name + String + + + + + + none + -1 + -1 + + + default_code + String + + + + + + none + -1 + -1 + + + sale_ok + String + + + + + + none + -1 + -1 + + + type + String + + + + + + none + -1 + -1 + + + uom_id/id + String + + + + + + none + -1 + -1 + + + uom_po_id/id + String + + + + + + none + -1 + -1 + + + route_ids/id + String + + + + + + none + -1 + -1 + + + standard_price + String + + + + + + none + -1 + -1 + + + list_price + String + + + + + + none + -1 + -1 + + + description + String + + + + + + none + -1 + -1 + + + categ_id/id + String + + + + + + none + -1 + -1 + + + purchase_ok + String + + + + + + none + -1 + -1 + + + weight_net + String + + + + + + none + -1 + -1 + + + + + 399 + 651 + Y + +
+ + + product.supplierinfo.csv + TextFileOutput + + Y + + 1 + + none + + + , + " + N + N +
Y
+
N
+ DOS + None + + + N + + Y + + ${GITREPOS}/cam_dmi/product.supplierinfo + N + N + N + csv + N + N + N + N + N + N + + Y + N + N + 0 + + + + id + String + + + + + + none + -1 + -1 + + + name/id + String + + + + + + none + -1 + -1 + + + product_name + String + + + + + + none + -1 + -1 + + + product_code + String + + + + + + none + -1 + -1 + + + sequence + String + + + + + + none + -1 + -1 + + + min_qty + String + + + + + + none + -1 + -1 + + + product_tmpl_id/id + String + + + + + + none + -1 + -1 + + + delay + String + + + + + + none + -1 + -1 + + + pricelist_ids/price + String + + + + + + none + -1 + -1 + + + pricelist_ids/min_quantity + String + + + + + + none + -1 + -1 + + + + + 1399 + 640 + Y + +
+ + + stock.inventory.csv + TextFileOutput + + Y + + 1 + + none + + + , + " + N + N +
Y
+
N
+ DOS + None + + + N + + Y + + ${GITREPOS}/cam_dmi/stock.inventory + N + N + N + csv + N + N + N + N + N + N + + Y + N + N + 0 + + + + id + String + + + + + + none + -1 + -1 + + + name + String + + + + + + none + -1 + -1 + + + state + String + + + + + + none + -1 + -1 + + + + + 1238 + 646 + Y + +
+ + + stock.inventory.line.csv + TextFileOutput + + Y + + 1 + + none + + + , + " + N + N +
Y
+
N
+ DOS + None + + + N + + Y + + ${GITREPOS}/cam_dmi/stock.inventory.line + N + N + N + csv + N + N + N + N + N + N + + Y + N + N + 0 + + + + id + String + + + + + + none + -1 + -1 + + + inventory_id/id + String + + + + + + none + -1 + -1 + + + product_id/id + String + + + + + + none + -1 + -1 + + + location_id/id + String + + + + + + none + -1 + -1 + + + product_uom_id/id + String + + + + + + none + -1 + -1 + + + product_qty + String + + + + + + none + -1 + -1 + + + + + 1068 + 648 + Y + +
+ + + stock.warehouse.orderpoint.csv + TextFileOutput + + Y + + 1 + + none + + + , + " + N + N +
Y
+
N
+ DOS + None + + + N + + Y + + ${GITREPOS}/cam_dmi/stock.warehouse.orderpoint + N + N + N + csv + N + N + N + N + N + N + + Y + N + N + 0 + + + + id + String + + + + + + none + -1 + -1 + + + name + String + + + + + + none + -1 + -1 + + + product_id/id + String + + + + + + none + -1 + -1 + + + product_min_qty + String + + + + + + none + -1 + -1 + + + product_max_qty + String + + + + + + none + -1 + -1 + + + qty_multiple + String + + + + + + none + -1 + -1 + + + + + 833 + 656 + Y + +
+ + + + + + N + + diff --git a/dev/dmi/run1/VAT-Lookup.ktr b/dev/dmi/run1/VAT-Lookup.ktr new file mode 100644 index 00000000..7db60e48 --- /dev/null +++ b/dev/dmi/run1/VAT-Lookup.ktr @@ -0,0 +1,883 @@ + + + VAT-Lookup + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2014/12/30 12:25:19.832 + - + 2015/01/13 16:28:08.336 + + + + + REST ClientGet data from XMLY + kunden_20150107.csvSelect valuesY + ieferanten_20150107.csvSelect values 2Y + Select valuesCreate URLY + Select values 2Create URLY + Create URLREST ClientY + Get data from XMLAufbereitenY + Aufbereitenvat_lookup.csvY + + + Aufbereiten + UserDefinedJavaClass + + N + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + + + + + + vat_old + + String + + -1 + + -1 + + + + vat_new + + String + + -1 + + -1 + + + Y + + + 211 + 467 + Y + + + + + Create URL + UserDefinedJavaClass + + N + + 1 + + none + + + + + + TRANSFORM_CLASS + + Processor + + / + String url = "http://vatid.eu/check/"; + String country = vat.substring(0,2); + String vat_nr = vat.substring(2,vat.length()); + + get(Fields.Out, "help_url").setValue(out, url + "/" + country + "/" + vat_nr); + get(Fields.Out, "vat_old").setValue(out, get(Fields.In, "vat").getString(r)); + // Send the row on to the next step. + putRow(data.outputRowMeta, out); + } + + return true; +}]]> + + + + + help_url + + String + + -1 + + -1 + + + + vat_old + + String + + -1 + + -1 + + + Y + + + 214 + 219 + Y + + + + + Get data from XML + getXMLData + + Y + + 1 + + none + + + N + + N + N + N + N + N + N + N + N + Y + + UTF-8 + + + + + N + N + + + + valid + /response/valid + node + valueof + None + + + + + -1 + -1 + none + N + + + vatnr + /response/vat-number + node + valueof + None + + + + + -1 + -1 + none + N + + + country_code + /response/country-code + node + valueof + None + + + + + -1 + -1 + none + N + + + 0 + /response/valid + Y + N + help_result + + + + + + + + + + + + 213 + 380 + Y + + + + + REST Client + Rest + + N + + 1 + + none + + + TEXT PLAIN + GET + + Y + N + + help_url + + + Encrypted + + + N + + Encrypted + + + + + + help_result + help_resultcode + + + + + 212 + 287 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + Steuernummer + vat + -2 + -2 + N + + + 124 + 159 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + Steuer Nr. + vat + -2 + -2 + N + + + 290 + 155 + Y + + + + + ieferanten_20150107.csv + CsvInput + + N + + 1 + + none + + + ${GITREPOS}/input/lieferanten_20150107.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + Lieferanten Nr + String + + + + + -1 + -1 + none + + + Suchname + String + + + + + -1 + -1 + none + + + Bezeichnung + String + + + + + -1 + -1 + none + + + Firmenname + String + + + + + -1 + -1 + none + + + Ansprechpartner + String + + + + + -1 + -1 + none + + + Strasse + String + + + + + -1 + -1 + none + + + PLZ + String + + + + + -1 + -1 + none + + + Stadt + String + + + + + -1 + -1 + none + + + Land + String + + + + + -1 + -1 + none + + + Code + String + + + + + -1 + -1 + none + + + Steuer Nr. + String + + + + + -1 + -1 + none + + + Mail + String + + + + + -1 + -1 + none + + + + + 282 + 68 + Y + +
+ + + kunden_20150107.csv + CsvInput + + Y + + 1 + + none + + + ${GITREPOS}/input/kunden_20150107.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + Kundennr + String + + + + + -1 + -1 + none + + + Suchname + String + + + + + -1 + -1 + none + + + Type + String + + + + + -1 + -1 + none + + + Name + String + + + + + -1 + -1 + none + + + Ansprechpartner + String + + + + + -1 + -1 + none + + + Adresse + String + + + + + -1 + -1 + none + + + PLZ + String + + + + + -1 + -1 + none + + + Ort + String + + + + + -1 + -1 + none + + + Land + String + + + + + -1 + -1 + none + + + Telefon + String + + + + + -1 + -1 + none + + + Fax + String + + + + + -1 + -1 + none + + + mail + String + + + + + -1 + -1 + none + + + Steuernummer + String + + + + + -1 + -1 + none + + + Rechnung per Mail + String + + + + + -1 + -1 + none + + + Zahlungsziel + String + + + + + -1 + -1 + none + + + + + 127 + 69 + Y + +
+ + + vat_lookup.csv + TextFileOutput + + Y + + 1 + + none + + + , + " + N + N +
Y
+
N
+ DOS + None + UTF-8 + + N + + Y + + ${GITREPOS}/cam_dmi/vat_lookup + N + N + N + csv + N + N + N + N + N + N + + Y + N + N + 0 + + + + vat_old + String + + + + + + none + -1 + -1 + + + vat_new + String + + + + + + none + -1 + -1 + + + + + 208 + 587 + Y + +
+ + + + + + N + + diff --git a/dev/dmi/run1/Validation.ktr b/dev/dmi/run1/Validation.ktr new file mode 100644 index 00000000..3e647d2a --- /dev/null +++ b/dev/dmi/run1/Validation.ktr @@ -0,0 +1,1469 @@ + + + Validation + + + + Normal + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2014/12/30 14:48:36.101 + - + 2015/01/13 16:28:48.168 + + + + + product.template.csvData ValidatorY + res.partner.csvData Validator 2Y + stock.warehouse.orderpoint.csvData Validator 3Y + stock.inventory.line.csvData Validator 3 2Y + vat_lookup.csvData Validator 2Y + product.product.csvData Validator 2 2N + product.template.csvData Validator 2 2N + product.product.csvData Validator 3 2Y + product.product.csvData Validator 3Y + product.supplierinfo.csvData Validator 3 2 2Y + product.product.csvData Validator 3 2 2Y + res.partner.csvData Validator 3 2 2Y + + + Data Validator + Validator + + Y + + 1 + + none + + +N +N +| + uom_id/id +uom_id + + +N +N +N +None +N + + + + + + + + + + + + + +N + + + + uom_po_id/id +uom_po_id + + +N +N +N +None +N + + + + + + + + + + + + + +N + + + + categ_id/id +category_id + + +N +N +N +None +N + + + + + + + + + + + + + +N + + + + name +name + + +N +N +N +None +N + + + + + + + + + + + + + +N + + + + default_code +default_code + + +Y +N +N +None +N + + + + + + + + + + + + + +N + + + + + + 510 + 532 + Y + + + + + Data Validator 2 + Validator + + Y + + 1 + + none + + +N +N +| + name +name + + +N +N +N +None +N + + + + + + + + + + + + + +N + + + + vat +vat exists + + +Y +N +N +None +N + + + + + + + + + + + + + +Y +vat_lookup.csv +vat_new + + + + 356 + 509 + Y + + + + + Data Validator 2 2 + Validator + + Y + + 1 + + none + + +N +N +| + product_tmpl_id/id +product_tmpl_id + + +N +N +N +None +N + + + + + + + + + + + + + +Y +product.template.csv +id + + + + 174 + 514 + Y + + + + + Data Validator 3 + Validator + + Y + + 1 + + none + + +N +N +| + product_id/id +product_id + + +N +N +N +None +N + + + + + + + + + + + + + +Y +product.product.csv +id + + + + 710 + 529 + Y + + + + + Data Validator 3 2 + Validator + + Y + + 1 + + none + + +N +N +| + product_id/id +product_id + + +N +N +N +None +N + + + + + + + + + + + + + +Y +product.product.csv +id + + + + 901 + 541 + Y + + + + + Data Validator 3 2 2 + Validator + + Y + + 1 + + none + + +N +N +| + product_tmpl_id/id +product_id + + +N +N +N +None +N + + + + + + + + + + + + + +Y +product.product.csv +id + + name/id +Lieferant partner_id + + +N +N +N +None +N + + + + + + + + + + + + + +Y +res.partner.csv +id + + + + 1124 + 535 + Y + + + + + product.product.csv + CsvInput + + N + + 1 + + none + + + ${GITREPOS}/cam_dmi/product.product.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + id + String + + + + + -1 + -1 + none + + + product_tmpl_id/id + String + + + + + -1 + -1 + none + + + + + 93 + 136 + Y + +
+ + + product.supplierinfo.csv + CsvInput + + Y + + 1 + + none + + + ${GITREPOS}/cam_dmi/product.supplierinfo.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + id + String + + + + + -1 + -1 + none + + + name/id + String + + + + + -1 + -1 + none + + + product_name + String + + + + + -1 + -1 + none + + + product_code + String + + + + + -1 + -1 + none + + + sequence + String + + + + + -1 + -1 + none + + + min_qty + String + + + + + -1 + -1 + none + + + product_tmpl_id/id + String + + + + + -1 + -1 + none + + + delay + String + + + + + -1 + -1 + none + + + pricelist_ids/price + String + + + + + -1 + -1 + none + + + pricelist_ids/min_quantity + String + + + + + -1 + -1 + none + + + + + 1200 + 135 + Y + +
+ + + product.template.csv + CsvInput + + N + + 1 + + none + + + ${GITREPOS}/cam_dmi/product.template.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + id + String + + + + + -1 + -1 + none + + + name + String + + + + + -1 + -1 + none + + + default_code + String + + + + + -1 + -1 + none + + + sale_ok + String + + + + + -1 + -1 + none + + + type + String + + + + + -1 + -1 + none + + + uom_id/id + String + + + + + -1 + -1 + none + + + uom_po_id/id + String + + + + + -1 + -1 + none + + + route_ids/id + String + + + + + -1 + -1 + none + + + standard_price + String + + + + + -1 + -1 + none + + + list_price + String + + + + + -1 + -1 + none + + + description + String + + + + + -1 + -1 + none + + + categ_id/id + String + + + + + -1 + -1 + none + + + purchase_ok + String + + + + + -1 + -1 + none + + + weight_net + String + + + + + -1 + -1 + none + + + + + 541 + 133 + Y + +
+ + + res.partner.csv + CsvInput + + N + + 1 + + none + + + ${GITREPOS}/cam_dmi/res.partner.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + id + String + + + + + -1 + -1 + none + + + name + String + + + + + -1 + -1 + none + + + parent_id/id + String + + + + + -1 + -1 + none + + + street + String + + + + + -1 + -1 + none + + + city + String + + + + + -1 + -1 + none + + + zip + String + + + + + -1 + -1 + none + + + website + String + + + + + -1 + -1 + none + + + phone + String + + + + + -1 + -1 + none + + + mobile + String + + + + + -1 + -1 + none + + + fax + String + + + + + -1 + -1 + none + + + email + String + + + + + -1 + -1 + none + + + comment + String + + + + + -1 + -1 + none + + + ref + String + + + + + -1 + -1 + none + + + lang + String + + + + + -1 + -1 + none + + + vat + String + + + + + -1 + -1 + none + + + date + String + + + + + -1 + -1 + none + + + is_company + String + + + + + -1 + -1 + none + + + function + String + + + + + -1 + -1 + none + + + use_parent_address + String + + + + + -1 + -1 + none + + + country_id/id + String + + + + + -1 + -1 + none + + + customer + String + + + + + -1 + -1 + none + + + supplier + String + + + + + -1 + -1 + none + + + notify_email + String + + + + + -1 + -1 + none + + + + + 380 + 129 + Y + +
+ + + stock.inventory.line.csv + CsvInput + + Y + + 1 + + none + + + ${GITREPOS}/cam_dmi/stock.inventory.line.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + id + String + + + + + -1 + -1 + none + + + inventory_id/id + String + + + + + -1 + -1 + none + + + product_id/id + String + + + + + -1 + -1 + none + + + location_id/id + String + + + + + -1 + -1 + none + + + product_uom_id/id + String + + + + + -1 + -1 + none + + + product_qty + String + + + + + -1 + -1 + none + + + + + 1000 + 133 + Y + +
+ + + stock.warehouse.orderpoint.csv + CsvInput + + Y + + 1 + + none + + + ${GITREPOS}/cam_dmi/stock.warehouse.orderpoint.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + id + String + + + + + -1 + -1 + none + + + name + String + + + + + -1 + -1 + none + + + product_id/id + String + + + + + -1 + -1 + none + + + product_min_qty + String + + + + + -1 + -1 + none + + + product_max_qty + String + + + + + -1 + -1 + none + + + qty_multiple + String + + + + + -1 + -1 + none + + + + + 764 + 134 + Y + +
+ + + vat_lookup.csv + CsvInput + + Y + + 1 + + none + + + ${GITREPOS}/cam_dmi/vat_lookup.csv + + + N + , + " +
Y
+ 50000 + Y + N + N + N + + + + vat_old + String + + + + + -1 + -1 + none + + + vat_new + String + + + + + -1 + -1 + none + + + + + 243 + 132 + Y + +
+ + + + + + N + + diff --git a/dev/dmi/run1/cam_dmi/__init__.py b/dev/dmi/run1/cam_dmi/__init__.py new file mode 100755 index 00000000..49a09e55 --- /dev/null +++ b/dev/dmi/run1/cam_dmi/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + diff --git a/dev/dmi/run1/cam_dmi/__openerp__.py b/dev/dmi/run1/cam_dmi/__openerp__.py new file mode 100755 index 00000000..e642b311 --- /dev/null +++ b/dev/dmi/run1/cam_dmi/__openerp__.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +{ + 'name': 'Datenübernahme', + 'category': 'Custom', + 'version': '1.0', + 'description': """Datenübernahme""", + 'author': 'camadeus GmbH', + 'website': 'http://www.camadeus.at', + 'depends': ['mail','cam_reports'], + 'data': [ + 'res.users.csv', + ], + 'installable': True, + 'auto_install': False, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/dev/dmi/run1/cam_dmi/res.users.csv b/dev/dmi/run1/cam_dmi/res.users.csv new file mode 100644 index 00000000..ad16983a --- /dev/null +++ b/dev/dmi/run1/cam_dmi/res.users.csv @@ -0,0 +1,2 @@ +"id","name","login","password","email","groups_id/id","tz","mobile","phone","function" +"p_xxx","Max Mustermann","mustermann@max.at","x","mustermann@max.at","base.group_sale_salesman_all_leads,account.group_account_invoice,base.group_erp_manager,stock.group_stock_user,purchase.group_purchase_user","Europe/Vienna",,, diff --git a/dev/dmi/run1/cam_dmi/static/description/icon.png b/dev/dmi/run1/cam_dmi/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..fd7ee3b90ede569d07369b51f5036c9c0de4e9b2 GIT binary patch literal 2870 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, 2012. +# + +msgid "" +msgstr "" +"Project-Id-Version: camadeus\n" +"Report-Msgid-Bugs-To: Andreas Brueckl \n" +"POT-Creation-Date: 2014-09-23 16:26+0000\n" +"PO-Revision-Date: 2014-08-14 16:14+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: Abkhazian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-09-24 09:44+0000\n" +"X-Generator: Launchpad (build 17196)\n" + +#. module: cam_custom +#: field:product.product,default_code:0 +#: field:product.template,default_code:0 +msgid "Internal Reference" +msgstr "Artikelnummer" diff --git a/setup/lib/config_at.py b/setup/lib/config_at.py index e46f6261..c38baa22 100644 --- a/setup/lib/config_at.py +++ b/setup/lib/config_at.py @@ -93,7 +93,7 @@ class Config(): # }, # 'account.invoice': { # 'number_next_actual': 2000, -# 'prefix': '14-', +# 'prefix': '15-', # 'padding': 4, # }, } diff --git a/setup/lib/functions.py b/setup/lib/functions.py index df8984d8..13977342 100755 --- a/setup/lib/functions.py +++ b/setup/lib/functions.py @@ -285,7 +285,13 @@ class CamadeusFunctions(): for uom_xml_id in active_uoms: uom_id = self._execute('ir.model.data', 'xmlid_to_res_id', uom_xml_id) active_ids.append(uom_id) - + + # Set all UOMs to active + ids = self._execute('product.uom', 'search', ['|',('active','=',True),('active','=',False)]) + res = self._execute('product.uom', 'write', ids, {'active': True}) + if not res: + return False + # Set all other UOMs to inactive inactive_ids = self._execute('product.uom', 'search', [('id','not in',active_ids)]) res = self._execute('product.uom', 'write', inactive_ids, {'active': False})