Commit Graph
35 Commits
Author SHA1 Message Date
Cédric Krier 983a6282fd Enforce the same category of UoM between invoice lines and origin
The origin lines compute the remaining quantity by converting the move quantity
to the origin unit. So they must have the same category of UoM.

issue9142
review285011002
2020-03-17 23:26:58 +01:00
Cédric Krier 7869121038 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 cebad5f15a 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 c26e83d82f Raise NotImplementedError when setting Function field without setter
issue7985
review265101002
2019-03-27 00:28:57 +01:00
Cédric Krier b9c6fff856 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier 2f23dcd802 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:03 +02:00
Cédric Krier e8168fa7fd Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier 98b86f6a5e Use task queue to process purchase
It adds configured delay for processing purchase which provides a grace period.
And it allows to reset to draft confirmed but not processed purchase.

issue7463
review49401002
2018-07-27 09:27:49 +02:00
Cédric Krier 69bc232aad Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:51 +02:00
Sergi Almacellas Abellana 23e8c66cd3 Do not process same purchase multiple times when it's invoice lines are deleted
issue7084
review37951002
2018-01-25 17:32:11 +01:00
Cédric Krier eb02b7e569 Fix searcher methods for dot notation
issue6757
review40651002
2017-09-27 18:37:31 +02:00
Cédric Krier 5518f88254 Use reference as origin name if filled
Because it is used as references on the reports, it targets the external world.

issue6370
review30161003
2017-03-29 22:41:03 +02:00
Cédric Krier d016cc84fa Do not use invoices function field for invoice exception
This allows to reuse the design for invoices linked differently to the purchase.

issue6274
review26161002
2017-02-25 18:36:57 +01:00
Sergi Almacellas Abellana e7bc5cfcff Reprocess purchase when deleting invoice lines
issue6131
review34571002
2017-01-18 10:19:36 +01:00
Nicolas Évrard 3693b96042 Add Python3 support
issue3211
2016-03-04 00:34:21 +01:00
Nicolas Évrard 5ef52928e6 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:55:21 +01:00
Jordi Esteve 9f85f901bd Remove .id in the domain of the searcher methods
issue4987
review15661002
2015-09-23 23:06:33 +02:00
Cédric Krier 640950c212 Fix most flake8 errors
review8771002
2014-12-02 12:55:47 +01:00
Cédric Krier 8e61ceca6b Use context to check model and field access
issue4081
review8481002
2014-09-17 21:45:46 +02:00
Cédric Krier 6a05a20933 Remove explicit link between purchase and invoice
issue3623
review4261002
2014-03-17 23:23:10 +01:00
Nicolas Évrard b7d05b3175 Replace reference copying by relate
review932002
2013-09-19 17:33:53 +02:00
Cédric Krier b2012b2237 Migration to python-sql
review1001002
2013-09-06 22:34:36 +02:00
Cédric Krier 97d8890b7f Fix wrong indentation on test for deletion of Invoice 2013-08-05 19:06:46 +02:00
Cédric Krier 79373dc33a Add missing process call on purchase when invoice's posted
review905002
2013-06-06 20:37:38 +02:00
Cédric Krier a9deb9bd31 Use origin Reference on Invoice Line and Stock Move
issue2642
review717002
2013-03-23 15:39:11 +01:00
Albert Cervera i Areny bf33f2309d Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:55:48 +01:00
Cédric Krier 9144d1937a Fix flake8 2013-02-24 15:45:26 +01:00
Cédric Krier 65f0af5ff6 Update to new invoice states
review583002
2012-12-23 22:30:27 +01:00
Cédric Krier b511206a4f Use root to process/search purchase from Invoice
review566003
2012-10-19 13:18:51 +02:00
Cédric Krier eeced05eec Active Record 2012-09-24 22:18:09 +02:00
Cédric Krier a8593f91bf Replace wrong usage of False by None
issue2512
2012-03-27 10:43:54 +02:00
Cédric Krier fd55b3f6d4 Use list of ids to call process instead of generator 2012-03-26 16:52:50 +02:00
Cédric Krier 7c123a9d75 Simplify workflow engine
review256001
2012-03-25 00:18:10 +01:00
Cédric Krier 5b5eea1972 Don't link copied invoice to purchase
issue2466
review259001
2012-03-01 10:20:43 +01:00
Cédric Krier 5296a31e8b Add reverse many2many from invoice to purchase 2011-01-16 22:03:09 +01:00