Commit Graph
1175 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 4c21901493 Do not fail when accessing sales or purchases attributes for UN/CEFACT Invoice
Closes #12873
2024-01-27 10:21:19 +01:00
Cédric Krier be1aac4fac Support cached_property on object with __slots__
Closes #12894
2024-01-05 01:36:50 +01:00
Cédric Krier 8eea0020b7 Initialize Model attributes of EDocument UN/CEFACT Invoice
The super __init__ method must be called to set some attributes used by Model.

Closes #12895
2024-01-05 01:36:06 +01:00
Cédric Krier 8a69a69cf6 Update request stock move to draft when sale line has no purchase request
When the purchase request is deleted and the process does not require to
recreate a purchase request, the request stock moves must be updated to draft.

Closes #12903
2024-01-20 00:01:38 +01:00
Cédric Krier 3565d06f80 Process for supply sales with the same company
Closes #12945
2024-01-18 10:02:22 +01:00
Cédric Krier 30e80741b6 Use only forecast quantity to process supply on sale
Closes #12901
2024-01-05 17:56:07 +01:00
Cédric Krier e29a075bdb Process for supply sales with the same warehouse
The product quantities must be from the same warehouse.

Closes #12902
2024-01-05 17:55:17 +01:00
Cédric Krier 2f6ab00c76 Test sale and purchases scenario with payment term in cash rounding 2024-01-23 10:55:19 +01:00
Sergi Almacellas Abellana d36ee557ff Fix typo in set_context call when computing sale cash rounded amounts
Closes #12800
2023-12-05 09:34:46 +01:00
Sergi Almacellas Abellana a23879f25c Delete points when deleting quality control
Closes #12942
2024-01-22 16:28:16 +01:00
Cédric Krier f5fc52577f Use today as planned date for assigned move
The inclusion of the assigned move in the computation must be coherent between
quantity and delta.

Closes #12914
2024-01-09 19:42:05 +01:00
Cédric Krier 78abed9f25 Allow selecting blanket agreement line without supplier/customer product
When the order line as a supplier/customer product, we should allow to select
blanket agreement line with the same product or without any product. Because
the supplier/customer product may be added after the blanket agreement is
running.

Closes #12909
2024-01-08 14:28:38 +01:00
Cédric Krier d3e086aace Order cancelled document without number last
Closes #12899
2024-01-05 15:33:57 +01:00
Cédric Krier 9d4aee14f2 Use the same separator between account configuration and create chart wizard
The separator for the default category accounts should be the same between
configuration and the wizard.

Closes #10910
2024-01-05 09:14:19 +01:00
Cédric Krier 276fc2a55d Group the creation of advance payment invoices from sale
It is faster to save the invoices all at once.
2024-01-03 13:47:46 +01:00
Cédric Krier f38c760c2d Append recalled lines from sale advance payment to invoice
This prevents extra save of the invoice and lines by taking advantage of the
process decomposition of bdbd8ba02e94.
2024-01-03 13:40:01 +01:00
Cédric Krier 4841c130de Save invoice before adding recalled lines from sale advance payment
Closes #12889
2024-01-03 13:30:22 +01:00
Cédric Krier 406092be4d Check doctest files
They are converted to python files before running checks.
2024-01-14 19:21:56 +01:00
Cédric Krier b913ad45d8 Add assert methods to test tools
Closes #12879
2023-12-29 19:02:08 +01:00
Cédric Krier f15e7a901f Strip trailing 0 when checking Decimal in doctest output of SQLite
Closes #12878
2023-12-30 19:45:32 +01:00
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