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
60 lines
2.1 KiB
Python
60 lines
2.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
|
|
{
|
|
'name': 'Manufacturing',
|
|
'version': '2.0',
|
|
'website': 'https://www.odoo.com/page/manufacturing',
|
|
'category': 'Manufacturing/Manufacturing',
|
|
'sequence': 55,
|
|
'summary': 'Manufacturing Orders & BOMs',
|
|
'depends': ['product', 'stock', 'resource'],
|
|
'description': "",
|
|
'data': [
|
|
'security/mrp_security.xml',
|
|
'security/ir.model.access.csv',
|
|
'data/digest_data.xml',
|
|
'data/mail_templates.xml',
|
|
'data/mrp_data.xml',
|
|
'wizard/change_production_qty_views.xml',
|
|
'wizard/mrp_workcenter_block_view.xml',
|
|
'wizard/stock_warn_insufficient_qty_views.xml',
|
|
'wizard/mrp_production_backorder.xml',
|
|
'wizard/mrp_consumption_warning_views.xml',
|
|
'wizard/mrp_immediate_production_views.xml',
|
|
'views/mrp_views_menus.xml',
|
|
'views/stock_move_views.xml',
|
|
'views/mrp_workorder_views.xml',
|
|
'views/mrp_workcenter_views.xml',
|
|
'views/mrp_bom_views.xml',
|
|
'views/mrp_production_views.xml',
|
|
'views/mrp_routing_views.xml',
|
|
'views/product_views.xml',
|
|
'views/stock_orderpoint_views.xml',
|
|
'views/stock_warehouse_views.xml',
|
|
'views/stock_picking_views.xml',
|
|
'views/mrp_unbuild_views.xml',
|
|
'views/ir_attachment_view.xml',
|
|
'views/res_config_settings_views.xml',
|
|
'views/assets.xml',
|
|
'views/stock_scrap_views.xml',
|
|
'report/report_deliveryslip.xml',
|
|
'report/mrp_report_views_main.xml',
|
|
'report/mrp_report_bom_structure.xml',
|
|
'report/mrp_production_templates.xml',
|
|
'report/report_stock_forecasted.xml',
|
|
'report/report_stock_rule.xml',
|
|
'report/mrp_zebra_production_templates.xml',
|
|
],
|
|
'qweb': ['static/src/xml/*.xml'],
|
|
'demo': [
|
|
'data/mrp_demo.xml',
|
|
],
|
|
'test': [],
|
|
'application': True,
|
|
'pre_init_hook': '_pre_init_mrp',
|
|
'post_init_hook': '_create_warehouse_data',
|
|
'uninstall_hook': 'uninstall_hook',
|
|
}
|