Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Accounting Reports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Accounting Reports
Commits
6648418880a7
Commit
6648418880a7
authored
5 months ago
by
Etienne Ferriere
Browse files
Options
Downloads
Patches
Plain Diff
Fix unit test on mass validation of monthly statements for a bug linked to the
execution date.
parent
3ba3d0ad4050
No related branches found
Branches containing commit
Tags
11.0.1.7.0
1 merge request
!33
Fix unit test on mass validation of monthly statements for a bug linked to the
Pipeline
#112007
passed
4 months ago
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+2
-0
2 additions, 0 deletions
NEWS.rst
tests/test_account_report.py
+8
-0
8 additions, 0 deletions
tests/test_account_report.py
with
10 additions
and
0 deletions
NEWS.rst
+
2
−
0
View file @
66484188
...
...
@@ -2,6 +2,8 @@
==========
* Enable mass validation of monthly statements.
* Fix unit test on mass validation of monthly statements for a bug linked to
the execution date.
11.0.1.6.1
==========
...
...
This diff is collapsed.
Click to expand it.
tests/test_account_report.py
+
8
−
0
View file @
66484188
...
...
@@ -240,6 +240,14 @@
|
self
.
env
.
ref
(
"
base.res_partner_2
"
)
|
self
.
env
.
ref
(
"
base.res_partner_3
"
)
):
self
.
env
.
cr
.
execute
(
"""
DELETE FROM account_invoice CASCADE
WHERE partner_id = %(partner_id)s;
DELETE FROM account_move CASCADE
WHERE partner_id = %(partner_id)s;
"""
,
{
"
partner_id
"
:
partner
.
id
},
)
invoice
=
self
.
_makeInvoice
(
partner
)
self
.
_validateInvoices
(
invoice
)
line_to_pay
=
invoice
.
move_id
.
line_ids
.
filtered
(
...
...
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