Commit Graph
9 Commits
Author SHA1 Message Date
Cédric Krier ce4f6c9e44 Compute unit price for line when product is changed even with valid unit
The backport of #12633 was wrong because f86d35e09e87 changed the structure of
method. Such that the indentation of the call compute_unit_price is not if
there is a product set but if the unit is not valid.

Closes #12702
(grafted from 5cabd3eabbfb54c169ca3a5595aab07c493672b5)

--HG--
branch : 6.0
2023-11-12 12:01:49 +01:00
Cédric Krier c3e99d4948 Update amount when changing unit or taxes of purchase line
Closes #12648
(grafted from 0b36d595eb2f89bd6b3197a8d504cea4e1042a70)

--HG--
branch : 6.0
2023-10-29 14:23:34 +01:00
Cédric Krier c30eb5b1de Do not change line type when calling on_change_product
The wizard to modify header calls on_change_product on all lines but their
type must not change.

Closes #12633
(grafted from d7983af6fe6087b48c9200b7a43f7d74c234c6f9)

--HG--
branch : 6.0
2023-10-22 10:36:20 +02:00
Cédric Krier 6104da65e7 Use purchase line unit when invoice line has no unit
Closes #12462
(grafted from 582bbe2add15d9d856b3a9315b8c8434f66b7248)

--HG--
branch : 6.0
2023-10-09 18:31:37 +02:00
Cédric Krier b523ac326e Create invoice line for not line only if it is for the first invoice
This is the only case where we are sure that the layout will be conserved.

Closes #12320
(grafted from fd07f6017e8154dbb5740c296e48d4c974eaf3e8)

--HG--
branch : 6.0
2023-08-25 22:37:22 +02:00
Cédric Krier 5a57867a0c Order by descending id to get the last 10 purchases
Closes #12497
(grafted from f71e3a79e0c9249616a59ef2f96e807b12af3a44)

--HG--
branch : 6.0
2023-08-17 16:18:21 +02:00
Cédric Krier cce1a6658f Use fixed location type to compute quantity to invoice for sale and purchase
Using the computed location to get the expected type is not reliable because
for return order, the location can be of different type and the stock move can
change of location type.

Closes #12203
(grafted from ce0b073cd8e637b8052ae3fa5e9bb4d8a7f6ea53)

--HG--
branch : 6.0
2023-04-13 17:45:09 +02:00
Cédric Krier 403a0780ce Use right boolean operator in composite domain of searcher
When the clause is negative, it must return an AND-ed domain instead of OR-ed.
(grafted from e8c1e7d592b5a21cec95e8d6614112b8021e34d5)

--HG--
branch : 6.0
2023-02-16 10:39:30 +01:00
Cédric Krier 05cdbd5415 Prepare migration to monorepo
--HG--
branch : 6.0
2022-12-16 16:49:48 +01:00