diff --git a/addons/account_greek_fiscal/__init__.py b/addons/account_greek_fiscal/__init__.py
index bde4b31195c..52068cf0afe 100644
--- a/addons/account_greek_fiscal/__init__.py
+++ b/addons/account_greek_fiscal/__init__.py
@@ -21,6 +21,8 @@
##############################################################################
import fiscal_prints
+import account_vats
+import partner
import account_invoice_print
import ir_actions_report
import wizard
diff --git a/addons/account_greek_fiscal/__terp__.py b/addons/account_greek_fiscal/__terp__.py
index 896a746b23d..cf7d86ac861 100644
--- a/addons/account_greek_fiscal/__terp__.py
+++ b/addons/account_greek_fiscal/__terp__.py
@@ -34,8 +34,10 @@
],
"demo_xml" : [
],
- "update_xml" : [ "account_fiscalgr_view.xml", "account_invoice_report.xml"
- ],
+ "update_xml" : [ "account_fiscalgr_vats.xml",
+ "account_fiscalgr_view.xml",
+ "account_invoice_report.xml"
+ ],
"active": False,
"installable": True
}
diff --git a/addons/account_greek_fiscal/account_fiscalgr_vats.xml b/addons/account_greek_fiscal/account_fiscalgr_vats.xml
new file mode 100644
index 00000000000..5ea2b7c4a93
--- /dev/null
+++ b/addons/account_greek_fiscal/account_fiscalgr_vats.xml
@@ -0,0 +1,98 @@
+
+
+
+
+ account.fiscalgr.tauth.form
+ account.fiscalgr.tauth
+ form
+
+
+
+
+
+
+ account.fiscalgr.tauth.tree
+ account.fiscalgr.tauth
+ tree
+
+
+
+
+
+
+
+
+
+
+
+ Tax authorities
+ account.fiscalgr.tauth
+ form
+ tree,form
+
+
+
+
+ account.fiscalgr.occup.form
+ account.fiscalgr.occup
+ form
+
+
+
+
+
+
+ account.fiscalgr.occup.tree
+ account.fiscalgr.occup
+ tree
+
+
+
+
+
+
+
+
+
+
+ Tax occupations
+ account.fiscalgr.occup
+ form
+ tree,form
+
+
+
+
+
+
+
+
+
+ account.partner.fiscalgr.inherit_1
+ res.partner
+
+ form
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/addons/account_greek_fiscal/account_vats.py b/addons/account_greek_fiscal/account_vats.py
new file mode 100644
index 00000000000..0c08bf09a48
--- /dev/null
+++ b/addons/account_greek_fiscal/account_vats.py
@@ -0,0 +1,52 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2009 P. Christeas. All Rights Reserved
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+import netsvc
+from osv import osv, fields
+
+class account_fiscalgr_tauth(osv.osv):
+ _name = 'account.fiscalgr.tauth'
+ _inherit = ''
+ _columns = {
+ 'name': fields.char('Name',size=120,required=True ),
+ 'country_id': fields.many2one('res.country', 'Country', required=True),
+ 'code': fields.char('Code',size=30),
+ 'descr': fields.text('Description',help="Any notes for this authority"),
+ }
+ _defaults = {
+ }
+
+account_fiscalgr_tauth()
+
+class account_fiscalgr_occup(osv.osv):
+ _name = 'account.fiscalgr.occup'
+ _inherit = ''
+ _columns = {
+ 'name': fields.char('Name',size=120,required=True ),
+ 'code': fields.char('Code',size=30),
+ 'descr': fields.text('Description'),
+ }
+ _defaults = {
+ }
+
+account_fiscalgr_occup()
+
+#eof
diff --git a/addons/account_greek_fiscal/partner.py b/addons/account_greek_fiscal/partner.py
new file mode 100644
index 00000000000..0e1f38bf762
--- /dev/null
+++ b/addons/account_greek_fiscal/partner.py
@@ -0,0 +1,37 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2009 P. Christeas. All Rights Reserved
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+import netsvc
+from osv import osv, fields
+
+class res_partner(osv.osv):
+ _inherit = 'res.partner'
+ _columns = {
+ 'vat_taxauth': fields.many2one('account.fiscalgr.tauth','Tax authority',
+ domain=[('country_id','=','country_id')],
+ help="Select the local tax service branch, where the partner is registered."),
+ 'vat_occup': fields.many2one('account.fiscalgr.occup','VAT Occupation',
+ help="Select the corresponding occupation of the partner, as registered with tax authorities."),
+ }
+
+res_partner()
+
+#eof