Commit a31f9dec authored by Jean-Paul Smets's avatar Jean-Paul Smets

addPermission changed to addPortalContent

fixed Solanes typo


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@404 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c6631fc
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -39,7 +39,7 @@ class Composant(Resource):
meta_type = 'CORAMY Composant'
portal_type = 'Composant'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -49,7 +49,7 @@ class Container(ERP5Container):
meta_type = 'CORAMY Container'
portal_type = 'Container'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -43,7 +43,7 @@ class ContainerLine(ERP5ContainerLine):
meta_type = 'CORAMY Container Line'
portal_type = 'Container Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -42,7 +42,7 @@ class DeliveryLine(ERP5DeliveryLine):
"""
meta_type = 'CORAMY Delivery Line'
portal_type = 'Delivery Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -39,7 +39,7 @@ class Discount(ERP5Discount):
meta_type = 'CORAMY Discount'
portal_type = 'Discount'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -43,7 +43,7 @@ class ElementTarif(ERP5MappedValue, XMLMatrix):
meta_type = 'CORAMY Element Tarif'
portal_type = 'Element Tarif'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -39,7 +39,7 @@ class Forme(Resource):
meta_type = 'CORAMY Forme'
portal_type = 'Forme'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
......@@ -38,7 +38,7 @@ class Gamme(Resource):
meta_type = 'CORAMY Gamme'
portal_type = 'Gamme'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
......@@ -44,7 +44,7 @@ class GrilleConsommation(XMLObject, XMLMatrix):
meta_type = 'CORAMY Grille Consommation'
portal_type = 'Grille Consommation'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -42,7 +42,7 @@ class InventoryLine(ERP5InventoryLine):
meta_type = 'CORAMY Inventory Line'
portal_type = 'Inventory Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -42,7 +42,7 @@ class Invoice(ERP5Invoice):
"""
meta_type = 'CORAMY Invoice'
portal_type = 'Invoice'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -42,7 +42,7 @@ class Item(ERP5Item):
meta_type = 'CORAMY Item'
portal_type = 'Item'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -37,7 +37,7 @@ class Machine(Item):
meta_type = 'CORAMY Machine'
portal_type = 'Machine'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -43,7 +43,7 @@ class Modele(Resource, XMLMatrix):
meta_type = 'CORAMY Modele'
portal_type = 'Modele'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -42,7 +42,7 @@ class ModeleMachine(Resource, Folder):
meta_type = 'CORAMY Modele Machine'
portal_type = 'Modele Machine'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
......@@ -39,7 +39,7 @@ class Morceau(XMLObject):
meta_type = 'CORAMY Morceau'
portal_type = 'Morceau'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -49,7 +49,7 @@ class Nomenclature(Transformation):
meta_type = 'CORAMY Nomenclature'
portal_type = 'Nomenclature'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -43,7 +43,7 @@ class Operation(Resource, XMLMatrix):
meta_type = 'CORAMY Operation'
portal_type = 'Operation'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
......@@ -37,7 +37,7 @@ class OptionMachine(Variation):
meta_type = 'CORAMY Option Machine'
portal_type = 'Option Machine'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -42,7 +42,7 @@ class Order(ERP5Order):
meta_type = 'CORAMY Order'
portal_type = 'Order'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -43,7 +43,7 @@ class OrderLine(ERP5OrderLine):
meta_type = 'CORAMY Order Line'
portal_type = 'Order Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -36,7 +36,7 @@ class PackingList(ERP5PackingList):
# CMF Type Definition
meta_type = 'CORAMY Packing List'
portal_type = 'Packing List'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -39,7 +39,7 @@ class PaymentCondition(ERP5PaymentCondition):
meta_type = 'CORAMY Payment Condition'
portal_type = 'Payment Condition'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -45,7 +45,7 @@ class ProductionOrder(ERP5Order):
meta_type = 'CORAMY Production Order'
portal_type = 'Production Order'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -42,7 +42,7 @@ class ProductionReport(ERP5ProductionReport):
# CMF Type Definition
meta_type = 'CORAMY Production Report'
portal_type = 'Production Report'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -43,7 +43,7 @@ class ProductionReportCell(ERP5ProductionReportCell):
meta_type = 'CORAMY Production Report Cell'
portal_type = 'Production Report Cell'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
isMovement = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -41,7 +41,7 @@ class ProductionReportLine(ERP5ProductionReportLine):
meta_type = 'CORAMY Production Report Line'
portal_type = 'Production Report Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -44,7 +44,7 @@ class SampleOrderLine(OrderLine, ElementTarif):
meta_type = 'CORAMY Sample Order Line'
portal_type = 'Sample Order Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -45,7 +45,7 @@ class SamplesOrder(ERP5Order):
meta_type = 'CORAMY Samples Order'
portal_type = 'Samples Order'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -42,7 +42,7 @@ class SamplesPackingList(ERP5PackingList):
"""
meta_type = 'CORAMY Samples Packing List'
portal_type = 'Samples Packing List'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -39,7 +39,7 @@ class Tissu(Resource):
meta_type = 'CORAMY Tissu'
portal_type = 'Tissu'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -41,7 +41,7 @@ class TradeCondition(ERP5TradeCondition):
meta_type = 'CORAMY Trade Condition'
portal_type = 'Trade Condition'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -51,7 +51,7 @@ class Transformation(ERP5Transformation):
meta_type = 'CORAMY Transformation'
portal_type = 'Transformation'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -46,7 +46,7 @@ class TransformedResource(ERP5TransformedResource):
meta_type = 'CORAMY Transformed Resource'
portal_type = 'Transformed Resource'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -41,7 +41,7 @@ class VarianteComposant(Image, Variation):
meta_type = 'CORAMY Variante Composant'
portal_type = 'Variante Composant'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
......@@ -37,7 +37,7 @@ class VarianteGamme(Variation):
meta_type = 'CORAMY Variante Gamme'
portal_type = 'Variante Gamme'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -40,7 +40,7 @@ class VarianteModele(Image, Variation):
meta_type = 'CORAMY Variante Modele'
portal_type = 'Variante Modele'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -38,7 +38,7 @@ class VarianteMorphologique(Variation):
meta_type = 'CORAMY Variante Morphologique'
portal_type = 'Variante Morphologique'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -39,7 +39,7 @@ class VarianteTissu(Image, Variation):
meta_type = 'CORAMY Variante Tissu'
portal_type = 'Variante Tissu'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -48,7 +48,7 @@ class VariatedReference(XMLObject, XMLMatrix):
meta_type = 'CORAMY Variated Reference'
portal_type = 'Variated Reference'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
......@@ -42,7 +42,7 @@ class Vetement(Resource, XMLMatrix):
meta_type = 'CORAMY Vetement'
portal_type = 'Vetement'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -64,7 +64,7 @@ class Account(MetaNode, XMLObject):
meta_type = 'ERP5 Account'
portal_type = 'Account'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -40,7 +40,7 @@ class AccountingTransactionLine(DeliveryLine):
meta_type = 'ERP5 Accounting Transaction Line'
portal_type = 'Accounting Transaction Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
......@@ -55,7 +55,7 @@ class AmountFilter(SetMappedValue, Amount):
meta_type = 'ERP5 Amount Filter'
portal_type = 'Amount Filter'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -56,7 +56,7 @@ class AppliedRule(XMLObject):
# CMF Type Definition
meta_type = 'ERP5 Applied Rule'
portal_type = 'Applied Rule'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......@@ -301,3 +301,5 @@ An ERP5 Rule..."""
# Psyco optimizations
psyco.bind(getMovementIndex)
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -36,7 +36,7 @@ class Assignment(Path):
# CMF Type Definition
meta_type = 'ERP5 Assignment'
portal_type = 'Assignment'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -50,7 +50,7 @@ class BankAccount(Coordinate, Base):
meta_type = 'ERP5 BankAccount'
portal_type = 'BankAccount'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -254,7 +254,7 @@ class BusinessTemplate(XMLObject):
meta_type = 'ERP5 Business Template'
portal_type = 'Business Template'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -40,7 +40,7 @@ class ComplementPredicate(Base, Predicate):
"""
meta_type = 'ERP5 Complement Predicate'
portal_type = 'Complement Predicate'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -51,7 +51,7 @@ class Container(Movement, XMLObject):
meta_type = 'ERP5 Container'
portal_type = 'Container'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -44,7 +44,7 @@ class ContainerCell(DeliveryCell):
meta_type = 'ERP5 Container Cell'
portal_type = 'Container Cell'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
isCell = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -48,7 +48,7 @@ class ContainerLine(DeliveryLine):
meta_type = 'ERP5 Container Line'
portal_type = 'Container Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -48,7 +48,7 @@ class DeliveryCell(SetMappedValue, Movement):
meta_type = 'ERP5 Delivery Cell'
portal_type = 'Delivery Cell'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
isCell = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -40,7 +40,7 @@ class DependentCapacity(Capacity):
meta_type = 'ERP5 Dependent Capacity'
portal_type = 'Dependent Capacity'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
......@@ -39,7 +39,7 @@ class Device(Item):
meta_type = 'ERP5 Device'
portal_type = 'Device'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -39,7 +39,7 @@ class Discount(XMLObject):
meta_type = 'ERP5 Discount'
portal_type = 'Discount'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -41,7 +41,7 @@ class Domain(PredicateGroup):
"""
meta_type = 'ERP5 Domain'
portal_type = 'Domain'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 0
isRADContent = 0
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -49,7 +49,7 @@ class GeographicAddress(Coordinate, Base):
"""
meta_type = 'ERP5 Geographic Address'
portal_type = 'Address'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
......@@ -40,7 +40,7 @@ class IndependentCapacity(Capacity):
meta_type = 'ERP5 Independent Capacity'
portal_type = 'Independent Capacity'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -35,7 +35,7 @@ class Invoice(AccountingTransaction):
# CMF Type Definition
meta_type = 'ERP5 Invoice'
portal_type = 'Invoice'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -44,7 +44,7 @@ class InvoiceCell(DeliveryCell):
meta_type = 'ERP5 Invoice Cell'
portal_type = 'Invoice Cell'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
isCell = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -48,7 +48,7 @@ class InvoiceLine(DeliveryLine):
meta_type = 'ERP5 Invoice Line'
portal_type = 'Invoice Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -40,7 +40,7 @@ class Item(XMLObject, Amount):
meta_type = 'ERP5 Item'
portal_type = 'Item'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -30,6 +30,6 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
class Machine:
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
pass
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -46,7 +46,7 @@ class MailMessage(XMLObject, Event, MailMessage):
meta_type = 'ERP5 Mail Message'
portal_type = 'Mail Message'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -52,7 +52,7 @@ class MappedValue(Domain, Amount):
"""
meta_type = 'ERP5 Mapped Value'
portal_type = 'Mapped Value'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -41,7 +41,7 @@ class MetaNode(Node, CoreMetaNode):
meta_type = 'ERP5 MetaNode'
portal_type = 'MetaNode'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -39,7 +39,7 @@ class MetaResource(Resource, CoreMetaResource):
meta_type = 'ERP5 MetaResource'
portal_type = 'MetaResource'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -188,7 +188,7 @@ class Movement(XMLObject, Amount):
"""
meta_type = 'ERP5 Movement'
portal_type = 'Movement'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
isMovement = 1
......@@ -424,4 +424,3 @@ a service in a public administration)."""
security.declareProtected(Permissions.View, 'isSimulated')
def isSimulated(self):
return len(self.getDeliveryRelatedValueList()) > 0 or len(self.getOrderRelatedValueList()) > 0
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -40,7 +40,7 @@ class MultivaluePredicate(ValuePredicate):
"""
meta_type = 'ERP5 Multivalue Predicate'
portal_type = 'Multivalue Predicate'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -45,7 +45,7 @@ class OrderLine(DeliveryLine):
meta_type = 'ERP5 Order Line'
portal_type = 'Order Line'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -52,7 +52,7 @@ class Organisation(Entity, MetaNode, XMLObject):
meta_type = 'ERP5 Organisation'
portal_type = 'Organisation'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solane <jp@nexedi.com>
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -61,7 +61,7 @@ class PackingList(Delivery):
# CMF Type Definition
meta_type = 'ERP5 Packing List'
portal_type = 'Packing List'
add_permission = Permissions.AddERP5Content
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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