Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
afac_account
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_account
Commits
ec39413a
Commit
ec39413a
authored
7 months ago
by
Thibaud - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[UPD] Added account_invoice_report fields
parent
37c7346d
No related branches found
No related tags found
1 merge request
!2
[UPD] Added account_invoice_report fields
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/__init__.py
+1
-0
1 addition, 0 deletions
models/__init__.py
models/account_invoice_report.py
+55
-0
55 additions, 0 deletions
models/account_invoice_report.py
with
56 additions
and
0 deletions
models/__init__.py
+
1
−
0
View file @
ec39413a
...
...
@@ -4,3 +4,4 @@
from
.
import
account_journal
from
.
import
account_move
from
.
import
res_company
from
.
import
account_invoice_report
This diff is collapsed.
Click to expand it.
models/account_invoice_report.py
0 → 100644
+
55
−
0
View file @
ec39413a
# Copyright 2024- Le Filament (https://le-filament.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from
odoo
import
fields
,
models
,
api
class
AccountInvoiceReport
(
models
.
Model
):
_inherit
=
"
account.invoice.report
"
membership_state
=
fields
.
Char
(
string
=
"
Statut d
'
adhésion actuel
"
)
region_id
=
fields
.
Many2one
(
"
res.region
"
,
string
=
"
Région implantation
"
)
legal_status_id
=
fields
.
Many2one
(
"
afac.partner.legal
"
,
string
=
"
Statut juridique
"
)
legal_status_detail_id
=
fields
.
Many2one
(
"
afac.partner.legal.detail
"
,
string
=
"
Statut juridique détaillé
"
)
# ------------------------------------------------------
# Fields declaration
# ------------------------------------------------------
# ------------------------------------------------------
# SQL Constraints
# ------------------------------------------------------
# ------------------------------------------------------
# Default methods
# ------------------------------------------------------
# ------------------------------------------------------
# Computed fields / Search Fields
# ------------------------------------------------------
# ------------------------------------------------------
# Onchange / Constraints
# ------------------------------------------------------
# ------------------------------------------------------
# CRUD methods (ORM overrides)
# ------------------------------------------------------
# ------------------------------------------------------
# Actions
# ------------------------------------------------------
# ------------------------------------------------------
# Business methods
# ------------------------------------------------------
def
_select
(
self
):
return
(
super
(
AccountInvoiceReport
,
self
).
_select
()
+
"""
,
partner.membership_state as membership_state,
partner.region_id as region_id,
partner.legal_status_id as legal_status_id,
partner.legal_status_detail_id as legal_status_detail_id
"""
)
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