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
e49d0cd7
Commit
e49d0cd7
authored
9 years ago
by
Fabien Pinckaers
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] Typo
parent
adbfed5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addons/account/models/account_payment.py
+1
-1
1 addition, 1 deletion
addons/account/models/account_payment.py
addons/account/wizard/account_validate_account_move.py
+1
-1
1 addition, 1 deletion
addons/account/wizard/account_validate_account_move.py
with
2 additions
and
2 deletions
addons/account/models/account_payment.py
+
1
−
1
View file @
e49d0cd7
...
...
@@ -326,7 +326,7 @@ class account_payment(models.Model):
raise
UserError
(
_
(
"
Only a draft payment can be posted. Trying to post a payment in state %s.
"
)
%
rec
.
state
)
if
any
(
inv
.
state
!=
'
open
'
for
inv
in
rec
.
invoice_ids
):
raise
ValidationError
(
_
(
"
The payment cannot be processed because
an
invoice
of the payment
is not open
!
"
))
raise
ValidationError
(
_
(
"
The payment cannot be processed because
the
invoice is not open!
"
))
# Use the right sequence to set the name
if
rec
.
payment_type
==
'
transfer
'
:
...
...
This diff is collapsed.
Click to expand it.
addons/account/wizard/account_validate_account_move.py
+
1
−
1
View file @
e49d0cd7
...
...
@@ -15,6 +15,6 @@ class ValidateAccountMove(models.TransientModel):
if
move
.
state
==
'
draft
'
:
move_to_post
+=
move
if
not
move_to_post
:
raise
UserError
(
_
(
'
There is no
account move entrie
s in draft state to post.
'
))
raise
UserError
(
_
(
'
There is no
journal item
s in draft state to post.
'
))
move_to_post
.
post
()
return
{
'
type
'
:
'
ir.actions.act_window_close
'
}
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