Commit Graph
63 Commits
Author SHA1 Message Date
Nicolas Évrard 98e22bf953 Send only the required fields when fetching a readonly view definition
issue11134
review380081002
2022-04-08 19:07:14 +02:00
Cédric Krier 89367c74db Recompute cost price of drop shipment
Since issue9962 the unit price of the supplier move can be updated later so we
must recompute the cost price of the customer moves.

issue11295
review364951003
2022-03-26 12:15:13 +01:00
Cédric Krier 096ea97dfd Do not sort state selection
issue11169
review374761005
2022-02-15 00:08:47 +01:00
Cédric Krier 56111d4a0d Ensure to set correct company context when calling today
issue11046
review370421002
2022-01-23 12:54:56 +01:00
Cédric Krier e4a87f78fd Ensure customer moves are added in draft state
We can not rely on the asynchronous sale processing to set to draft the
customer moves because it can happen after the drop shipment is done.

issue11121
review376431002
2022-01-20 18:57:31 +01:00
Cédric Krier 0eef086936 Follow isort formatting
issue10928
2021-12-11 17:58:44 +01:00
Adrià Tarroja Caubet 0a12967e1e Process sales on ship
This ensures partial shipments are properly linked to sales.

issue10430
review361921002
2021-10-22 10:15:48 +02:00
Cédric Krier 7a64fa6d47 Replace domain against code by sequence type
issue10795
review373661003
2021-10-03 13:45:11 +02:00
Cédric Krier f37a90dcc7 Remove contextual domain on company
issue10302
review338141004
2021-04-20 09:18:58 +02:00
Cédric Krier 48df949535 Add company pattern to multivalue calls
issue10162
review335761002
2021-04-03 14:27:10 +02:00
Cédric Krier 7b73316a4a Store directly sequence type to sequence
issue10122
review351381002
2021-03-11 23:00:10 +01:00
Cédric Krier 857145a553 Add test on context of company multivalue target fields
issue10067
review333851026
2021-03-05 15:49:20 +01:00
Cédric Krier 93734cb82b Default to ordering documents by date
issue10079
review339831002
2021-02-25 21:13:56 +01:00
Cédric Krier c95779bc72 Use grouped slice to search sale lines
issue10051
review333781002
2021-02-14 14:02:15 +01:00
Cédric Krier 9bc3bd021d Rename code into number
issue9984
review339591002
2021-02-03 19:38:18 +01:00
Cédric Krier a7915f0ef7 Allow drop shipment's effective date to be defined
issue9787
review318701002
2020-11-15 23:55:06 +01:00
Maxime Richez a9565f04bc Ensure customer field is not empty
issue9697
review328301002
2020-10-12 23:39:48 +02:00
Cédric Krier 4fcdd8ece2 Use original cost price for returned move
and factorize the cost price of move for cost computation

issue9440
review327491003
2020-08-10 23:38:04 +02:00
Cédric Krier 2410ba22de Enforce unit price on drop and customer return moves
Those values are interesting information for reporting or to compare with the
cost price.

issue9402
review327421002
2020-07-04 23:49:25 +02:00
Cédric Krier fe3b258deb Convert unit price to company currency and default product uom
issue9439
review325641002
2020-07-03 21:19:53 +02:00
David Harper 447a549b14 Rename move state from cancel to cancelled
issue8927
review297851002
2020-06-06 10:30:11 +01:00
David Harper c8c58aaefb Rename drop shipment state from cancel to cancelled
issue8927
review321401002
2020-06-04 11:05:27 +01:00
Cédric Krier 993aa8a71a Add round_price
We add a common method to round prices that are stored using the price digits.
It is useless to use the digits from the field because it can not be changed in
any other way than by configuration.

issue9146
review299521002
2020-04-23 21:44:00 +02:00
Cédric Krier 220ceb03ed Do not rely on unique link between request and purchase or sale lines
The purchase request can be grouped into a single purchase lines.
And nothing prevent a custom module to merge request between different sale lines.

issue9075
review315271002
2020-04-23 21:39:31 +02:00
Cédric Krier 0073bc7d0a Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:54 +01:00
Nicolas Évrard a27d1e7c52 Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:47 +01:00
Cédric Krier 7c35467a25 Do not fail on purchase line not linked to a request
If a line is added to a purchase for drop shipment, it will not be linked to a
purchase request and so there will be no link to any sale line.
In such case, the drop shipment will warn about the new customer move without
origin and the user will be responsible to invoice it manually.

issue8038
review269181002
2019-03-22 18:22:34 +01:00
Cédric Krier 8a40432043 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier 23f1133c98 Use int and Decimal instead of lambda
issue7816
review74401002
2018-10-31 18:17:35 +01:00
Cédric Krier 998f45f62b 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 7f662b8981 Use material design icons
issue474
review60291002
2018-08-19 20:02:58 +02:00
Cédric Krier ff190a1ac6 Use task queue to process sale and purchase
issue7463
issue7460
review50441002
2018-07-27 09:27:11 +02:00
Cédric Krier 60f50f8542 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier 594cb3880b Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:55 +02:00
Sergi Almacellas Abellana 674ded1398 Set target field on supplier and customer moves relations
This is required to make the client hide the relation field on when displaying
the One2Many fields on the view.

Also use filter attribute instead of Function fields

issue7475
review51341002
2018-05-30 13:58:46 +02:00
Cédric Krier 2a1497d40f Fix computation of cost price and always update customer move
The cost computation was broken by changeset 471ad47d4129.

issue7282
review44241002
2018-03-29 20:23:34 +02:00
Nicolas Évrard 1b1e5558f9 Handle remaining qty when synchronizing supplier and customer moves
issue6833
review39781002
2018-03-13 14:14:18 +01:00
Sergi Almacellas Abellana 177a62e796 Add depends on Button
issue6919
review40811002
2018-02-19 11:41:43 +01:00
Nicolas Évrard bdd050b04f Cancel the shipments before deleting it
issue6832
review42711002
2017-10-09 16:49:57 +02:00
Cédric Krier b50f79cade Fix searcher methods for dot notation
issue6757
review40651002
2017-09-27 18:37:33 +02:00
Cédric Krier 3e4f925bf0 Cancel customer moves of shipped drop shipment
Those moves must be cancel if the shipment is cancel because they will never
be linked to another drop shipment as the supplier moves have been done.

issue6706
review39621002
2017-09-03 11:27:51 +02:00
Cédric Krier ed0ad95d20 Do not divide by zero
If the quantity of the supplier move is zero, the cost for the customer move
should also be zero.

issue6703
review38541002
2017-08-28 18:22:02 +02:00
Udo Spallek f0afb36b22 Do not insert same id in same table
issue6512
review42341002
2017-05-19 18:02:34 +02:00
Cédric Krier 02c8d8dc8b 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
2017-04-01 10:43:14 +02:00
Cédric Krier a0499d9c7f Remove Property fields
issue2349
review36271002
2017-04-01 00:38:16 +02:00
Sergi Almacellas Abellana 1f545e9ced Fix antipatern of create/write in loop
issue3516
review14951002
2016-12-19 09:56:13 +01:00
Raimon Esteve e237a7b6ef Test origin before using it in wait
The origin is not required on moves of drop shipment.

issue5937
review25711002
2016-10-29 23:56:12 +02:00
Nicolas Évrard cdaa9aff8b Remove useless button_draft from __rpc__ dictionnary 2016-10-25 12:26:51 +02:00
Cédric Krier 21ecb79d61 Add Python3 support
issue3211
2016-03-10 00:36:31 +01:00
Nicolas Évrard 3a12906a62 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:55:36 +01:00