Commit Graph
140 Commits
Author SHA1 Message Date
Thierry Bruyere 40a403c77b Add a global method to set default warehouse
issue8396
review277371003
2019-09-07 23:13:33 +02:00
Cédric Krier 81bf997722 Switch from OR-ed to AND-ed domain for search_rec_name of location
issue8054
2019-03-30 20:39:05 +01:00
Cédric Krier c017f27b31 Use Or-ed domain for search_rec_name of location
issue8054
review259191003
2019-03-28 19:42:15 +01:00
Cédric Krier a67d1952a7 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
David Harper 93f3022413 Add help text
issue6401
review34861002
2018-12-04 12:25:45 +01:00
Cédric Krier f7414a8674 Replace self by cls in classmethod
issue7630
review74341002
2018-09-19 00:15:59 +02:00
Cédric Krier a04143efc6 Improve ModelStorage.copy
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default

issue5576
issue7648
review72291002
2018-09-01 01:02:04 +02:00
Cédric Krier 973dd92330 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier 5061618d5b Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:55 +02:00
Cédric Krier 85048e3cca Use tree mixin
issue7383
review50291002
2018-05-12 00:51:33 +02:00
Cédric Krier df8c27aba6 Do not browse records at a datetime before they were created
If user tries to get the cost price of a product before it was created, it
should return None instead of raising an access error.

issue7334
review49281002
2018-04-20 18:36:25 +02:00
Sergi Almacellas Abellana 2c840d7490 Use deactivable mixin
issue4341
review38401002
2018-03-26 14:15:09 +02:00
Cédric Krier 181156bf66 Prevent to compare datetime.date to NoneType
This may happen if stock_date_end is not set in the context.
2018-03-09 19:41:13 +01:00
Cédric Krier 1e617e284b Improve location browsing
- Add childs field on the form view
- Duplicate "Locations Quantity" into tree and list
- Allow to search on quantity and forecast_quantity on location

issue7151
review43141002
2018-03-09 19:17:58 +01:00
Cédric Krier f632a9cc67 Remove product_ids from products_by_location for grouping_filter
issue7141
review44651002
2018-02-28 18:25:18 +01:00
Cédric Krier 55082d76a6 Allow to group per product columns to compute quantity
This is needed to add the quantity relates on the template form.

issue7068
review40031002
2018-02-11 14:38:33 +01:00
Cédric Krier 2ad008f490 Add flat children option on location
issue6563
review36391002
2017-09-28 23:42:22 +02:00
Cédric Krier 47a9c4dfb1 Call check_inactive with only inactive locations
issue6590
2017-07-19 00:20:59 +02:00
Cédric Krier 696222c774 Use next built-in instead of next method
The next method has been renamed into __next__ in Python 3 (see PEP3114).
2017-07-12 22:30:02 +02:00
Cédric Krier 4356a58019 Allow to deactivate only empty locations
issue6590
review37491002
2017-07-12 19:55:02 +02:00
Cédric Krier a81448cf9a Check location type against moves from all companies
issue6592
review38411002
2017-06-29 23:13:16 +02:00
Cédric Krier f7e1f3b316 Catch KeyError on ModelData.get_id in default method
Since changeset 685f2d888dca, the default methods are always called in
__register__ when the XML files are not yet loaded.

issue6409
review34041002
2017-04-01 10:40:06 +02:00
Cédric Krier bcb3833f32 Remove Property fields
issue2349
review38271002
2017-04-01 00:38:23 +02:00
Sergi Almacellas Abellana b29f75748f Use sequence_ordered
issue5105
2016-09-13 14:10:03 +02:00
Sergi Almacellas Abellana b3f7f3ddda Forecast date should return a date instead of a datetime
issue5690
review32271002
2016-07-08 10:20:07 +02:00
Sergi Almacellas Abellana 82be44e56e Fix antipatern of create/write in loop
issue3516
review6891002
2016-06-23 09:40:00 +02:00
Cédric Krier a6225e3fc6 Add lead time and transit location for internal shipments between warehouses
issue5587
review25331002
2016-06-21 10:36:30 +02:00
Sergi Almacellas Abellana 7851e5aed6 Use context model in quantities computation actions
issue5541
review20181002
2016-06-15 10:45:54 +02:00
Cédric Krier 45ccdc9060 Search also for inactive warehouse in get_warehouse
issue5580
review27301003
2016-05-30 22:22:19 +02:00
Nicolas Évrard 94b0ab55e6 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:55:39 +01:00
Cédric Krier 2e04a068ee Add Python3 support
issue3211
2016-02-26 00:04:09 +01:00
Cédric Krier c911cb0495 Add warehouse address on internal shipment
issue4978
review22531002
2015-11-05 23:26:24 +01:00
Cédric Krier 22b3b2845d Remove unnecessary reset of left/right in copy
issue5049
review19551002
2015-10-18 16:52:12 +02:00
Nicolas Évrard e45b3046b7 Add drop location type
issue4371
review19471002
2015-10-04 17:54:19 +02:00
Cédric Krier 8507f1660f Allow to use view location on staging and draft moves
issue4912
review24321002
2015-09-22 23:00:48 +02:00
Cédric Krier f6b10b766e Add picking location on warehouse
issue4911
review24281002
2015-09-14 10:17:04 +02:00
Cédric Krier a2da70ea13 Use new PYSON syntax
issue2205
review16391002
2015-06-28 23:45:31 +02:00
Marius Grigaitis a50b6f21fd Use the last cost_price of the day for cost_value calculation
issue4432
review13831002
2014-12-31 15:27:12 +01:00
Sergi Almacellas Abellana 2112a21113 Add domain on location's parent and childs
issue4279
review9811002
2014-12-05 18:43:36 +01:00
Cédric Krier 994bd8a103 Fix most flake8 errors
review8771002
2014-12-02 12:56:04 +01:00
Cédric Krier a9e8434711 Use grouped_slice on locations when computing quantity
As location_ids is used by a IN clause in products_by_location, the caller must
be careful about the length of this list.

issue3977
review11411002
2014-08-19 14:38:59 +02:00
Mathias Behrle cea5039c3b Get cp_warehouse_id only when it must be available in the context.
issue3688
review3641002
2014-02-19 18:37:21 +01:00
Cédric Krier 0ba33d88a2 Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:45:31 +01:00
Cédric Krier 68eb13ed88 Fix flake8 2013-10-05 12:17:26 +02:00
Cédric Krier 4f833ee812 Migration to python-sql
review1001002
2013-09-06 22:34:48 +02:00
Cédric Krier 77c5845141 Extend Lot Management
Allow to customize move creation of Inventory
Allow to customize unique constraint on Inventory
Allow specific grouping Period Cache
Add grouping on products_by_location and assign_try

review845002
2013-06-21 23:24:17 +02:00
Udo Spallek 6b94781290 Add missing Active Record migration.
issue3089
review721005
2013-03-25 20:57:59 +00:00
Albert Cervera i Areny e1540c219a Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:56:01 +01:00
Cédric Krier a81cd74495 Fix flake8 2013-02-24 16:18:17 +01:00
Ian Wilson dc126d0020 Fix logic error in _set_warehouse_parent method.
The `if to_update:` conditional should be inside the for loop of the method
_set_warehouse_parent on the Location model. Clear the set after write.

issue2951
review629004
2013-01-16 12:24:27 -08:00