Commit 8756eca3 authored by Julien Muchembled's avatar Julien Muchembled

Fix import of document classes when portal types as classes are used

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39850 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 133375ea
......@@ -30,14 +30,23 @@ from Products.CMFCore.utils import getToolByName
from Products.ERP5Type import Permissions, PropertySheet, Constraint, interfaces
from Products.ERP5.Document.Delivery import Delivery
from Products.ERP5.Document.InventoryLine import InventoryLine
from Products.ERP5Type.Document.DeliveryCell import DeliveryCell
from Products.ERP5.Document.Movement import Movement
from Products.ERP5.Document.Container import Container
from Products.ERP5.Document.AccountingTransaction import AccountingTransaction
from AccessControl.PermissionRole import PermissionRole
from Products.ERP5Type.Utils import convertToMixedCase, convertToUpperCase
from Products.ERP5Banking.BaobabMixin import BaobabMixin
from Products.ERP5Type.Document.Currency import Currency
# Import classes to monkey-patch
# XXX All patches must be moved in a Business Template !!
try:
from Products.ERP5Type import dynamic
except ImportError:
from Products.ERP5Type.Document.Currency import Currency
from Products.ERP5Type.Document.DeliveryCell import DeliveryCell
else:
from Products.ERP5.Document.Currency import Currency
from Products.ERP5.Document.DeliveryCell import DeliveryCell
class BankingOperation(BaobabMixin, AccountingTransaction):
......
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