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
d1c1906d
Commit
d1c1906d
authored
16 years ago
by
Olivier Laurent
Browse files
Options
Downloads
Plain Diff
merge
bzr revid: olt@tinyerp.com-20081009093220-5ciuuazny120c7ek
parents
a1358e72
f70443c1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
addons/account_report/account.py
+1
-1
1 addition, 1 deletion
addons/account_report/account.py
addons/base_module_record/base_module_record.py
+12
-2
12 additions, 2 deletions
addons/base_module_record/base_module_record.py
addons/process/process.py
+2
-2
2 additions, 2 deletions
addons/process/process.py
with
15 additions
and
5 deletions
addons/account_report/account.py
+
1
−
1
View file @
d1c1906d
...
...
@@ -125,7 +125,7 @@ class account_report(osv.osv):
'
type
'
:
fields
.
selection
([
(
'
fiscal
'
,
'
Fiscal statement
'
),
(
'
indicator
'
,
'
Indicator
'
),
(
'
view
'
,
'
View
'
)
(
'
view
'
,
'
View
'
)
,
(
'
other
'
,
'
Others
'
)],
'
Type
'
,
required
=
True
),
'
expression
'
:
fields
.
char
(
'
Expression
'
,
size
=
240
,
required
=
True
),
...
...
This diff is collapsed.
Click to expand it.
addons/base_module_record/base_module_record.py
+
12
−
2
View file @
d1c1906d
...
...
@@ -79,7 +79,11 @@ class base_module_record(osv.osv):
self
.
depends
[
res
[
0
][
'
module
'
]]
=
True
record_list
=
[
record
]
fields
=
self
.
pool
.
get
(
model
).
fields_get
(
cr
,
uid
)
# print "before>>>>",fields
# fields = self.pool.get(model).fields_view_get(cr, uid, context={})['fields']
# print "after>>>>",fields
for
key
,
val
in
data
.
items
():
print
key
,
val
if
not
(
val
or
(
fields
[
key
][
'
type
'
]
==
'
boolean
'
)):
continue
if
fields
[
key
][
'
type
'
]
in
(
'
integer
'
,
'
float
'
):
...
...
@@ -149,6 +153,7 @@ class base_module_record(osv.osv):
return
record_list
,
noupdate
def
_generate_object_xml
(
self
,
cr
,
uid
,
rec
,
recv
,
doc
,
result
=
None
):
print
"
_generate_object_xml>>>
"
,
rec
,
recv
,
doc
record_list
=
[]
noupdate
=
False
if
rec
[
4
]
==
'
write
'
:
...
...
@@ -172,7 +177,7 @@ class base_module_record(osv.osv):
# Create the minidom document
self
.
ids
=
{}
doc
=
minidom
.
Document
()
terp
=
doc
.
createElement
(
"
open
erp
"
)
terp
=
doc
.
createElement
(
"
t
erp
"
)
doc
.
appendChild
(
terp
)
for
rec
in
self
.
recording_data
:
if
rec
[
0
]
==
'
workflow
'
:
...
...
@@ -199,16 +204,21 @@ class base_module_record(osv.osv):
data
.
appendChild
(
res
)
elif
rec
[
0
]
==
'
assert
'
:
pass
return
doc
.
toprettyxml
(
indent
=
"
"
).
encode
(
'
utf8
'
)
res
=
doc
.
toprettyxml
(
indent
=
"
\t
"
)
return
doc
.
toprettyxml
(
indent
=
"
\t
"
).
encode
(
'
utf8
'
)
base_module_record
()
def
fnct_call
(
fnct
):
def
execute
(
*
args
,
**
argv
):
if
type
(
args
[
5
])
==
type
({}):
_old_args
=
args
[
5
].
copy
()
res
=
fnct
(
*
args
,
**
argv
)
pool
=
pooler
.
get_pool
(
args
[
0
])
mod
=
pool
.
get
(
'
ir.module.record
'
)
if
mod
and
mod
.
recording
:
if
args
[
4
]
not
in
(
'
default_get
'
,
'
read
'
,
'
fields_view_get
'
,
'
fields_get
'
,
'
search
'
,
'
search_count
'
,
'
name_search
'
,
'
name_get
'
,
'
get
'
,
'
request_get
'
,
'
get_sc
'
):
if
type
(
args
[
5
])
==
type
({}):
args
[
5
].
update
(
_old_args
)
mod
.
recording_data
.
append
((
'
query
'
,
args
,
argv
,
res
))
return
res
return
execute
...
...
This diff is collapsed.
Click to expand it.
addons/process/process.py
+
2
−
2
View file @
d1c1906d
...
...
@@ -232,8 +232,8 @@ class process_process(osv.osv):
# fix the height problem
miny
=
-
1
for
k
,
v
in
nodes
.
items
():
x
=
graph
[
k
][
'
y
'
]
y
=
graph
[
k
][
'
x
'
]
x
=
graph
[
k
][
'
x
'
]
y
=
graph
[
k
][
'
y
'
]
if
miny
==
-
1
:
miny
=
y
miny
=
min
(
y
,
miny
)
...
...
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