Commit Graph
121 Commits
Author SHA1 Message Date
Cédric Krier d836054849 Make inventory number always readonly
If it is not readonly, it is not filled by the sequence on create because it is
tested only against None but not against empty string.
Other documents like shipments also use always readonly numbers.

issue5772
review25571002
2016-08-13 23:46:35 +02:00
Sergi Almacellas Abellana 33ca111eb7 Don't update expected quantity when inventory is done
issue5749
review21171002
2016-07-28 10:12:16 +02:00
Cédric Krier 659859cf8b Manage readonly state on Inventory Line
issue5628
review26341002
2016-06-30 18:54:34 +02:00
Sergi Almacellas Abellana 82be44e56e Fix antipatern of create/write in loop
issue3516
review6891002
2016-06-23 09:40:00 +02:00
Sergi Almacellas Abellana 58f9b3cb14 Add number to inventories
issue5406
review17151002
2016-03-22 17:00:58 +01:00
Nicolas Évrard 94b0ab55e6 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:55:39 +01:00
Cédric Krier aacba5e219 Always compute expected_quantity in inventory
issue4928
review230004
2015-09-04 11:57:46 +02:00
Cédric Krier a2da70ea13 Use new PYSON syntax
issue2205
review16391002
2015-06-28 23:45:31 +02:00
Cédric Krier f20586adcd Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 17:00:00 +02:00
Guillem Barba 6c760d1253 Compute inventory lines in complete_lines() using new grouping() method
issue4781
review13211002
2015-06-15 01:22:10 +02:00
Sergi Almacellas Abellana 5a7b6f4e16 Use cls in classmethods
issue4396
review13771002
2014-12-09 23:33:17 +01:00
Cédric Krier 994bd8a103 Fix most flake8 errors
review8771002
2014-12-02 12:56:04 +01:00
Robin Baumgartner 486006e8ff Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 14:03:52 +01:00
Cédric Krier 35e5a4a7a9 Use dualmethod on ModelStorage.save
issue4197
review8671002
2014-11-01 11:54:45 +01:00
Cédric Krier 5b4b6b1558 New API for on_change
issue4203
review8581002
2014-10-29 20:40:25 +01:00
Sergi Almacellas Abellana 38eadbc7e9 Skip zero quantities when prefiling an inventory
issue3976
review6391002
2014-07-03 18:49:59 +02:00
Cédric Krier 634b9ab416 Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:29:37 +01:00
Albert Cervera i Areny 4dc7a144e7 Remove dependencies on One2Many fields.
issue3555
review2341002
2013-12-18 01:11:19 +01:00
Cédric Krier 5046abe5fe Missing moves rename in Inventory.copy 2013-12-01 22:39:26 +01:00
Cédric Krier 2b78c34768 Use origin for inventory move
By using the origin, it is possible to create all the move with one create
call.

issue3512
review1811002
2013-11-28 23:21:45 +01: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
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
Albert Cervera i Areny 37b61a3e90 Use a list of dictionaries in create().
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier 062720b2b0 Group call to Move.do when confirming 2013-01-01 22:24:15 +01:00
Cédric Krier b91a1b2405 Fix test on consumable in complete_lines 2013-01-01 22:23:32 +01:00
Cédric Krier 75bbef0077 Use Workflow for Stock Move
review600002
2012-12-27 21:53:07 +01:00
Cédric Krier 117620f88d Fix typo in complete_lines
issue2938
2012-12-25 11:28:05 +01:00
Cédric Krier c5f83d3810 Active Record 2012-09-24 22:18:17 +02:00
Cédric Krier 9759fd0bc8 Don't use Many2One as _rec_name
issue2547
2012-04-15 17:29:18 +02:00
Cédric Krier 642b71ee6d Add missing default value for expected_quantity of inventory 2012-04-06 19:50:57 +02:00
Cédric Krier bd7f66d7db Fix pep8 and pyflakes 2012-04-03 20:07:43 +02:00
Cédric Krier 47b51e197b Allow only deleting cancelled workflowed models
review317001
2012-04-03 12:17:23 +02:00
Cédric Krier 791735b65d Replace wrong usage of False by None
issue2512
2012-03-27 10:44:04 +02:00
Cédric Krier 622375010e Simplify workflow engine
review256001
2012-03-25 00:18:19 +01:00
Nicolas Évrard 200bd670e6 Integer, Numeric and Float allow None as value
NULL value is None and not False

issue2022
review237004
2012-03-23 18:38:54 +01:00
Cédric Krier ee6e3abccc New product types: Goods, Assets and Service
review260001
2012-03-16 12:42:00 +01:00
Mathias Behrle 6cbeee4fa3 Change select=1|2 to select=True
issue2305
review269003
2012-03-05 10:53:08 +01:00
Cédric Krier 82458c020e New wizard design 2012-01-02 18:07:56 +01:00
Nicolas Évrard f6b35baa82 fix pyflake errors
review164008
2011-11-02 16:13:35 +01:00
Nicolas Évrard fb5ad2fa18 Use function name in workflow instead of python code 2011-08-11 16:34:36 +02:00
Cédric Krier 183a3e7bbf Add test for depends 2011-08-04 16:57:42 +02:00
Cédric Krier c4fc2a95ba Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:18:06 +02:00
Cédric Krier 8eeb3c949f Change Pool into a Singleton 2011-07-03 13:19:14 +02:00
Cédric Krier c88eebba5d Add missing rounding in creation of move of inventory for issue2007 2011-05-10 15:03:54 +02:00
Cédric Krier cd62ea725f Update for new Transaction 2010-08-19 22:22:44 +02:00
Cédric Krier ada56fe0cb Fix complete inventory for lines with product not in location for issue1633 2010-07-25 15:02:45 +02:00
Cédric Krier 79af1dc9b4 Remove ids from on_change* calls 2010-03-18 18:15:51 +01:00
Cédric Krier 43f2ff38d4 Add missing depends on unit_digits 2010-03-11 22:35:29 +01:00