Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
adefpat_project
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
Adefpat
adefpat_project
Commits
c7e42507
Commit
c7e42507
authored
4 years ago
by
Juliana
Browse files
Options
Downloads
Patches
Plain Diff
Ajout coche consultants + Modif date sur projet
parent
55084c92
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/project.py
+5
-4
5 additions, 4 deletions
models/project.py
views/project_views.xml
+9
-5
9 additions, 5 deletions
views/project_views.xml
with
14 additions
and
9 deletions
models/project.py
+
5
−
4
View file @
c7e42507
...
...
@@ -89,7 +89,7 @@ class Project(models.Model):
(
'
date_end_validity
'
,
'
=
'
,
False
)],
string
=
"
Type de convention de financement
"
)
date_ca
=
fields
.
Date
(
"
Date de CA pressenti
"
)
date_
start
=
fields
.
Date
(
"
Date de démarrage prévisionnel
"
)
date_
demarrage
=
fields
.
Date
(
"
Date de démarrage prévisionnel
"
)
# list_photos_ids = fields.One2many('images')
# documents_ids = fields.One2many('ir.attachment', "Documents")
...
...
@@ -191,7 +191,9 @@ class Project(models.Model):
column1
=
'
consultant_id
'
,
column2
=
'
project_id
'
,
string
=
"
Consultants
"
)
date_selection
=
fields
.
Date
(
"
Date de sélection
"
)
date_notification
=
fields
.
Date
(
"
Date de notification
"
)
# Champs étape "Instruction" => Onglet GAP
elu_referent_id
=
fields
.
Many2one
(
'
res.partner
'
,
...
...
@@ -351,8 +353,7 @@ class AdefpatConsultantsProjets(models.Model):
date_cdc
=
fields
.
Date
(
"
Date d
'
envoi du CDC
"
)
cout_journée
=
fields
.
Float
(
"
Coût journée
"
)
# document_ids = fields.One2many('ir.attachment', string="Documents Consultants")
date_selection
=
fields
.
Date
(
"
Date de sélection
"
)
date_notification
=
fields
.
Date
(
"
Date de notification
"
)
is_selected
=
fields
.
Boolean
(
"
Est sélectionné
"
)
class
AdefpatPorteursProjets
(
models
.
Model
):
...
...
This diff is collapsed.
Click to expand it.
views/project_views.xml
+
9
−
5
View file @
c7e42507
...
...
@@ -122,7 +122,7 @@
</group>
<group>
<field
name=
"date_ca"
/>
<field
name=
"date_
start
"
/>
<field
name=
"date_
demarrage
"
/>
</group>
</group>
...
...
@@ -171,6 +171,12 @@
</group>
</page>
<page
name=
"consultation"
string=
"Consultation"
>
<group>
<group>
<field
name=
"date_selection"
/>
<field
name=
"date_notification"
/>
</group>
</group>
<field
name=
"consulant_ids"
widget=
"one2many"
options=
"{'no_create': True}"
>
<tree
string=
"Consultants"
editable=
"top"
>
<field
name=
"partner_id"
options=
"{'no_create': True}"
/>
...
...
@@ -181,8 +187,7 @@
<field
name=
"email"
widget=
"email"
/>
<field
name=
"date_cdc"
/>
<field
name=
"cout_journée"
/>
<field
name=
"date_selection"
/>
<field
name=
"date_notification"
/>
<field
name=
"is_selected"
/>
</tree>
<form
string=
"Consultants"
>
<sheet>
...
...
@@ -198,8 +203,7 @@
<field
name=
"reference"
/>
<field
name=
"date_cdc"
/>
<field
name=
"cout_journée"
/>
<field
name=
"date_selection"
/>
<field
name=
"date_notification"
/>
<field
name=
"is_selected"
/>
</group>
</group>
</sheet>
...
...
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