Commit Graph
11 Commits
Author SHA1 Message Date
Cédric Krier cf0b20da58 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
2023-10-22 10:36:20 +02:00
Cédric Krier 83d817309c Add scenario to test default taxes for purchase without product 2023-10-04 17:19:01 +02:00
Cédric Krier 66e460b97d Do not consider purchase as done when invoice or shipment state are none
If there are still line to invoice or to receive, the purchase should not be
done.

Closes #12594
2023-09-27 12:30:12 +02:00
Cédric Krier 8a7aaeb278 Do not invoice non order line
As we can only ensure to keep the layout for the first invoice, it is less
astonishing for the user that we never invoice the non lines.
2023-08-26 14:59:59 +02:00
Cédric Krier 297a9f4f1d Use price from last purchase as product price
The cost price is not really relevant as purchase price because it may include
extra cost like landed cost.

Closes #12494
2023-08-17 16:26:09 +02:00
Cédric Krier 3dac1d819d Add a button to create invoices manually from purchase
#12412
2023-07-19 11:26:33 +02:00
Maxime Richez 146dd5fbc3 Add pending, awaiting payement and partially paid to invoice state
Closes #12005
2023-01-23 15:22:56 +01:00
Cédric Krier 68753ff402 Run action from button with proteus 2023-01-17 14:39:18 +01:00
Cédric Krier 69a1be6404 Assign all possible shipments and productions when trying
If assign_try fails to assign all the moves, we check if all the moves of each
shipment and production are assigned and then assign them.
Also we remove the boolean return which makes no more sense.

Closes #7006
2023-01-14 15:41:26 +01:00
Cédric Krier 4683fde7ac Make scenario independent of the current day
The fiscal years are created centered on the passed date such that if the
current day change during the execution, the fiscal year is still usable.
Also fiscal year can be created for a range of dates such that it is guarantee
that the dates are in the fiscal year.
And finally remove datetime and dateutil import when they are not used.

Closes #9977
2023-01-01 10:36:03 +01:00
Cédric Krier a3685dd320 Prepare migration to monorepo 2022-12-16 16:49:39 +01:00