Commit 588e4387 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Let's be a subclass of Invoice rather than simply AccountingTransaction.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2043 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dbdec138
......@@ -32,12 +32,11 @@ from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Document.Predicate import Predicate
from Products.ERP5.Document.AccountingTransaction import AccountingTransaction
from Products.ERP5.Document.Invoice import Invoice
class AccountingRuleCell(Predicate, AccountingTransaction):
class AccountingRuleCell(Predicate, Invoice):
"""
A AccountingRuleCell object allows to add
TransactionLines into a Matrix
An AccountingRuleCell object allows to add SaleInvoiceTransactionLines into a Matrix
"""
# Default Properties
......@@ -45,13 +44,16 @@ class AccountingRuleCell(Predicate, AccountingTransaction):
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.Delivery
, PropertySheet.Task
, PropertySheet.Arrow
, PropertySheet.Movement
, PropertySheet.Delivery
, PropertySheet.Amount
, PropertySheet.Reference
, PropertySheet.PaymentCondition
, PropertySheet.ValueAddedTax
, PropertySheet.EcoTax
, PropertySheet.CopyrightTax
)
# CMF Type Definition
......@@ -65,4 +67,3 @@ class AccountingRuleCell(Predicate, AccountingTransaction):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
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