Cédric Krier
1d6e99e7b7
Fix usage of context company
...
Default value of company should be -1 to get the right cast and an impossible
value.
Replace False by None as other value in "in" clause.
issue3394
review1119002
2013-10-09 18:25:53 +02:00
Cédric Krier
68eb13ed88
Fix flake8
2013-10-05 12:17:26 +02:00
Cédric Krier
4f5c6a4727
Fix infinite loop when setting internal_quantity
...
There could be difference for Float field between the written value and the
read one. This could lead to an infinite loop of write calls, so we also test
that it is not already writing the same internal value.
issue3332
review1109002
2013-10-03 21:18:46 +02:00
Guillem Barba
c74473ecfe
Fix domain concatenation between list and tuple
...
issue3386
review1099002
2013-09-30 17:44:19 +02:00
Nicolas Évrard
20cb5a0791
Replace reference copying by relate
...
review932002
2013-09-19 17:34:23 +02:00
Guillem Barba
fe08fb891e
Remove incorrect staticmethod declaration
2013-09-12 18:12:31 +02:00
Guillem Barba
0096fed655
Add Mixin class with helper to setup stock quantity fields
...
Add StockMixin class in move.py file with helper functions to be used in getter
and searcher methods of quantity fields.
Reimplemented getter and searcher of quantity/forecast_quantity fields of
Product to use these helper functions.
Add test over product's quantity fields.
issue3279
review963003
2013-09-09 14:11:53 +02:00
Cédric Krier
4f833ee812
Migration to python-sql
...
review1001002
2013-09-06 22:34:48 +02:00
Nicolas Évrard
9c4fac4db7
Reenact check_period_closed on creation (removed by changeset a4feb97fdf49)
...
review1041004
2013-08-29 13:24:49 +02:00
Nicolas Évrard
8965437cf8
Do not check for closed period when writing on anglo_saxon_quantity
...
review928002
2013-08-28 18:23:45 +02:00
Cédric Krier
4e657bfcf1
merge
2013-06-25 19:18:28 +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
Giedrius Slavinskas
0931f3d391
Factorize field checks on StockMove write method
...
review891002
2013-06-05 10:45:18 +03:00
Albert Cervera i Areny
f594f23e27
Add missing space in error message.
...
review751002
2013-04-29 11:24:46 +02:00
Cédric Krier
4cc0484027
Unit price should also be required for move to supplier
...
review791002
2013-04-16 15:30:21 +02:00
Cédric Krier
c7326c55fb
Use reference fields
...
Merge all shipment Many2One into shipment Reference
Add origin Reference on Stock Move
issue2642
review717002
2013-03-23 15:42:36 +01:00
Cédric Krier
65cfc60c14
Remove _inherits
...
review670002
2013-03-20 22:51:12 +01: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
fd91db0948
Fix average cost price computation
...
context locations should be list of ids and not instances
issue3037
review703002
2013-03-06 13:08:21 +01:00
Cédric Krier
a81cd74495
Fix flake8
2013-02-24 16:18:17 +01:00
Ian Wilson
bd452b96c2
Use execute instead of write to bypass domain checks during migration.
...
Use execute instead of write to bypass domain checks on product when migrating
from 1.8 to 2.6. There is a circular dependency between the
stock module and the product module if migrating from 1.8.
issue3005
review673002
2013-02-15 13:41:59 -08: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
75bbef0077
Use Workflow for Stock Move
...
review600002
2012-12-27 21:53:07 +01:00
Cédric Krier
c5f83d3810
Active Record
2012-09-24 22:18:17 +02:00
Cédric Krier
7e9b043113
Use the right quantity when updating the cost_price
...
review462002
2012-08-16 16:04:01 +02:00
Cédric Krier
bd7f66d7db
Fix pep8 and pyflakes
2012-04-03 20:07:43 +02:00
Cédric Krier
a3485b82c4
Add missing initialisation of unit_price in on_change_product
2012-03-28 09:37:46 +02:00
Cédric Krier
1532f220ee
Set unit_price via on_change for every cases it is required
...
review304003
2012-03-27 13:58:37 +02:00
Cédric Krier
bde2ff9edb
merge
2012-03-27 10:45:11 +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
3a7777aa98
Missing default_unit_digits on move
2012-03-26 14:42:50 +02:00
Cédric Krier
21e0247eef
Remove special to_location_warehouse search clause
2012-03-26 14:41:47 +02:00
Cédric Krier
26f9a7660e
Use domain for shipment moves instead of context
...
issue2255
review293001
2012-03-25 18:24:34 +02:00
Cédric Krier
2c52d02b3a
Add support for production location in cost price computation
...
review298001
2012-03-25 15:45:34 +02:00
Cédric Krier
71744d1e76
Remove special uom search clause
...
review295003
2012-03-25 15:39:36 +02: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
df77ba6b30
Update cost_price only from supplier to storage also on creation
2012-02-24 11:45:54 +01:00
Cédric Krier
70536f81b9
Use default values when updating cost price on creation
2012-02-24 11:22:32 +01:00
Cédric Krier
c0d32c5df5
Update cost_price only from supplier to storage
...
review163006
2011-11-04 17:20:34 +01:00
Nicolas Évrard
f6b35baa82
fix pyflake errors
...
review164008
2011-11-02 16:13:35 +01:00
Cédric Krier
687e6e9dee
Fix wrong required state on Move.currency
2011-10-18 09:57:45 +02:00
Nicolas Évrard
34128ae360
Add company to Shipments
...
codereview74004
issue2078
2011-10-04 18:17:41 +02:00
Cédric Krier
9703a67226
Ensure coherence between planned date of shipments and moves
...
review121001
2011-09-29 12:03:58 +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
174a0b5c71
Add missing _order_name on Move
2011-06-15 11:41:28 +02:00
Mathias Behrle
8c35a1d847
Use effective_date to calculate currency rate for issue1746.
2011-04-13 18:11:14 +02:00
Cédric Krier
0dcc364508
Force effective_date only if not defined
2011-04-13 11:19:05 +02:00