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
b1a3afab
Commit
b1a3afab
authored
2 years ago
by
zyzcss
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] l10n_cn: fix def _count_attachments
Part-of: odoo/odoo#109274
parent
8aa4732c
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/l10n_cn/models/account_move.py
+2
-2
2 additions, 2 deletions
addons/l10n_cn/models/account_move.py
with
2 additions
and
2 deletions
addons/l10n_cn/models/account_move.py
+
2
−
2
View file @
b1a3afab
...
...
@@ -37,7 +37,7 @@ class AccountMove(models.Model):
statement_ids
=
self
.
line_ids
.
mapped
(
'
statement_id
'
)
payment_ids
=
self
.
line_ids
.
mapped
(
'
payment_id
'
)
if
statement_ids
:
domains
.
append
([(
'
res_model
'
,
'
=
'
,
'
account.bank.statement
'
),
(
'
res_id
'
,
'
in
'
,
statement_ids
)])
domains
.
append
([(
'
res_model
'
,
'
=
'
,
'
account.bank.statement
'
),
(
'
res_id
'
,
'
in
'
,
statement_ids
.
ids
)])
if
payment_ids
:
domains
.
append
([(
'
res_model
'
,
'
=
'
,
'
account.payment
'
),
(
'
res_id
'
,
'
in
'
,
payment_ids
)])
domains
.
append
([(
'
res_model
'
,
'
=
'
,
'
account.payment
'
),
(
'
res_id
'
,
'
in
'
,
payment_ids
.
ids
)])
return
self
.
env
[
'
ir.attachment
'
].
search_count
(
expression
.
OR
(
domains
))
This diff is collapsed.
Click to expand it.
CoopBot
@coopbot
mentioned in commit
cabc004a
·
2 years ago
mentioned in commit
cabc004a
mentioned in commit cabc004a4f94025aab84ccdbae43e0c05cea0e13
Toggle commit list
CoopBot
@coopbot
mentioned in commit
c9a9c4cf
·
2 years ago
mentioned in commit
c9a9c4cf
mentioned in commit c9a9c4cfdeb2a4bd7a9da897998dea8f6da90469
Toggle commit list
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