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
9cac77e9
Commit
9cac77e9
authored
4 years ago
by
Juliana
Browse files
Options
Downloads
Patches
Plain Diff
Modification ordre datas dans manifest
parent
d249849f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
__manifest__.py
+4
-4
4 additions, 4 deletions
__manifest__.py
models/project.py
+20
-0
20 additions, 0 deletions
models/project.py
views/project_views.xml
+1
-1
1 addition, 1 deletion
views/project_views.xml
with
25 additions
and
5 deletions
__manifest__.py
+
4
−
4
View file @
9cac77e9
...
...
@@ -8,14 +8,14 @@
'
depends
'
:
[
'
project
'
,
'
project_status
'
],
'
data
'
:
[
'
security/ir.model.access.csv
'
,
'
views/project_assets.xml
'
,
'
views/project_views.xml
'
,
'
views/project_task_views.xml
'
,
'
views/res_partner_views.xml
'
,
'
datas/adefpat.type.convention.csv
'
,
'
datas/adefpat.project.statut.csv
'
,
'
datas/project_status_datas.xml
'
,
'
datas/project_task_type_datas.xml
'
'
views/project_assets.xml
'
,
'
views/project_views.xml
'
,
'
views/project_task_views.xml
'
,
'
views/res_partner_views.xml
'
,
],
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
models/project.py
+
20
−
0
View file @
9cac77e9
...
...
@@ -4,6 +4,9 @@
from
datetime
import
datetime
,
timedelta
from
odoo
import
models
,
fields
,
api
import
csv
import
base64
class
Project
(
models
.
Model
):
_inherit
=
"
project.project
"
...
...
@@ -347,6 +350,23 @@ class Project(models.Model):
# writer.writerow([membre.lastname, membre.email])
# with open('export.csv', 'r', encoding="utf-8") as f2:
# data = str.encode(f2.read(), 'utf-8')
# csv_data = base64.encodestring(data)
# filename = 'export.csv'
# return {
# 'type': 'ir.actions.act_url',
# 'url':
# '/web/export_journal?format=%s&journal=%s&nom_outil_compta=%s'
# % (self.export_format, self.journal, nom_outil_compta) +
# '&date_start=%s&date_end=%s'
# % (self.date_start, self.date_end),
# 'target': 'new',
# }
# return {
# 'type': 'ir.actions.act_url',
# 'url': "web/content/&id=" + str(self.id) +
# "&filename=export.csv&field=csv_data&download=true&filename=" + filename,
# 'target': 'self',
# }
class
AdefpatTypeConvention
(
models
.
Model
):
...
...
This diff is collapsed.
Click to expand it.
views/project_views.xml
+
1
−
1
View file @
9cac77e9
...
...
@@ -55,7 +55,7 @@
<field
name=
"arch"
type=
"xml"
>
<header
position=
"inside"
>
<button
string=
"Valider pour CA"
type=
"object"
class=
"btn-primary"
name=
"validate_ca"
attrs=
"{'invisible': ['|', ('num_dossier', '!=', False), ('project_status', '!=', %(adefpat_project.project_status_pret_pour_ca)d)]}"
/>
<!--
<button string="Exporter membres du GAP" type="object" class="btn-primary" name="export_gap"/>-->
<!--
<button string="Exporter membres du GAP" type="object" class="btn-primary" name="export_gap"/>
-->
</header>
<h1
position=
"after"
>
<h3>
...
...
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