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
ed211770
Commit
ed211770
authored
10 years ago
by
hiekmann
Committed by
Xavier Morel
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] payment_ogone: typos in comments
closes #4166
parent
058eaf01
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/payment_ogone/models/ogone.py
+2
-2
2 additions, 2 deletions
addons/payment_ogone/models/ogone.py
with
2 additions
and
2 deletions
addons/payment_ogone/models/ogone.py
+
2
−
2
View file @
ed211770
...
@@ -224,10 +224,10 @@ class PaymentTxOgone(osv.Model):
...
@@ -224,10 +224,10 @@ class PaymentTxOgone(osv.Model):
def
_ogone_form_get_invalid_parameters
(
self
,
cr
,
uid
,
tx
,
data
,
context
=
None
):
def
_ogone_form_get_invalid_parameters
(
self
,
cr
,
uid
,
tx
,
data
,
context
=
None
):
invalid_parameters
=
[]
invalid_parameters
=
[]
# TODO: txn_id: shou
d
l be false at draft, set afterwards, and verified with txn details
# TODO: txn_id: shoul
d
be false at draft, set afterwards, and verified with txn details
if
tx
.
acquirer_reference
and
data
.
get
(
'
PAYID
'
)
!=
tx
.
acquirer_reference
:
if
tx
.
acquirer_reference
and
data
.
get
(
'
PAYID
'
)
!=
tx
.
acquirer_reference
:
invalid_parameters
.
append
((
'
PAYID
'
,
data
.
get
(
'
PAYID
'
),
tx
.
acquirer_reference
))
invalid_parameters
.
append
((
'
PAYID
'
,
data
.
get
(
'
PAYID
'
),
tx
.
acquirer_reference
))
# check what is b
uyed
# check what is b
ought
if
float_compare
(
float
(
data
.
get
(
'
amount
'
,
'
0.0
'
)),
tx
.
amount
,
2
)
!=
0
:
if
float_compare
(
float
(
data
.
get
(
'
amount
'
,
'
0.0
'
)),
tx
.
amount
,
2
)
!=
0
:
invalid_parameters
.
append
((
'
amount
'
,
data
.
get
(
'
amount
'
),
'
%.2f
'
%
tx
.
amount
))
invalid_parameters
.
append
((
'
amount
'
,
data
.
get
(
'
amount
'
),
'
%.2f
'
%
tx
.
amount
))
if
data
.
get
(
'
currency
'
)
!=
tx
.
currency_id
.
name
:
if
data
.
get
(
'
currency
'
)
!=
tx
.
currency_id
.
name
:
...
...
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