From effb84c3d38dd8ad7b337bb5f90a6617f1788be7 Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Fri, 7 May 2010 11:36:41 +0000
Subject: [PATCH] Trade Model Line should copy a use category from itself,
 otherwise the form is nonsense.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35102 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/TradeModelLine.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ERP5/Document/TradeModelLine.py b/product/ERP5/Document/TradeModelLine.py
index 20a6a0eca6..791547c9fc 100644
--- a/product/ERP5/Document/TradeModelLine.py
+++ b/product/ERP5/Document/TradeModelLine.py
@@ -249,6 +249,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
         'create_line': self.isCreateLine(),
         'trade_phase_list': self.getTradePhaseList(),
         'target_level': self.getTargetLevel(),
+        'use': self.getUse(),
       }
       common_params.update(property_dict)
 
-- 
2.30.9