This commit makes two major things: 1. Move the product catalog from `sale` to `product`. It moves the product catalog's code from `sale` to `product` module in order to be able to use it in other modules. A mixin, `product.catalog.mixin`, was created for to make other models catalog compatible. 2. It enables the product's catalog in `purchase`. In `purchase`, the catalog differs a little bit from `sale`: - If Unit of Measure is enable, the UoM for each product will appear in the catalog; - If the product purchase's UoM or the purchase order line's UoM is different than the default product's UoM, the former one will be displayed (in bold so the user can know it's the UoM to refer); - When opening the product's catalog from a purchase order, the products will be filtered by the PO's vendor; - Some data from the vendor list will be used if appliant: the minimum quantity and the price; - If there is at least one product's packaging, a button will be displayed to increase the qty by the packaging's one. If a packaging is set on the purchase order line, this one will be used. task-3373589 Part-of: odoo/odoo#135502
55 lines
1.8 KiB
Python
55 lines
1.8 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Purchase',
|
|
'version': '1.2',
|
|
'category': 'Inventory/Purchase',
|
|
'sequence': 35,
|
|
'summary': 'Purchase orders, tenders and agreements',
|
|
'website': 'https://www.odoo.com/app/purchase',
|
|
'depends': ['account'],
|
|
'data': [
|
|
'security/purchase_security.xml',
|
|
'security/ir.model.access.csv',
|
|
'data/digest_data.xml',
|
|
'views/account_move_views.xml',
|
|
'data/purchase_data.xml',
|
|
'data/ir_cron_data.xml',
|
|
'report/purchase_reports.xml',
|
|
'views/purchase_views.xml',
|
|
'views/res_config_settings_views.xml',
|
|
'views/product_views.xml',
|
|
'views/res_partner_views.xml',
|
|
'report/purchase_bill_views.xml',
|
|
'report/purchase_report_views.xml',
|
|
'data/mail_templates.xml',
|
|
'data/mail_template_data.xml',
|
|
'views/portal_templates.xml',
|
|
'report/purchase_order_templates.xml',
|
|
'report/purchase_quotation_templates.xml',
|
|
'views/product_packaging_views.xml',
|
|
'views/analytic_account_views.xml',
|
|
],
|
|
'demo': [
|
|
'data/purchase_demo.xml',
|
|
],
|
|
'installable': True,
|
|
'application': True,
|
|
'assets': {
|
|
'web.assets_backend': [
|
|
'purchase/static/src/product_catalog/**/*',
|
|
'purchase/static/src/toaster_button/*',
|
|
'purchase/static/src/views/*.js',
|
|
'purchase/static/src/js/tours/purchase.js',
|
|
'purchase/static/src/js/tours/purchase_steps.js',
|
|
'purchase/static/src/**/*.xml',
|
|
],
|
|
'web.assets_frontend': [
|
|
'purchase/static/src/js/purchase_datetimepicker.js',
|
|
'purchase/static/src/js/purchase_portal_sidebar.js',
|
|
],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|