Commit Graph
38 Commits
Author SHA1 Message Date
Cédric Krier d6ab4a673c Add warehouse to invoice line
This ensures that the cost price used for COGS lines come from the right
warehouse when it is computed per warehouse.

issue10568
review362161002
2021-07-29 09:06:38 +02:00
Cédric Krier dd7dc461cb Add method to post invoices by batch
issue10054
review333811002
2021-02-27 15:23:46 +01:00
David Harper bf6191ef2c Rename invoice state from cancel to cancelled
issue8927
review303661003
2020-06-06 10:23:14 +01:00
Cédric Krier 7e6ae8a8fc 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 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 8d1c5e4f1f Raise NotImplementedError when setting Function field without setter
issue7985
review265101002
2019-03-27 00:28:57 +01:00
Cédric Krier 8f83e09d56 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier 3db347e792 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 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 7fa45e88c3 Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:52 +02:00
Sergi Almacellas Abellana 4c3bdbcca1 Do not process same sale multiple times when it's invoice lines are deleted
issue7084
review41011002
2018-01-25 17:31:33 +01: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
Cédric Krier 2333ac8f7f Do not use invoices function field for invoice exception
This allows to reuse the design for invoices linked differently to the sale.

issue6274
review34711002
2017-02-25 18:36:18 +01:00
Sergi Almacellas Abellana db2ba660c4 Reprocess sale when deleting invoice lines
issue6131
review31821002
2017-01-18 10:18:29 +01: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
Jordi Esteve 923db176c6 Remove .id in the domain of the searcher methods
issue4987
review15651002
2015-09-23 23:05:51 +02:00
Cédric Krier 22f5fcba0b Fix most flake8 errors
review8771002
2014-12-02 12:55:52 +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 334f8e1354 Remove explicit link between sale and invoice
issue3623
review4261002
2014-03-17 23:22:34 +01:00
Nicolas Évrard 5a3668f8d9 Replace reference copying by relate
review932002
2013-09-19 17:34:09 +02:00
Cédric Krier a279e3d799 TableHandler.drop_table requires table name not table instance 2013-09-10 13:55:53 +02:00
Cédric Krier 3c4a07146b Migration to python-sql
review1001002
2013-09-06 22:34:40 +02:00
Cédric Krier fde3e55c24 Add missing process call on sale when invoice's posted
review906002
2013-06-06 20:38:14 +02:00
Cédric Krier 044d4da36b Use origin Reference on Invoice Line and Stock Move
issue2642
review717002
2013-03-23 15:40:22 +01:00
Albert Cervera i Areny 8ed0ec952d Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:55:52 +01:00
Cédric Krier 53c4bcc693 Update to new invoice states
review583002
2012-12-23 22:30:44 +01:00
Cédric Krier bee0176529 Invoice.copy is a class method now 2012-12-04 16:48:25 +01:00
Cédric Krier f1452ecadb Use root to process/search sales from Invoice
review567002
2012-10-19 13:17:39 +02:00
Cédric Krier 9c9b3932ba Active Record 2012-09-24 22:18:13 +02:00
Cédric Krier 6f3b7d4247 Replace wrong usage of False by None
issue2512
2012-03-27 10:43:58 +02:00
Cédric Krier c61bd45f8c Use list of ids to call process instead of generator 2012-03-26 16:52:23 +02:00
Cédric Krier 73494dff5a Simplify workflow engine
review256001
2012-03-25 00:18:13 +01:00
Cédric Krier c013eb0139 Don't link copied invoice to sale
issue2466
review258001
2012-03-01 10:21:40 +01:00
Cédric Krier 87a28cfd6f Add reverse many2many from invoice to sale 2011-01-16 22:02:53 +01:00