diff --git a/__init__.py b/__init__.py
index eda6b6d..161c360 100644
--- a/__init__.py
+++ b/__init__.py
@@ -9,6 +9,7 @@ from .rate import Rate
from .identifier import Identifier
from .cron import Cron
from .onlinesource import OnlineSource
+from .update_wiz import UpdateSoureWizard
def register():
@@ -19,3 +20,7 @@ def register():
Identifier,
Cron,
module='investment', type_='model')
+ Pool.register(
+ UpdateSoureWizard,
+ module='investment', type_='wizard')
+
diff --git a/asset.py b/asset.py
index d6f4bba..ea955b5 100644
--- a/asset.py
+++ b/asset.py
@@ -309,11 +309,12 @@ class Asset(ModelSQL, ModelView):
"""
pool = Pool()
Asset2 = pool.get('investment.asset')
+ OnlineSource = pool.get('investment.source')
for asset in Asset2.search([
('updtneeded', '=', True),
]):
- pass
+ OnlineSource.update_rate(asset)
@classmethod
def create(cls, vlist):
diff --git a/locale/de.po b/locale/de.po
index 0089953..c42db17 100644
--- a/locale/de.po
+++ b/locale/de.po
@@ -46,6 +46,10 @@ msgctxt "model:ir.ui.menu,name:menu_asset"
msgid "Asset"
msgstr "Vermögenswert"
+msgctxt "model:ir.ui.menu,name:menu_onlinesource"
+msgid "Online Source"
+msgstr "Online Quelle"
+
#############
# ir.action #
@@ -54,6 +58,22 @@ msgctxt "model:ir.action,name:act_asset_view"
msgid "Asset"
msgstr "Vermögenswert"
+msgctxt "model:ir.action,name:act_source_view"
+msgid "Online Source"
+msgstr "Online Quelle"
+
+msgctxt "model:ir.action,name:updt_source_wiz"
+msgid "Update Source"
+msgstr "Quelle aktualisieren"
+
+
+############################
+# investment.source_update #
+############################
+msgctxt "model:investment.source_update,name:"
+msgid "Update Source"
+msgstr "Quelle aktualisieren"
+
####################
# investment.asset #
@@ -163,6 +183,66 @@ msgid "Course update needed"
msgstr "Kursaktualisierung nötig"
+#####################
+# investment.source #
+#####################
+msgctxt "model:investment.source,name:"
+msgid "Online Source"
+msgstr "Online Quelle"
+
+msgctxt "view:investment.source:"
+msgid "Result"
+msgstr "Ergebnis"
+
+msgctxt "view:investment.source:"
+msgid "Test parameters"
+msgstr "Testparameter"
+
+msgctxt "view:investment.source:"
+msgid "Configure a source for receiving course data here. The source is queried with the parameters according to schedule."
+msgstr "Konfigurieren Sie hier eine Quelle für den Empfang von Kursdaten. Die Quelle wird mit den Paramtern nach Zeitplan abgefragt."
+
+msgctxt "view:investment.source:"
+msgid "Select a website where the price data, ISIN, date, etc. is contained in the loaded HTML file."
+msgstr "Wählen Sie eine Webseite bei der die Kursdaten, ISIN, Datum etc. in der geladenen HTML-Datei enthalten ist."
+
+msgctxt "view:investment.source:"
+msgid "Purely javascript-based websites do not work here."
+msgstr "Rein javascriptbasierte Webseiten funktionieren hier nicht."
+
+msgctxt "field:investment.source,name:"
+msgid "Name"
+msgstr "Name"
+
+msgctxt "field:investment.source,url:"
+msgid "URL"
+msgstr "URL"
+
+msgctxt "field:investment.source,nsin:"
+msgid "NSIN"
+msgstr "WKN"
+
+msgctxt "field:investment.source,isin:"
+msgid "ISIN"
+msgstr "ISIN"
+
+msgctxt "field:investment.source,symbol:"
+msgid "Symbol"
+msgstr "Symbol"
+
+msgctxt "field:investment.source,text:"
+msgid "Result"
+msgstr "Ergebnis"
+
+msgctxt "field:investment.source,nohtml:"
+msgid "Remove HTML"
+msgstr "HTML entfernen"
+
+msgctxt "help:investment.source,nohtml:"
+msgid "Removes HTML tags before the text is interpreted."
+msgstr "Entfernt HTML-Tags bevor der Text interpretiert wird."
+
+
###################
# investment.rate #
###################
diff --git a/locale/en.po b/locale/en.po
index ffe1d99..61fe75a 100644
--- a/locale/en.po
+++ b/locale/en.po
@@ -30,10 +30,26 @@ msgctxt "model:ir.ui.menu,name:menu_asset"
msgid "Asset"
msgstr "Asset"
+msgctxt "model:ir.ui.menu,name:menu_onlinesource"
+msgid "Online Source"
+msgstr "Online Source"
+
msgctxt "model:ir.action,name:act_asset_view"
msgid "Asset"
msgstr "Asset"
+msgctxt "model:ir.action,name:act_source_view"
+msgid "Online Source"
+msgstr "Online Source"
+
+msgctxt "model:ir.action,name:updt_source_wiz"
+msgid "Update Source"
+msgstr "Update Source"
+
+msgctxt "model:investment.source_update,name:"
+msgid "Update Source"
+msgstr "Update Source"
+
msgctxt "model:investment.asset,name:"
msgid "Asset"
msgstr "Asset"
@@ -138,6 +154,62 @@ msgctxt "field:investment.asset,updtneeded:"
msgid "Course update needed"
msgstr "Course update needed"
+msgctxt "model:investment.source,name:"
+msgid "Online Source"
+msgstr "Online Source"
+
+msgctxt "view:investment.source:"
+msgid "Result"
+msgstr "Result"
+
+msgctxt "view:investment.source:"
+msgid "Test parameters"
+msgstr "Test parameters"
+
+msgctxt "view:investment.source:"
+msgid "Configure a source for receiving course data here. The source is queried with the parameters according to schedule."
+msgstr "Configure a source for receiving course data here. The source is queried with the parameters according to schedule."
+
+msgctxt "view:investment.source:"
+msgid "Select a website where the price data, ISIN, date, etc. is contained in the loaded HTML file."
+msgstr "Select a website where the price data, ISIN, date, etc. is contained in the loaded HTML file."
+
+msgctxt "view:investment.source:"
+msgid "Purely javascript-based websites do not work here."
+msgstr "Purely javascript-based websites do not work here."
+
+msgctxt "field:investment.source,name:"
+msgid "Name"
+msgstr "Name"
+
+msgctxt "field:investment.source,url:"
+msgid "URL"
+msgstr "URL"
+
+msgctxt "field:investment.source,nsin:"
+msgid "NSIN"
+msgstr "NSIN"
+
+msgctxt "field:investment.source,isin:"
+msgid "ISIN"
+msgstr "ISIN"
+
+msgctxt "field:investment.source,symbol:"
+msgid "Symbol"
+msgstr "Symbol"
+
+msgctxt "field:investment.source,text:"
+msgid "Result"
+msgstr "Result"
+
+msgctxt "field:investment.source,nohtml:"
+msgid "Remove HTML"
+msgstr "Remove HTML"
+
+msgctxt "help:investment.source,nohtml:"
+msgid "Removes HTML tags before the text is interpreted."
+msgstr "Removes HTML tags before the text is interpreted."
+
msgctxt "model:investment.rate,name:"
msgid "Rate"
msgstr "Rate"
diff --git a/menu.xml b/menu.xml
index ad16e04..2ab5feb 100644
--- a/menu.xml
+++ b/menu.xml
@@ -17,8 +17,16 @@ full copyright notices and license terms. -->
+
+
+
+
-