Commit Graph

24 Commits

Author SHA1 Message Date
Nicolas Mac Rouillon
177be5f6bc [FIX] stock_orderpoint_generator: fix a bug when iterate the data with call create (#466) 2018-08-27 09:38:21 +02:00
oca-travis
6389666c8e [UPD] Update stock_orderpoint_generator.pot 2018-06-23 22:51:37 +00:00
OCA Transbot
b664706fe5 OCA Transbot updated translations from Transifex 2018-03-03 16:33:06 +01:00
OCA Transbot
7dba4aea21 OCA Transbot updated translations from Transifex 2017-12-02 14:42:08 +01:00
OCA Transbot
b1a40262d0 OCA Transbot updated translations from Transifex 2017-10-28 11:44:56 +02:00
OCA Transbot
4cd8025ab1 OCA Transbot updated translations from Transifex 2017-09-02 11:53:35 +02:00
OCA Transbot
5f703fffdf OCA Transbot updated translations from Transifex 2017-07-29 12:44:15 +02:00
mreficent
41dce6b3ef [FIX] stock_orderpoint_generator (fields don't exist) 2017-07-26 13:35:32 +02:00
OCA Transbot
614d9e6243 OCA Transbot updated translations from Transifex 2017-07-22 12:38:10 +02:00
OCA Transbot
18dd9bb3e4 OCA Transbot updated translations from Transifex 2017-07-01 12:34:09 +02:00
OCA Transbot
e753e12b25 OCA Transbot updated translations from Transifex 2017-06-03 11:53:09 +02:00
Guewen Baconnier
c92dc140ed [IMP] stock_orderpoint_generator: Add Automatic Reordering Rules (#258)
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.
2017-05-29 22:45:25 +02:00
OCA Transbot
5d1a986909 OCA Transbot updated translations from Transifex 2017-05-13 11:34:04 +02:00
OCA Transbot
26c3658c63 OCA Transbot updated translations from Transifex 2017-05-02 03:09:00 +02:00
OCA Transbot
ddbd5aa61e OCA Transbot updated translations from Transifex 2017-03-11 03:37:03 -05:00
OCA Transbot
d56e6fc037 OCA Transbot updated translations from Transifex 2017-02-25 03:28:02 -05:00
OCA Transbot
dd7c6e6520 OCA Transbot updated translations from Transifex 2017-02-18 03:34:20 -05:00
OCA Transbot
31c0d7dc56 OCA Transbot updated translations from Transifex 2017-01-14 03:37:35 -05:00
OCA Transbot
128394d333 OCA Transbot updated translations from Transifex 2017-01-07 02:38:54 -05:00
OCA Transbot
adffe0b987 OCA Transbot updated translations from Transifex 2016-12-31 04:38:53 -05:00
OCA Transbot
708ed25931 OCA Transbot updated translations from Transifex 2016-12-24 01:33:54 -05:00
OCA Transbot
99ad531e8f OCA Transbot updated translations from Transifex 2016-12-03 01:01:15 -05:00
OCA Transbot
e274813cdc OCA Transbot updated translations from Transifex 2016-11-29 13:36:37 -05:00
Cyril Gaudin
d2c017c535 stock_orderpoint_generator: Migration V9 2016-06-08 16:30:57 +02:00