Commit Graph
26 Commits
Author SHA1 Message Date
Cédric Krier 3d07720dd4 Follow isort formatting
issue10928
2021-12-11 17:58:43 +01:00
Raimon Esteve 7b59be0d3b Get return sale from sale's origin
issue10702
review369591002
2021-09-04 09:47:24 +02:00
Cédric Krier c3e8df02e3 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
David Harper 9edc799842 Rename move state from cancel to cancelled
issue8927
review297851002
2020-06-06 10:30:11 +01:00
David Harper e745ab43d1 Rename shipment states from cancel to cancelled
issue8927
review301711002
2020-06-06 10:17:30 +01:00
Cédric Krier 3b9522097c 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:53 +01:00
Cédric Krier 8ffb6ad82f Always use record name for origin name
The reference field is always now included in the record name.

issue8299
review271331013
2019-05-22 18:37:08 +02:00
Cédric Krier 8f83e09d56 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier 6417d6dcf5 Set cancel state for the transition of ShipmentOut.cancel
The changeset b72e1e9b9097 put the wrong value during the refactoring.

issue7827
review70441002
2018-10-31 18:10:32 +01:00
Cédric Krier bab7e6c3a3 Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier 5dd275da5d Use task queue to process sale
It adds configured delay for processing sale which provides a grace period.
And it allows to reset to draft confirmed but not processed sale.

issue7460
review49391002
2018-07-27 09:26:03 +02: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 ad0a7bebdf Use getattr on Reference field
The Reference field can have a negative id and so it does not have a value for
all columns.

issue7378
review47371002
2018-04-21 12:55:59 +02:00
Cédric Krier 986c22ae4c Use sale line unit only if set
The origin may be changed for a sale line without unit. In such case the sale
will no more compute the remaining quantity.

issue7226
review45261002
2018-03-19 16:00:52 +01:00
Cédric Krier 571f003055 Enforce the same category of UoM for move with a sale line as origin
The sale line computes the remaining quantity and the quantity to invoice by
converting the move quantity to the sale unit. So they must have the same
category of UoM.

issue6839
review35691002
2017-10-18 14:51:12 +02:00
Cédric Krier dd7f60db0a Fix searcher methods for dot notation
issue6757
review40651002
2017-09-27 18:37:32 +02:00
Cédric Krier f31d55bf81 Use reference as origin name if filled
Because it is used as references on the reports, it targets the external world.

issue6370
review33241002
2017-03-29 22:40:15 +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 22f5fcba0b Fix most flake8 errors
review8771002
2014-12-02 12:55:52 +01:00
Robin Baumgartner 4ed93d01c9 Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 14:03:13 +01:00
Cédric Krier 104bb86867 Use context to check model and field access
issue4081
review8481002
2014-09-17 21:45:49 +02:00
Cédric Krier 087a4d55b5 Add warning for customer moves without origin
issue3677
review3511004
2014-03-10 20:17:14 +01:00
Cédric Krier b795c949e6 Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:45:23 +01:00
Cédric Krier 589a8524f2 Move code in right files following guide lines 2013-09-23 11:25:31 +02:00