mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
And improve the wording * Add an option to automatically generate rules When a product variant is created with a (or several) rule template(s), it automatically generates (on the fly) the corresponding rule(s). When a rule template is modified, it automatically updates the existing rules of the linked products (it uses the mechanism in place, disable the old and create a fresh one). The latter update is done by a cron because it might take a long time to update all the products reordering rules. * Add documentation * Copy orderpoint views to orderpoint templates Unfortunately we cannot rely on the possibility to copy a view with "inherit_id" + "mode=primary" in Odoo 9.0 in this use case (precisely with a model that is a "copy by prototype"). The explanation: We "copy by prototype" the model "stock.warehouse.orderpoint" to a new "stock.warehouse.orderpoint.template" model (with both _inherit and different _name). Before this commit, we were reusing the stock.warehouse.orderpoint's views, just making the changes needed for the templates. Thing is: when a third (unrelated) addon adds a column on the model, the ORM doesn't add the column in the stock.warehouse.orderpoint.template model. So the templates' views complains about this unexisting field. Therefore, copy-pasting the view ensure that changes on 'stock.warehouse.orderpoint' does not have any side effect on the templates. From Odoo 10.0, the "copy by prototype" reports the changes made on the "prototype" model to the "copy" so we should be able to revert to the "inherit_id" + "mode=primary" views.
24 lines
708 B
Python
24 lines
708 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2012-2016 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
{
|
|
'name': 'Order point generator',
|
|
'summary': 'Mass configuration of stock order points',
|
|
'version': '9.0.1.1.0',
|
|
'author': "Camptocamp, Odoo Community Association (OCA)",
|
|
'category': 'Warehouse',
|
|
'license': 'AGPL-3',
|
|
'website': "http://www.camptocamp.com",
|
|
'depends': ['stock'],
|
|
'data': [
|
|
'views/orderpoint_template_views.xml',
|
|
'views/product_views.xml',
|
|
"wizard/orderpoint_generator_view.xml",
|
|
"data/ir_cron.xml",
|
|
"security/ir.model.access.csv",
|
|
],
|
|
'installable': True,
|
|
'auto_install': False,
|
|
}
|