Cédric Krier
efbc6d4221
Ensure to set correct company context when calling today
...
issue11046
review370421002
2022-01-23 12:54:56 +01:00
Cédric Krier
3d07720dd4
Follow isort formatting
...
issue10928
2021-12-11 17:58:43 +01:00
Cédric Krier
ca42e85c6d
Support empty list price on product
...
issue10244
review350341002
2021-09-13 23:29:57 +02:00
Cédric Krier
ef0198e864
Add monetary field
...
issue10598
review338511002
2021-08-21 09:09:56 +02:00
Cédric Krier
dd9c11053b
Add company pattern to multivalue calls
...
issue10162
review335761002
2021-04-03 14:27:10 +02:00
Cédric Krier
2257021def
Replace cursor fetchall by iteration over cursor
...
issue5817
review335831003
2021-03-21 16:09:13 +01:00
Cédric Krier
877d37489a
Add test on context of company multivalue target fields
...
issue10067
review333851026
2021-03-05 15:49:19 +01:00
Cédric Krier
4a27f8e70f
Add default value for default_lead_time
...
This restores the default lead time removed in changeset 8850aa25cd14.
By default a product should be delivered directly.
issue10050
review324921002
2021-02-04 23:57:02 +01:00
Sergi Almacellas Abellana
1c95fef15a
Add default lead time for products
...
issue9420
review3117710
2021-01-19 15:00:08 +01:00
Cédric Krier
afd64cac87
Compute price list with raw sale unit price
...
The price list expect to have a unit price in the default unit and company
currency otherwise non proportional operations provide wrong result when a
different unit or currency is used.
issue9929
review345161002
2020-12-17 21:30:26 +01:00
Cédric Krier
9823d3e263
Set only existing default warehouse in default locations
...
The default warehouse may be None which is not a valid value in the list for
the default locations.
issue9547
review302041002
2020-08-29 18:24:38 +02:00
Cédric Krier
32c7865e40
Set all fields readonly for inactive records
...
issue3747
review295061011
2020-03-17 20:08:12 +01:00
Cédric Krier
23033e68e2
Add salable products menu entry
...
This shows the same product list as when selecting product from the sale line
and provide the same contextual options.
issue8981
review258651002
2020-02-23 13:55:00 +01:00
Cédric Krier
96df490e97
Set company context in product instance
...
This ensures that the correct value for field depending on the company from
product is used.
issue8690
review252281002
2019-10-01 22:23:55 +02:00
Cédric Krier
8cc4fa18d6
Use sale_uom as fallback uom to compute sale price
...
issue7855
review45821002
2018-12-22 00:16:15 +01:00
Cédric Krier
650c68a719
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier
7fa45e88c3
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:52 +02:00
Cédric Krier
db33534e22
Remove accounts from products
...
issue3805
review45111002
2018-06-20 12:09:51 +02:00
Cédric Krier
2715055916
Enforce list of unique products for get_purchase_price call
...
issue6941
review36801002
2017-11-21 20:48:21 +01:00
Cédric Krier
21ef75bc1f
Ensure quantity from context is a number
...
The quantity compares with other quantity so it fails on Python3 if quantity
is None.
issue6885
review40781002
2017-10-30 09:57:23 +01:00
Cédric Krier
b1ab81d8aa
Add sale price on product view from line
...
issue6407
review35361002
2017-04-02 12:51:43 +02:00
Cédric Krier
22bb1983c0
Allow no lead time on product
...
They are cases where a company can not define a lead time for selling a
product. In such case, the customer moves generated must not have any planned
date.
issue6394
review28131002
2017-04-02 12:43:37 +02:00
Nicolas Évrard
44b756862e
Add Python3 support
...
issue3211
2016-03-08 12:08:34 +01:00
Nicolas Évrard
e052fe20e7
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:55:25 +01:00
Cédric Krier
c9854208b9
Fix delivery_time when delivery_time is None
2016-02-03 22:43:14 +01:00
Cédric Krier
f75f52fb0d
Replace Delivery Time by Lead Time on Product Template
...
and rename Delivery Date of Sale Line into Shipping Date.
issue5275
review22741002
2016-02-02 21:16:12 +01:00
Cédric Krier
9efc6c36fe
Remove safe_eval
...
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.
issue4416
review6971002
2015-03-09 19:42:05 +01:00
Cédric Krier
22f5fcba0b
Fix most flake8 errors
...
review8771002
2014-12-02 12:55:52 +01:00
Cédric Krier
0403f08dd0
New API for on_change
...
issue4203
review8581002
2014-10-29 20:40:13 +01:00
Cédric Krier
2ea4cedc05
Use on_change on default_uom instead of sale_uom
...
Changing the value of sale_uom when it is changed, prevents the user to select
an other value than the default one because when the user remove the current
value it is set back to the default one.
issue4237
review11561002
2014-10-10 10:04:13 +02:00
Cédric Krier
9a4bb59d18
Use fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:29:31 +01:00
Cédric Krier
589a8524f2
Move code in right files following guide lines
2013-09-23 11:25:31 +02:00