Commit Graph
405 Commits
Author SHA1 Message Date
Cédric Krier 10febf5c86 Add related_party in search context of secondary party
issue9333
review323301002
2020-05-19 19:01:46 +02:00
Sergi Almacellas Abellana 53245643b7 Add company as product context field
issue9111
review275031002
2020-04-25 09:18:21 +02:00
Cédric Krier 4dbbd20bd3 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 db5b621734 Add actual quantity on line
The actual quantity is computed once the order is processing. We take the
biggest quantity between the shipped and invoiced and ignore the cancelled.

issue9191
review319091002
2020-04-14 09:27:53 +02:00
Cédric Krier 7a52ce817a Allow copying attachments and notes to created records
issue9154
review266971002
2020-04-13 17:25:02 +02:00
Albert Cunillera Benet 0c560c4e8a Add return wizard
issue9049
review256631002
2020-04-12 09:15:06 +02:00
Cédric Krier 976ff7e1dc Add employee on document for some states
issue8969
review276621002
2020-04-10 18:53:44 +02:00
Cédric Krier 05201e1476 Add contact and invoice party
issue8992
review274701003
2020-03-28 14:25:57 +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 6cebf9e1bc Use depends on TaxableMixin
issue8986
review282751002
2020-02-12 00:19:27 +01:00
Cédric Krier 091e3f5f7c Remove global variables used for field definitions
They give the false idea that they can be extended or reused which is not the
case.

issue8967
review252851012
2020-01-25 20:18:49 +01:00
Cédric Krier fecfe235f5 Count as quantity to invoice only moves that leave the source
issue8951
review266621003
2020-01-13 23:54:20 +01:00
Nicolas Évrard 0366e5b818 Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:46 +01:00
Cédric Krier 6420c371b2 Display quantity in record name
issue8797
review274151002
2019-11-26 22:20:24 +01:00
Cédric Krier ba2baf1dca Use a fresh product instance to find best product supplier
This ensure to be able to read all the product suppliers.

issue8723
review284231002
2019-10-24 19:08:07 +02:00
Cédric Krier 4c76757c85 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 8244d9bfba Add amendment
issue8494
review267641002
2019-09-29 18:30:25 +02:00
Cédric Krier 3eed808894 Add visual context on tree view
issue8562
review261951002
2019-09-20 11:47:15 +02:00
Thierry Bruyere e46c69bfb4 Add a global method to set default warehouse
issue8396
review277371003
2019-09-07 23:13:33 +02:00
Udo Spallek 072fe0d6e7 Rename PurchaseRecreatedInvoice class
issue7994
review255481005
2019-08-20 09:30:24 +02:00
Cédric Krier b3411f220c Add history to sale and purchase
Each time the order is reset to draft, we increase the revision number.
The order, lines and tax lines are also historized to browse past version.

issue8366
review279381002
2019-06-26 16:39:40 +02:00
Maxime Richez d39a214294 Preserve original delivery date on backorders from future shipping
issue8284
review283401004
2019-06-05 09:57:35 +02:00
Cédric Krier 9974bdedfb Test purchase state in process method
issue8276
review263341006
2019-04-15 22:10:12 +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 07bb9cac8b Remove product_suppliers domain constraint on product
As product suppliers can be defined at the product and template level but also
using a MatchMixin, it is no more flexible to have a domain using it on the
product. It does not hurt the data integrity because if the field is changed
the product_supplier field will also be validated (because it depends on it).
Also the on_change's ensure a default integrity for the user.

issue6799
2019-03-15 16:31:34 +01:00
Cédric Krier 21ed59ded1 Allow to define product supplier on variants
issue6799
review66551002
2019-03-15 11:30:21 +01:00
Cédric Krier c1bb3de7e6 Allow administrator group to process order in processing state
issue8113
review46771002
2019-03-04 18:43:41 +01:00
Cédric Krier 30efb6f6b4 Compute delivery date with the selected product supplier
issue8081
review56581002
2019-02-15 23:29:14 +01:00
Cédric Krier 52018b3244 Enforce purchasable and supplier for draft and quotation
issue8059
review56571002
2019-02-13 10:40:16 +01:00
Cédric Krier e12fc17fea Allow to lock records for update
issue8012
review45901002
2019-01-30 09:45:59 +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 2a1f500a7d Use material design icons
issue474
review60291002
2018-08-19 20:02:58 +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 ff0a58d446 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Sergio Morillo 160758d3c1 Show number and reference in purchase rec_name
issue7553
review66301002
2018-07-11 17:18:20 +02:00
Cédric Krier 69bc232aad Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:51 +02:00
Cédric Krier 56d311ae57 Remove accounts from products
issue3805
review45111002
2018-06-20 12:09:50 +02:00
Cédric Krier 9bdd9eec06 Invoice purchased product instead of received product
Backed out changeset 507b86438625

issue7494
review46541002
2018-06-11 23:12:40 +02:00
Cédric Krier 76706a0f5c Prevent delete lines if purchase is not draft or canceled
issue7478
review52351002
2018-06-04 18:54:36 +02:00
Cédric Krier 23b5f99f59 Use today as fallback for purchase date report
issue7453
review51301002
2018-05-31 14:02:10 +02:00
Cédric Krier 85679578bd Use depends on methods
issue5191
review46441002
2018-05-31 13:26:19 +02:00
Cédric Krier 8a1b8de7b6 Avoid to compute a delivery date in the past
Replace any past date by no date.

issue7328
review47311002
2018-04-13 18:59:40 +02:00
Cédric Krier 32d63a4267 Add missing purchase in depends
issue7249
review36051002
2018-03-24 13:47:39 +01:00
Cédric Krier 1bca867f56 Always raise exception in table handler
issue7175
review40161002
2018-03-15 00:46:01 +01:00
Sergi Almacellas Abellana 82782cdcad Add depends on Button
issue6919
review40811002
2018-02-19 11:40:08 +01:00
Sergi Almacellas Abellana d64a73479a Link backorder moves with existing invoices lines on order shipment method
issue7022
review36921002
2018-02-15 10:46:56 +01:00
Cédric Krier 31793c7bbe Add wizard to modify purchase header after filling lines
issue6972
review37891002
2018-01-08 19:31:54 +01:00
Cédric Krier 11406c12a4 Use product and purchase record name for line
This gives more information than the id.

issue7021
review44541002
2017-12-26 17:38:18 +01:00