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
5f3df70bd9
Return children length only if children field is loaded
...
Closes #12906
2024-01-06 22:56:46 +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
Nicolas Évrard
e66e35a0bd
Sort correclty eager and lazy fields when calling Form.display
...
Closes #12890
2023-12-22 14:48:49 +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
7b1b686603
Ensure to use the same connection when connecting
...
Closes #10154
2023-12-17 00:38:43 +01:00
Cédric Krier
b1c62be75a
Remove socket option TCP_NODELAY
...
The option is now set by default in standard library
https://github.com/python/cpython/commit/9d8a3ad02acdd7800775b4e1e205bf7c8e47162f
2023-12-17 00:12:41 +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
dfadc5b62b
Do not fail to get keyword action with empty record id
...
Closes #12767
2023-12-23 18:50:58 +01:00
Cédric Krier
1cc73c08ab
Convert __export_row from static method to instance method
2023-12-23 18:30:59 +01:00
Cédric Krier
7b3107a8a0
Instantiate list of ids when exporting data with domain as list of ids
...
Closes #12868
2023-12-23 18:26:00 +01:00
Cédric Krier
27b0b99a44
Compute length of inserted text in bytes
...
Closes #12138
2023-12-23 18:21:35 +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
5fae62689f
Catch InvalidOperation when rounding inserted number
...
Closes #12866
2023-12-23 01:39:53 +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