Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions crm_construction_architect/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@
{
'name': "OCA Construction: Architect CRM",
'summary': """Indicate the architect of a lead/opportunity.""",
'description': """
This module allows you to:
- Identify the architect of a lead/opportunity.
- Filter/group/search opportunities by architect.
""",
'author': "Mathias Colpaert, Odoo Community Association (OCA)",
"license": "AGPL-3",
'category': "construction",
'version': '8.0.0.1.0',
'version': '10.0.0.1.0',
'license': 'AGPL-3',
'depends': ['crm', 'base_construction_architect'],
'data': ['views.xml'],
'installable': False,
'installable': True,
}
2 changes: 1 addition & 1 deletion crm_construction_architect/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from openerp import models, fields
from odoo import models, fields


class Lead(models.Model):
Expand Down
8 changes: 4 additions & 4 deletions crm_construction_architect/views.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<odoo>
<data>
<!-- Lead form view -->
<record model="ir.ui.view" id="construction_architect_sale_lead_form">
Expand All @@ -19,7 +19,7 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.view_crm_case_leads_filter" />
<field name="arch" type="xml">
<xpath expr="//filter[@string='Source']" position="after">
<xpath expr="//filter[@name='groupby_source']" position="after">
<filter string="Architect" context="{'group_by':'architect'}"/>
</xpath>
</field>
Expand Down Expand Up @@ -55,10 +55,10 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.view_crm_case_opportunities_filter" />
<field name="arch" type="xml">
<xpath expr="//filter[@string='Source']" position="after">
<xpath expr="//filter[@name='stage']" position="after">
<filter string="Architect" context="{'group_by':'architect'}"/>
</xpath>
</field>
</record>
</data>
</openerp>
</odoo>