Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
erp5
Commits
26d5ef8d
Commit
26d5ef8d
authored
Nov 25, 2011
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
override some method so that predicate's criterion are not defined on
paysheet model cells when editing them though UI
parent
f50553c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
product/ERP5/Document/PaySheetModelCell.py
product/ERP5/Document/PaySheetModelCell.py
+9
-2
No files found.
product/ERP5/Document/PaySheetModelCell.py
View file @
26d5ef8d
...
...
@@ -28,9 +28,9 @@
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
from
Products.ERP5.Document.TradeModelCell
import
TradeModelCell
import
zope.interfac
e
from
Products.ERP5Type.Core.Predicate
import
Predicat
e
class
PaySheetModelCell
(
TradeModelCell
):
"""Trade Model Line
...
...
@@ -49,3 +49,10 @@ class PaySheetModelCell(TradeModelCell):
if
not
self
.
hasCellContent
(
base_id
=
'variation'
):
result
=
self
.
getVariationRangeBaseCategoryList
()
# The current resource variation
return
result
+
[
'trade_phase'
,
'quantity_unit'
]
# Redefine some methods as we do not want to turn cells into predicate
def
edit
(
self
,
**
kw
):
return
super
(
Predicate
,
self
).
edit
(
**
kw
)
def
setPredicateCategoryList
(
self
,
*
args
,
**
kw
):
pass
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment