diff --git a/.hgignore b/.hgignore
index 9371863..c44a019 100644
--- a/.hgignore
+++ b/.hgignore
@@ -2,3 +2,5 @@ syntax: glob
build/*
dist/*
mds_cashbook.egg-info/*
+locale/convert_de2en.py
+__pycache__/*
diff --git a/__init__.py b/__init__.py
index 5face77..7472555 100644
--- a/__init__.py
+++ b/__init__.py
@@ -1,8 +1,12 @@
# -*- coding: utf-8 -*-
+# This file is part of the cashbook-module from m-ds for Tryton.
+# The COPYRIGHT file at the top level of this repository contains the
+# full copyright notices and license terms.
from trytond.pool import Pool
-
+from .book import Book
def register():
Pool.register(
+ Book,
module='cashbook', type_='model')
diff --git a/book.py b/book.py
new file mode 100644
index 0000000..8b16927
--- /dev/null
+++ b/book.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# This file is part of the cashbook-module from m-ds for Tryton.
+# The COPYRIGHT file at the top level of this repository contains the
+# full copyright notices and license terms.
+
+from trytond.model import ModelView, ModelSQL, fields
+
+
+class Book(ModelSQL, ModelView):
+ 'Account'
+ __name__ = 'cashbook.book'
+
+ name = fields.Char(string='Name', required=True)
+
+ @classmethod
+ def __setup__(cls):
+ super(Book, cls).__setup__()
+ cls._order.insert(0, ('name', 'ASC'))
+
+# end Book
diff --git a/book.xml b/book.xml
new file mode 100644
index 0000000..e77648b
--- /dev/null
+++ b/book.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+ cashbook.book
+ tree
+
+ book_list
+
+
+ cashbook.book
+ form
+
+ book_form
+
+
+
+
+ Account
+ cashbook.book
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/group.xml b/group.xml
new file mode 100644
index 0000000..e9e1f5c
--- /dev/null
+++ b/group.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+ Cashbook
+
+
+
+
diff --git a/icon.xml b/icon.xml
new file mode 100644
index 0000000..a9b6c21
--- /dev/null
+++ b/icon.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ mds-notebook
+ icon/notebook1.svg
+
+
+
+
diff --git a/icon/notebook1.svg b/icon/notebook1.svg
new file mode 100644
index 0000000..a46b1b0
--- /dev/null
+++ b/icon/notebook1.svg
@@ -0,0 +1,64 @@
+
+
\ No newline at end of file
diff --git a/locale/de.po b/locale/de.po
new file mode 100644
index 0000000..7fffda3
--- /dev/null
+++ b/locale/de.po
@@ -0,0 +1,43 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+
+#############
+# res.group #
+#############
+msgctxt "model:res.group,name:group_cashbook"
+msgid "Cashbook"
+msgstr "Kassenbuch"
+
+
+##############
+# ir.ui.menu #
+##############
+msgctxt "model:ir.ui.menu,name:menu_cashbook"
+msgid "Cashbook"
+msgstr "Kassenbuch"
+
+msgctxt "model:ir.ui.menu,name:menu_account"
+msgid "Account"
+msgstr "Konto"
+
+
+#############
+# ir.action #
+#############
+msgctxt "model:ir.action,name:act_book_view"
+msgid "Account"
+msgstr "Konto"
+
+
+#################
+# cashbook.book #
+#################
+msgctxt "model:cashbook.book,name:"
+msgid "Account"
+msgstr "Konto"
+
+msgctxt "field:cashbook.book,name:"
+msgid "Name"
+msgstr "Name"
diff --git a/menu.xml b/menu.xml
new file mode 100644
index 0000000..9a7ae3e
--- /dev/null
+++ b/menu.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/message.xml b/message.xml
new file mode 100644
index 0000000..25498c4
--- /dev/null
+++ b/message.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
diff --git a/setup.py b/setup.py
index 9782f60..d73c38e 100644
--- a/setup.py
+++ b/setup.py
@@ -97,7 +97,7 @@ setup(name='%s_%s' % (PREFIX, MODULE),
package_data={
'trytond.modules.%s' % MODULE: (info.get('xml', [])
+ ['tryton.cfg', 'locale/*.po', 'tests/*.py',
- 'view/*.xml',
+ 'view/*.xml', 'icon/*.svg',
'versiondep.txt', 'README.rst']),
},
diff --git a/tryton.cfg b/tryton.cfg
index 4a479cc..8714c4a 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -3,3 +3,7 @@ version=6.0.0
depends:
res
xml:
+ icon.xml
+ group.xml
+ book.xml
+ menu.xml
diff --git a/view/book_form.xml b/view/book_form.xml
new file mode 100644
index 0000000..b6a8cec
--- /dev/null
+++ b/view/book_form.xml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/view/book_list.xml b/view/book_list.xml
new file mode 100644
index 0000000..82f617b
--- /dev/null
+++ b/view/book_list.xml
@@ -0,0 +1,7 @@
+
+
+
+
+