Skip to content
Extraits de code Groupes Projets
Valider 7dfd6dde rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[WIP] update views

parent 22cdb6ee
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -3,9 +3,9 @@
:alt: License: AGPL-3
=================================
Mutuelle des Scop et des Scic - crm
=================================
===================================
Mutuelle des Scop et des Scic - CRM
===================================
Description
===========
......
{
"name": "Mutuelle des Scop et des Scic - crm",
"name": "Mutuelle des Scop et des Scic - CRM",
"summary": "Description du module",
"author": "Le Filament",
"website": "https://le-filament.com",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"depends": ["mucs_partner", "crm"],
"depends": ["crm", "mucs_partner"],
"data": [
"security/ir.model.access.csv",
# datas
......
......@@ -7,9 +7,12 @@ from odoo import models, fields
class Lead(models.Model):
_inherit = "crm.lead"
mucs_type = fields.Selection(string="Proposition / Avenant",
selection=[('proposition', 'Proposition'),
('avenant', 'Avenant')],
required=True)
mucs_type = fields.Selection(
selection=[
('proposition', 'Proposition'),
('avenant', 'Avenant')
],
string="Proposition / Avenant",
required=True
)
meeting_ids = fields.One2many(related="partner_id.meeting_ids")
......@@ -11,7 +11,7 @@
<field name="arch" type="xml">
<xpath expr="//sheet//h1" position="after">
<group>
<field name="mucs_type"/>
<field name="mucs_type" widget="radio" />
</group>
</xpath>
<xpath expr="//sheet//label[@for='expected_revenue']/.."
......@@ -45,9 +45,11 @@
<field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
<field name="arch" type="xml">
<xpath expr="//kanban//progressbar" position="replace"/>
<xpath expr="//kanban//field[@name='expected_revenue']"
position="attributes">
<attribute name="invisible">True</attribute>
<xpath
expr="//kanban//field[@name='expected_revenue']"
position="attributes"
>
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
......@@ -58,8 +60,10 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/>
<field name="arch" type="xml">
<xpath expr="//list//field[@name='expected_revenue']"
position="attributes">
<xpath
expr="//list//field[@name='expected_revenue']"
position="attributes"
>
<attribute name="optional">hide</attribute>
</xpath>
<xpath expr="//list//field[@name='probability']"
......@@ -79,15 +83,17 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.quick_create_opportunity_form"/>
<field name="arch" type="xml">
<xpath expr="//form//field[@name='expected_revenue']"
position="attributes">
<attribute name="invisible">True</attribute>
<xpath
expr="//form//field[@name='expected_revenue']"
position="attributes"
>
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//form//field[@name='expected_revenue']"
position="after">
<group>
<field name="mucs_type"/>
</group>
<xpath
expr="//form//field[@name='name']"
position="after"
>
<field name="mucs_type" widget="radio" />
</xpath>
</field>
</record>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter