Files
odoo_source/addons/website_crm_partner_assign/__manifest__.py
T
Thibault Delavallée 80e1987869 [MOV][IMP] crm(_partner_assign): reorganize qweb / jinja templates used for mailing
PURPOSE

Clean organization of templates in odoo apps: mail.template records in data,
qweb templates (views) used directly in code, notably using post with view.
Purpose is to ease future improvements in posting based on templates.

SPECIFICATIONS

  * move those templates in their own file to ease their discovering and
    maintenance;
  * put them into data (as those are not views even if it contains qweb)
  * guidelines are now :

    -> Qweb templates should be in data/mail_templates.xml;
    -> mail.template records should be in data/mail_template_data.xml;

  * put their declaration in no update when not done if template has no
    technical code or complex dependency on underlying code;
  * move found mail data (mail.message.subtype or mail.activity.type) records
    in a mail_data file that should contain only "core" records linked to mail;

LINKS

Task ID-2375767
COM PR odoo/odoo#61814
ENT PR odoo/enterprise#14775
UPG PR odoo/upgrade#1936
2020-11-25 12:31:14 +00:00

45 lines
1.6 KiB
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Resellers',
'category': 'Website/Website',
'summary': 'Publish your resellers/partners and forward leads to them',
'version': '1.0',
'description': """
This module allows to publish your resellers/partners on your website and to forward incoming leads/opportunities to them.
**Publish a partner**
To publish a partner, set a *Level* in their contact form (in the Partner Assignment section) and click the *Publish* button.
**Forward leads**
Forwarding leads can be done for one or several leads at a time. The action is available in the *Assigned Partner* section of the lead/opportunity form view and in the *Action* menu of the list view.
The automatic assignment is figured from the weight of partner levels and the geolocalization. Partners get leads that are located around them.
""",
'depends': ['base_geolocalize', 'crm', 'account',
'website_partner', 'website_google_map', 'portal'],
'data': [
'data/crm_tag_data.xml',
'data/mail_template_data.xml',
'security/ir.model.access.csv',
'security/ir_rule.xml',
'wizard/crm_forward_to_partner_view.xml',
'views/res_partner_views.xml',
'views/crm_lead_views.xml',
'views/website_crm_partner_assign_templates.xml',
'report/crm_partner_report_view.xml',
],
'demo': [
'data/res_partner_demo.xml',
'data/crm_lead_demo.xml',
'data/res_partner_grade_demo.xml',
],
'qweb': ['static/src/xml/*.xml'],
'installable': True,
}