本文整理匯總了Python中Products.ERP5.Document.Movement.Movement.getDivergenceList方法的典型用法代碼示例。如果您正苦於以下問題:Python Movement.getDivergenceList方法的具體用法?Python Movement.getDivergenceList怎麽用?Python Movement.getDivergenceList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Products.ERP5.Document.Movement.Movement
的用法示例。
在下文中一共展示了Movement.getDivergenceList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: getDivergenceList
# 需要導入模塊: from Products.ERP5.Document.Movement import Movement [as 別名]
# 或者: from Products.ERP5.Document.Movement.Movement import getDivergenceList [as 別名]
def getDivergenceList(self):
"""Returns a list of messages that contains the divergences for that line
and the cells it may contain.
"""
divergence_list = []
if self.hasCellContent():
for cell in self.contentValues(filter={
'portal_type': self.getPortalDeliveryMovementTypeList()}):
divergence_list.extend(cell.getDivergenceList())
return divergence_list
else:
return Movement.getDivergenceList(self)
示例2: getDivergenceList
# 需要導入模塊: from Products.ERP5.Document.Movement import Movement [as 別名]
# 或者: from Products.ERP5.Document.Movement.Movement import getDivergenceList [as 別名]
def getDivergenceList(self):
"""Returns a list of messages that contains the divergences for that line
and the cells it may contain.
"""
if self.hasCellContent():
divergence_list = []
for cell in self.objectValues(portal_type=self.getPortalObject()
.getPortalDeliveryMovementTypeList()):
divergence_list += cell.getDivergenceList()
return divergence_list
else:
return Movement.getDivergenceList(self)