From 19d40de712a6f726732a4448af34833102a4e88c Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Tue, 31 May 2011 15:26:45 +0200
Subject: [PATCH] Discard disabled field

Honour 'enabled' value of field as this feature is configurable
---
 product/ERP5OOo/FormPrintout.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5OOo/FormPrintout.py b/product/ERP5OOo/FormPrintout.py
index b57e108ac3..01a9c0c3cf 100644
--- a/product/ERP5OOo/FormPrintout.py
+++ b/product/ERP5OOo/FormPrintout.py
@@ -1085,7 +1085,7 @@ class ODGStrategy(ODFStrategy):
 
   def _replaceXmlByForm(self, element_tree, form, here, extra_context,
                         ooo_builder, iteration_index=0):
-    field_list = form.get_fields(include_disabled=1)
+    field_list = form.get_fields()
     for (count, field) in enumerate(field_list):
       text_xpath = '//draw:frame[@draw:name="%s"]' % field.id
       node_list = element_tree.xpath(text_xpath, namespaces=element_tree.nsmap)
-- 
2.30.9