Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
afac_membership
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
AFAC
afac_membership
Commits
383f0189
Commit
383f0189
authored
1 year ago
by
Benjamin - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] error invoice access right
parent
a3eb4572
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/res_partner.py
+1
-1
1 addition, 1 deletion
models/res_partner.py
with
1 addition
and
1 deletion
models/res_partner.py
+
1
−
1
View file @
383f0189
...
@@ -103,7 +103,7 @@ class ResPartner(models.Model):
...
@@ -103,7 +103,7 @@ class ResPartner(models.Model):
@api.depends
(
"
member_lines
"
)
@api.depends
(
"
member_lines
"
)
def
_compute_last_membership_invoice_date
(
self
):
def
_compute_last_membership_invoice_date
(
self
):
for
partner
in
self
:
for
partner
in
self
:
invoices
=
partner
.
member_lines
.
filtered
(
invoices
=
partner
.
sudo
().
member_lines
.
filtered
(
lambda
line
:
line
.
account_invoice_id
lambda
line
:
line
.
account_invoice_id
and
line
.
account_invoice_id
.
state
==
"
posted
"
and
line
.
account_invoice_id
.
state
==
"
posted
"
).
mapped
(
"
date
"
)
).
mapped
(
"
date
"
)
...
...
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