Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cgscop_riga_import
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
Confédération Générale des SCOP
cgscop_riga_import
Commits
16c803c0
Commit
16c803c0
authored
4 years ago
by
Benjamin - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[update] delete scop_liasse_fiscale.py
parent
79230eed
Branches
12.0
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/__init__.py
+0
-1
0 additions, 1 deletion
models/__init__.py
models/scop_liasse_fiscale.py
+0
-31
0 additions, 31 deletions
models/scop_liasse_fiscale.py
with
0 additions
and
32 deletions
models/__init__.py
+
0
−
1
View file @
16c803c0
...
...
@@ -5,5 +5,4 @@ from . import riga_files_matching
from
.
import
riga_ftp_channel
from
.
import
riga_lookup_table
from
.
import
riga_odoo_import
from
.
import
scop_liasse_fiscale
from
.
import
scop_questionnaire
This diff is collapsed.
Click to expand it.
models/scop_liasse_fiscale.py
deleted
100644 → 0
+
0
−
31
View file @
79230eed
# © 2019 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from
odoo
import
models
,
fields
,
api
class
ScopQuestionnaireImport
(
models
.
Model
):
_inherit
=
"
scop.liasse.fiscale
"
year_riga
=
fields
.
Char
(
"
Année Riga
"
)
type_id
=
fields
.
Many2one
(
compute
=
"
_compute_fields
"
,
store
=
True
)
year
=
fields
.
Char
(
compute
=
"
_compute_fields
"
,
store
=
True
)
# ------------------------------------------------------
# Fonctions compute
# ------------------------------------------------------
@api.depends
(
'
year_riga
'
)
@api.multi
def
_compute_fields
(
self
):
for
liasse
in
self
:
if
liasse
.
year_riga
!=
'
14443
'
:
year
=
liasse
.
env
[
'
riga.lookup.table
'
].
search
([
[
'
id_riga
'
,
'
=
'
,
liasse
.
year_riga
]])
liasse
.
year
=
year
.
name
liasse
.
type_id
=
liasse
.
env
.
ref
(
'
cgscop_liste_ministere.liasse_type_2
'
).
id
else
:
if
liasse
.
partner_id
.
date_1st_sign
:
liasse
.
year
=
liasse
.
partner_id
.
date_1st_sign
.
year
liasse
.
type_id
=
liasse
.
env
.
ref
(
'
cgscop_liste_ministere.liasse_type_1
'
).
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