Commit e1fade0f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make it possible to acquire more properties and categories from PaymentCondition in TradeCondition.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33022 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48ca3736
......@@ -2,6 +2,7 @@
#
# Copyright (c) 2002 Coramy SAS and Contributors. All Rights Reserved.
# Thierry Faucher <Thierry_Faucher@coramy.com>
# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -57,7 +58,8 @@ class TradeCondition:
'description' : 'The current payment condition.',
'type' : 'content',
'portal_type' : ('Payment Condition',),
'acquired_property_id' : ( 'payment_mode', 'payment_mode_title',
'acquired_property_id' : ( # from PropertySheet/PaymentCondition.py
'payment_mode', 'payment_mode_title',
'trade_date', 'trade_date_title',
'payment_term', 'payment_additional_term',
'payment_end_of_month', 'payment_date',
......@@ -68,6 +70,9 @@ class TradeCondition:
'destination_payment',
'destination_payment_value',
'destination_payment_title',
# from PropertySheet/BusinessPath.py
'lead_time', 'wait_time',
'end_of', 'end_of_value', 'end_of_title',
),
'mode' : 'w' },
)
......@@ -75,4 +80,3 @@ class TradeCondition:
_categories = ( 'group', 'activity', 'incoterm',
'price_currency', 'delivery_mode',
'trade_condition_type', )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment