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 ...@@ -32,12 +32,11 @@ from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Document.Predicate import Predicate 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 An AccountingRuleCell object allows to add SaleInvoiceTransactionLines into a Matrix
TransactionLines into a Matrix
""" """
# Default Properties # Default Properties
...@@ -45,13 +44,16 @@ class AccountingRuleCell(Predicate, AccountingTransaction): ...@@ -45,13 +44,16 @@ class AccountingRuleCell(Predicate, AccountingTransaction):
, PropertySheet.XMLObject , PropertySheet.XMLObject
, PropertySheet.CategoryCore , PropertySheet.CategoryCore
, PropertySheet.DublinCore , PropertySheet.DublinCore
, PropertySheet.Delivery
, PropertySheet.Task , PropertySheet.Task
, PropertySheet.Arrow , PropertySheet.Arrow
, PropertySheet.Movement , PropertySheet.Movement
, PropertySheet.Delivery
, PropertySheet.Amount , PropertySheet.Amount
, PropertySheet.Reference , PropertySheet.Reference
, PropertySheet.PaymentCondition , PropertySheet.PaymentCondition
, PropertySheet.ValueAddedTax
, PropertySheet.EcoTax
, PropertySheet.CopyrightTax
) )
# CMF Type Definition # CMF Type Definition
...@@ -65,4 +67,3 @@ class AccountingRuleCell(Predicate, AccountingTransaction): ...@@ -65,4 +67,3 @@ class AccountingRuleCell(Predicate, AccountingTransaction):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View) 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