Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
e97975a0
Commit
e97975a0
authored
15 years ago
by
Harshad Modi
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] document_ics : remove print statement
bzr revid: hmo@tinyerp.com-20091224115407-9w50kv34bjgpsdid
parent
e01bcf36
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/document_ics/document_ics.py
+3
-5
3 additions, 5 deletions
addons/document_ics/document_ics.py
with
3 additions
and
5 deletions
addons/document_ics/document_ics.py
+
3
−
5
View file @
e97975a0
...
...
@@ -128,7 +128,7 @@ class document_directory_content(osv.osv):
if
node
.
extension
!=
'
.ics
'
:
return
super
(
document_directory_content
,
self
).
process_write
(
cr
,
uid
,
node
,
data
,
context
)
import
vobject
parsedCal
=
vobject
.
readOne
(
data
)
parsedCal
=
vobject
.
readOne
(
data
)
fields
=
{}
funcs
=
{}
fexprs
=
{}
...
...
@@ -226,13 +226,11 @@ class document_directory_content(osv.osv):
if
isinstance
(
id
,
list
):
if
len
(
id
)
>
1
:
raise
Exception
(
"
Multiple matches found for ICS
"
)
if
id
:
print
"
writting at %s#%d:
"
%
(
cmodel
,
id
[
0
]),
result
if
id
:
fobj
.
write
(
cr
,
uid
,
id
,
result
,
context
=
context
)
else
:
r
=
idomain
.
copy
()
r
.
update
(
result
)
print
"
creating at %s#%d:
"
%
(
cmodel
,
id
),
result
r
.
update
(
result
)
fobj
.
create
(
cr
,
uid
,
r
,
context
=
context
)
return
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment