Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cgscop_adhesion
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
Hervé Silvant - CGScop
cgscop_adhesion
Commits
73b19909
Commit
73b19909
authored
5 years ago
by
Rémi - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
Déplacement champs
parent
cf32b68c
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
__manifest__.py
+1
-0
1 addition, 0 deletions
__manifest__.py
models/res_partner.py
+11
-0
11 additions, 0 deletions
models/res_partner.py
security/ir.model.access.csv
+3
-0
3 additions, 0 deletions
security/ir.model.access.csv
views/res_partner.xml
+37
-1
37 additions, 1 deletion
views/res_partner.xml
with
52 additions
and
1 deletion
__manifest__.py
+
1
−
0
View file @
73b19909
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
"
cgscop_partner
"
,
"
cgscop_partner
"
,
],
],
"
data
"
:
[
"
data
"
:
[
"
security/ir.model.access.csv
"
,
"
views/res_partner.xml
"
,
"
views/res_partner.xml
"
,
]
]
}
}
This diff is collapsed.
Click to expand it.
models/res_partner.py
+
11
−
0
View file @
73b19909
...
@@ -17,6 +17,10 @@ class ScopPartner(models.Model):
...
@@ -17,6 +17,10 @@ class ScopPartner(models.Model):
(
100
,
100
)],
(
100
,
100
)],
string
=
'
Probabilité de réalisation
'
)
string
=
'
Probabilité de réalisation
'
)
date_realisation
=
fields
.
Date
(
"
Date prévue de réalisation
"
)
date_realisation
=
fields
.
Date
(
"
Date prévue de réalisation
"
)
prescriber_canal_id
=
fields
.
Many2one
(
'
res.partner.prescriber.canal
'
,
string
=
'
Canal de Prescription
'
,
on_delete
=
'
restrict
'
)
date_first_rdv
=
fields
.
Date
(
"
Date du 1er rdv
"
)
date_first_rdv
=
fields
.
Date
(
"
Date du 1er rdv
"
)
date_send_guide
=
fields
.
Date
(
"
Date d’envoi du guide de faisabilité
"
)
date_send_guide
=
fields
.
Date
(
"
Date d’envoi du guide de faisabilité
"
)
...
@@ -36,3 +40,10 @@ class ScopPartner(models.Model):
...
@@ -36,3 +40,10 @@ class ScopPartner(models.Model):
recipient_file_fse
=
fields
.
Many2one
(
recipient_file_fse
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
"
Destinataire du dossier FSE
"
)
string
=
"
Destinataire du dossier FSE
"
)
class
ResPartnerPrescriberCanal
(
models
.
Model
):
_name
=
"
res.partner.prescriber.canal
"
_description
=
"
Canal de Prescription
"
name
=
fields
.
Char
(
'
Canal de Prescription
'
)
This diff is collapsed.
Click to expand it.
security/ir.model.access.csv
0 → 100644
+
3
−
0
View file @
73b19909
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_res_partner_prescriber_canal,access_res_partner_prescriber_canal,model_res_partner_prescriber_canal,base.group_user,1,0,0,0
admin_res_partner_prescriber_canal,admin_res_partner_prescriber_canal,model_res_partner_prescriber_canal,cgscop_partner.group_cg_list_modif,1,1,1,1
This diff is collapsed.
Click to expand it.
views/res_partner.xml
+
37
−
1
View file @
73b19909
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
<field
name=
"inherit_id"
ref=
"cgscop_partner.view_partner_cooperative_form"
/>
<field
name=
"inherit_id"
ref=
"cgscop_partner.view_partner_cooperative_form"
/>
<field
name=
"priority"
eval=
"1"
/>
<field
name=
"priority"
eval=
"1"
/>
<field
name=
"arch"
type=
"xml"
>
<field
name=
"arch"
type=
"xml"
>
<field
name=
"prescriber_canal_id"
position=
"replace"
/>
<page
name=
'contacts'
position=
"before"
>
<page
name=
'contacts'
position=
"before"
>
<page
name=
"adhesion_processus1"
string=
"Processus d'Adhésion"
attrs=
"{'invisible': [('project_status','=','6_suivi')]}"
>
<page
name=
"adhesion_processus1"
string=
"Processus d'Adhésion"
attrs=
"{'invisible': [('project_status','=','6_suivi')]}"
>
<group
col=
"3"
>
<group
col=
"3"
>
...
@@ -67,6 +66,8 @@
...
@@ -67,6 +66,8 @@
<field
name=
"percent_realisation"
widget=
"priority"
/>
<field
name=
"percent_realisation"
widget=
"priority"
/>
<field
name=
"date_realisation"
/>
<field
name=
"date_realisation"
/>
<field
name=
"prescriber_canal_id"
widget=
"res_partner_many2one"
options=
"{'no_create': True}"
/>
<field
name=
"prescriber_canal_id"
widget=
"res_partner_many2one"
options=
"{'no_create': True}"
/>
<field
name=
"creation_delegate_id"
widget=
"res_partner_many2one"
attrs=
"{'required':[('project_status','in',('3_accompagnement','4_adhesion', '5_cg', '6_suivi'))]}"
options=
"{'no_create': True}"
domain=
"[('ur_id', '=', ur_id)]"
/>
</group>
</group>
<group
string=
"Dossier EU"
>
<group
string=
"Dossier EU"
>
<field
name=
"file_fse_open"
widget=
"boolean_toggle"
/>
<field
name=
"file_fse_open"
widget=
"boolean_toggle"
/>
...
@@ -97,5 +98,40 @@
...
@@ -97,5 +98,40 @@
</xpath>
</xpath>
</field>
</field>
</record>
</record>
<record
id=
"view_partner_prospect_adhesion_tree"
model=
"ir.ui.view"
>
<field
name=
"name"
>
prospect.adhesion.tree
</field>
<field
name=
"model"
>
res.partner
</field>
<field
name=
"inherit_id"
ref=
"cgscop_partner.view_partner_prospect_tree"
/>
<field
name=
"arch"
type=
"xml"
>
<field
name=
"project_status"
position=
"after"
>
<field
name=
"percent_realisation"
widget=
"priority"
/>
</field>
</field>
</record>
<!-- Prescriber Canal -->
<record
id=
"view_res_partner_prescriber_canal_tree"
model=
"ir.ui.view"
>
<field
name=
"name"
>
res.partner.prescriber.canal.tree
</field>
<field
name=
"model"
>
res.partner.prescriber.canal
</field>
<field
name=
"arch"
type=
"xml"
>
<tree
string=
"Canaux de Prescription"
>
<field
name=
"name"
/>
</tree>
</field>
</record>
<record
id=
"action_view_res_partner_prescriber_canal_tree"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Canaux de Prescription
</field>
<field
name=
"res_model"
>
res.partner.prescriber.canal
</field>
<field
name=
"view_mode"
>
tree
</field>
<field
name=
"help"
>
Affiche et gère les Canaux de Prescription
</field>
</record>
<menuitem
id=
"menu_res_partner_prescriber_canal"
parent=
"cgscop_partner.menu_scop"
action=
"action_view_res_partner_prescriber_canal_tree"
sequence=
"70"
/>
</data>
</data>
</odoo>
</odoo>
\ No newline at end of file
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