diff --git a/addons/account_greek_fiscal/__init__.py b/addons/account_greek_fiscal/__init__.py
index 0975d02fea4..b140bac1860 100644
--- a/addons/account_greek_fiscal/__init__.py
+++ b/addons/account_greek_fiscal/__init__.py
@@ -22,6 +22,7 @@
import fiscal_prints
import account_invoice_print
+import wizard
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account_greek_fiscal/__terp__.py b/addons/account_greek_fiscal/__terp__.py
index b699b56f97c..2330fb7427e 100644
--- a/addons/account_greek_fiscal/__terp__.py
+++ b/addons/account_greek_fiscal/__terp__.py
@@ -34,7 +34,7 @@
],
"demo_xml" : [
],
- "update_xml" : [ "account_fiscalgr_view.xml",
+ "update_xml" : [ "account_fiscalgr_view.xml", "account_invoice_report.xml"
],
"active": False,
"installable": True
diff --git a/addons/account_greek_fiscal/account_fiscalgr_view.xml b/addons/account_greek_fiscal/account_fiscalgr_view.xml
index 23679d4df36..c2894ffed07 100644
--- a/addons/account_greek_fiscal/account_fiscalgr_view.xml
+++ b/addons/account_greek_fiscal/account_fiscalgr_view.xml
@@ -28,5 +28,18 @@
+
+
+ account.invoice.fiscalgr.view.inherit_1
+ account.invoice
+
+ form
+
+
+
+
+
+
+
diff --git a/addons/account_greek_fiscal/account_invoice_print.py b/addons/account_greek_fiscal/account_invoice_print.py
index bf2754ef9cf..e41ca0bb799 100644
--- a/addons/account_greek_fiscal/account_invoice_print.py
+++ b/addons/account_greek_fiscal/account_invoice_print.py
@@ -27,6 +27,15 @@ class account_invoice(osv.osv):
_columns = {
# states={'open':[('readonly',False)]}
'fiscalgr_print': fields.many2one('account.fiscalgr.print','Fiscal print', readonly=True, ),
+ 'state': fields.selection([
+ ('draft','Draft'),
+ ('proforma','Pro-forma'),
+ ('proforma2','Pro-forma'),
+ ('open','Open'),
+ ('paid','Done'),
+ ('cancel','Canceled'),
+ ('printed','Printed'),
+ ],'State', select=True, readonly=True),
}
def copy(self, cr, uid, id, default=None, context=None):
if default is None:
@@ -42,6 +51,9 @@ class account_invoice(osv.osv):
if i['fiscalgr_print']:
raise osv.except_osv(_('Invalid action !'), _('Cannot cancel invoice(s) which are already printed !'))
return super(account_invoice,self).action_cancel(cr,uid,ids,args)
+
+ def action_fiscalgr_print(self, cr, uid, ids, *args):
+ raise osv.except_osv(_('Invalid action !'), _('Cannot print such an invoice !'))
account_invoice()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: