Commit Graph
1155 Commits
Author SHA1 Message Date
Cédric Krier 2fce630dd6 Test expected output instead of comparison in doctest 2023-12-29 19:03:10 +01:00
Cédric Krier 72f5012be5 Set ELLIPSIS option flag on doctest
Closes #12877
2023-12-28 23:00:52 +01:00
Cédric Krier 2743dc7a06 Set IGNORE_EXCEPTION_DETAIL option flag on doctest
Closes #12877
2023-12-28 14:39:39 +01:00
Cédric Krier 10a513babd Use defaultdict to compute amount to pay of invoice 2023-12-29 14:34:06 +01:00
Cédric Krier a443bbe466 Round amount with currency digits in commission reporting 2023-12-29 15:01:25 +01:00
Cédric Krier 840b1d7c30 Round revenue with currency digits in sale reporting 2023-12-29 14:16:30 +01:00
Cédric Krier a32876e1b0 Set currency exchange account for account cash scenario
Since 1c698e656c02 such account is needed if there is a difference due to
exchange rate.

Closes #12935
2024-01-14 23:34:48 +01:00
Cédric Krier 6760a897eb Fill second currency fields of exchange move line
account_cash_rounding module expect that all move lines from Invoice.get_move
has the fields filled.

Closes #12935
2024-01-14 23:33:40 +01:00
Cédric Krier 92c9626008 Cancel only staging moves when purchase request is cancelled
Otherwise when the exception is handled and new stock moves are created for
the line, they are cancelled the next time the sale is processed.

Closes #12934
2024-01-14 22:30:26 +01:00
Cédric Krier 2e08be99c7 Return list of instance as result of test recurrence rule wizard
Since 0db956eb2505 the on_change_with for xxx2Many must return a list of
instances.

Closes #12885
2024-01-11 22:02:48 +01:00
Cédric Krier f8e095826d Do not translate quantity placeholder in sale and purchase messages
Closes #12919
2024-01-10 14:15:52 +01:00
Cédric Krier 5a24591cd5 Use account end date of AEB43 as statement date
It is useful to have statement ordered correctly to have the start balance
filled by default.
2024-01-02 17:04:33 +01:00
Cédric Krier bfee808b02 Search first journal by client account code from AEB43
We fallback to IBAN search if no journal is found.
2024-01-02 12:24:34 +01:00
Cédric Krier d64d54c13e Do not include account number in AEB43 statement name
The account number should already by in the journal name.
2024-01-02 12:22:08 +01:00
Cédric Krier ba7e60e9a3 Replace csb43 by aeb43 package to parse AEB43 statement
Closes #12881
2024-01-02 12:22:58 +01:00
Cédric Krier 779ece7045 Use transaction date for accounting date when importing AEB43 statement
Closes #12886
2024-01-02 17:02:23 +01:00
Cédric Krier 8d35781825 Permit to use deposit account for payment
97281a746606 removed this option that was available since 3255a31c30a2.

Closes #12910
2024-01-08 17:29:26 +01:00
Sergi Almacellas Abellana 44c73a2118 Fix typo in invoice post exchange credit account message 2024-01-10 10:04:24 +01:00
Cédric Krier a71d7b3ebf Book currency exchange amount of invoice in dedicated account
Closes #1302
2023-12-23 23:15:47 +01:00
Cédric Krier f6d8247263 Use AccountMissing and JournalMissing exception for reconciliation 2023-12-23 23:12:41 +01:00
Cédric Krier 61e1b18e76 Compute remaining quantity of sale and purchase order following their method
Ignored quantities must be deduced from the remaining quantity.

Closes #12698
2023-12-17 17:07:41 +01:00
Cédric Krier d3264484c4 Update sale based on purchase request update state
It is simpler if the purchase triggers the update of the request and the
update of the request triggers the process of the sale.
2023-12-21 12:33:00 +01:00
Cédric Krier 956040bca9 Test resetting purchase request exception
#12853
2023-12-21 13:14:18 +01:00
Cédric Krier f6254471f2 Set supply state of sale line to cancelled only if the purchase request is also cancelled
Closes #12853
2023-12-21 12:01:31 +01:00
Cédric Krier 5cda753f9f Allow assigned move of 0 quantity using view location and delete them
This is needed to be able to ignore assignation of move from a view location,
and to delete them before all moves are set to done.

Closes #12870
2023-12-26 16:00:06 +01:00
Cédric Krier d9782d97aa Do not hard-code invoice report action in refresh report wizard
This prevents customization of the report by deactivating the report action as
documented.

Closes #12872
2023-12-27 13:33:10 +01:00
Cédric Krier a241eb3f96 Group only customer shipment by cost method
The return shipment does not have this field.

Closes #12842
2024-01-06 01:32:52 +01:00
Cédric Krier 4cbcfc4a4c Remove shipment cost method on sale without carrier
Since 34a5debdca00 a domain enforce an empty shipment cost method when no
carrier is selected. So former order must be updated to still be valid.

Closes #12753
2023-12-23 18:42:46 +01:00
Cédric Krier aa20b2de71 Update planned date of assigned move from shipment and production
Closes #12867
2023-12-23 02:32:43 +01:00
Cédric Krier 435e3a0c59 Do not copy drop moves when copying move
Closes #12848
2023-12-20 13:12:32 +01:00
Cédric Krier 14596be0b8 Add CompanyTestMixin to sale advance payment tests
Closes #12845
2023-12-19 18:09:12 +01:00
Cédric Krier d67158f723 Inherit access from sale for advance payment condition 2023-12-19 18:05:28 +01:00
Cédric Krier 6188d35854 Add missing company context to line of advance payment term line account 2023-12-19 18:03:19 +01:00
Cédric Krier 8c7e035976 Do not raise warning when shipment quantity difference is 0
Closes #12817
2023-12-11 16:35:18 +01:00
Cédric Krier 2cbc71847b Factorize assign_supplied of Sale to reuse assign_try of Move 2023-12-08 14:00:08 +01:00
Cédric Krier ae9746f4e0 Pick only from children location when assigned stock move from supplied sale line
Closes #12812
2023-12-08 12:53:16 +01:00
Cédric Krier 2cab2b2282 Do not check warnings with access checked
The user does not have access right to delete warnings.

Closes #12861
2023-12-22 16:57:43 +01:00
Cédric Krier 10a5cb783e Return list of instance as result of test tax wizard
Since 0db956eb2505 the on_change_with for xxx2Many must return a list of
instances.

Closes #12852
2023-12-23 01:47:24 +01:00
Cédric Krier e3be4a5897 Do not rely on invoice state to compute reconciliation lines
Closes #12864
2023-12-22 18:43:55 +01:00
Cédric Krier 675f848571 Include location code when testing record name of forecast
Since e229080e430e the location record name contains the code.

Closes #12869
2023-12-26 13:21:06 +01:00
Cédric Krier 3d0512ed89 Use correct id for error message when creating invoice line not draft
Closes #12863
2023-12-22 18:34:45 +01:00
Cédric Krier 3f11b8f6b5 Delete inventory moves when shipment is reset to draft
Closes #12826
2023-12-14 10:28:12 +01:00
Cédric Krier 94e7196488 Add test scenario for cancelled purchase request from sale supply
#12825
2023-12-21 13:11:20 +01:00
Cédric Krier 3a711d631d Reset and cancel shipment when purchase request is cancelled
The stock moves of the linked sale line is cancelled so the linked shipment
state must be updated to synchronize the inventory moves or to cancel it.

Closes #12825
2023-12-13 23:27:42 +01:00
Cédric Krier eb681a2ece Document that payment method is needed to run pay invoice wizard 2023-12-15 10:12:14 +01:00
Adrià Tarroja Caubet 35a048deea Rename move uom to unit to compute credit limit quantity
Since 7129f417a22c the unit field has been renamed on stock move.

Closes #12875
2023-12-28 12:25:05 +01:00
Cédric Krier 2d8df237dd Do not fill invoice date when advance payment condition has no delay
Closes #12844
2023-12-19 16:22:05 +01:00
Cédric Krier e5f73ea902 Set to wait only once each shipment
When shipments are groupes they may appears multiple times in the list so we
must use a unique set.

Closes #12839
2023-12-18 19:13:28 +01:00
Cédric Krier 8d9156df84 Add ondelete RESTRICT on Many2One of party ValueMixin
Closes #12809
2023-12-07 23:24:37 +01:00
Cédric Krier acd0ae2ad2 Remove unused view from purchase invoice line standalone
The view is no more used since 17796866a629
2023-12-11 12:12:23 +01:00