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#19366
99 lines
3.6 KiB
Python
99 lines
3.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Inventory',
|
|
'version': '1.1',
|
|
'summary': 'Manage your stock and logistics activities',
|
|
'description': "",
|
|
'website': 'https://www.odoo.com/page/warehouse',
|
|
'depends': ['product', 'barcodes', 'digest'],
|
|
'category': 'Inventory/Inventory',
|
|
'sequence': 25,
|
|
'demo': [
|
|
'data/stock_demo_pre.xml',
|
|
'data/procurement_demo.xml',
|
|
'data/stock_demo.xml',
|
|
'data/stock_orderpoint_demo.xml',
|
|
'data/stock_demo2.xml',
|
|
'data/stock_location_demo_cpu1.xml',
|
|
'data/stock_location_demo_cpu3.xml',
|
|
],
|
|
'data': [
|
|
'security/stock_security.xml',
|
|
'security/ir.model.access.csv',
|
|
'data/digest_data.xml',
|
|
'data/mail_templates.xml',
|
|
'views/stock_menu_views.xml',
|
|
'data/stock_traceability_report_data.xml',
|
|
'data/procurement_data.xml',
|
|
|
|
'report/report_stock_forecasted.xml',
|
|
'report/report_stock_quantity.xml',
|
|
'report/stock_report_views.xml',
|
|
'report/report_package_barcode.xml',
|
|
'report/report_lot_barcode.xml',
|
|
'report/report_location_barcode.xml',
|
|
'report/report_stockpicking_operations.xml',
|
|
'report/report_deliveryslip.xml',
|
|
'report/report_stockinventory.xml',
|
|
'report/report_stock_rule.xml',
|
|
'report/package_templates.xml',
|
|
'report/picking_templates.xml',
|
|
'report/product_templates.xml',
|
|
'report/product_packaging.xml',
|
|
'data/mail_template_data.xml',
|
|
|
|
'wizard/stock_assign_serial_views.xml',
|
|
'wizard/stock_change_product_qty_views.xml',
|
|
'wizard/stock_picking_return_views.xml',
|
|
'wizard/stock_scheduler_compute_views.xml',
|
|
'wizard/stock_immediate_transfer_views.xml',
|
|
'wizard/stock_backorder_confirmation_views.xml',
|
|
'wizard/stock_quantity_history.xml',
|
|
'wizard/stock_rules_report_views.xml',
|
|
'wizard/stock_warn_insufficient_qty_views.xml',
|
|
'wizard/product_replenish_views.xml',
|
|
'wizard/stock_track_confirmation_views.xml',
|
|
'wizard/stock_orderpoint_snooze_views.xml',
|
|
'wizard/stock_package_destination_views.xml',
|
|
|
|
'views/res_partner_views.xml',
|
|
'views/product_strategy_views.xml',
|
|
'views/product_views.xml',
|
|
'views/stock_production_lot_views.xml',
|
|
'views/stock_picking_views.xml',
|
|
'views/stock_scrap_views.xml',
|
|
'views/stock_inventory_views.xml',
|
|
'views/stock_quant_views.xml',
|
|
'views/stock_location_views.xml',
|
|
'views/stock_warehouse_views.xml',
|
|
'views/stock_move_line_views.xml',
|
|
'views/stock_move_views.xml',
|
|
'views/stock_orderpoint_views.xml',
|
|
'views/res_config_settings_views.xml',
|
|
'views/report_stock_traceability.xml',
|
|
'views/stock_template.xml',
|
|
'views/stock_rule_views.xml',
|
|
'views/stock_package_level_views.xml',
|
|
|
|
'data/default_barcode_patterns.xml',
|
|
'data/stock_data.xml',
|
|
'data/stock_sequence_data.xml',
|
|
],
|
|
'qweb': [
|
|
'static/src/xml/inventory_report.xml',
|
|
'static/src/xml/inventory_lines.xml',
|
|
'static/src/xml/popover_widget.xml',
|
|
'static/src/xml/forecast_widget.xml',
|
|
'static/src/xml/report_stock_forecasted.xml',
|
|
'static/src/xml/stock_orderpoint.xml',
|
|
'static/src/xml/stock_traceability_report_backend.xml',
|
|
],
|
|
'installable': True,
|
|
'application': True,
|
|
'auto_install': False,
|
|
'pre_init_hook': 'pre_init_hook',
|
|
'post_init_hook': '_assign_default_mail_template_picking_id',
|
|
}
|