Commit Graph
132 Commits
Author SHA1 Message Date
Cédric Krier 9dc25266b0 Implement a strategy of O(n) to find the best combination of lines to reconcile
The combination implementation is replaced by strategy that search the
smallest remaining from the order lines by removing the last debit or credit
depending on the remaining sign.

Closes #13451
2024-08-19 23:58:41 +02:00
Cédric Krier a2dfc4455b Refine index definition
- Set low and high cardinality to index usage
- Use Range usage for numerical expression instead of Equality
2024-07-27 18:36:14 +02:00
Cédric Krier 01574e6700 Add searcher to summary fields
Closes #13401
2024-07-18 10:12:04 +02:00
Cédric Krier 48ad8ebb02 Add filtered One2Many fields on sale, purchase and invoice
This allows to create only instances for the lines of type line when only
those lines are needed.
This mainly avoid to compute amount for subtotal lines when accessing the
amount of instance of type line.
2024-06-22 16:50:48 +02:00
Cédric Krier 115b1e0aee Unify message ID when creating invoice tax on non draft invoice 2024-07-27 10:23:30 +02:00
Cédric Krier 04f803bac3 Fix message ID when creating invoice tax on non draft invoice
Closes #13402
2024-07-27 10:22:32 +02:00
Sergi Almacellas Abellana a4e568738b Allow admin users to update invoice line description
Closes #13277
2024-05-23 11:14:22 +02:00
Cédric Krier fcace41a1b Included nested fields when searching invoice payments on move line
Closes #13377
2024-06-30 13:04:45 +02:00
Cédric Krier 13c4ed1c0b Sum only invoice lines of type line to update untaxed amount
Closes #13357
2024-06-22 16:46:54 +02:00
Cédric Krier 5823bce6cf Add tools to apply types to SQLite select queries 2024-07-04 08:45:19 +02:00
Juan Jose Pablos fbe87b99c8 Replace link to configuration document by ref to labels 2024-07-08 19:00:26 +02:00
Cédric Krier 09985de225 Always clear cached amount before storing it
This is safer as if for some reason the cache is filled with wrong data, the
values will be fixed instead of keep propagating it.
2024-06-13 12:32:08 +02:00
Cédric Krier f0b1c9d590 Align label in the middle of image 2024-06-25 12:28:11 +02:00
Cédric Krier 390310d7de Do not save invoice sequence in set_invoice_sequences tests
This prevents the warning about unsaved relation record as the fiscal year is
not yet created.
2024-06-09 14:58:34 +02:00
Cédric Krier 77363b377f Optimize and simplify search query for invoice amount
There is no need to include record rule clause in the searcher.
And the grouping can be done only once.
2024-04-28 17:28:58 +02:00
Cédric Krier 43599f9927 Use SQL query to compute reconciliation lines of invoices
Closes #13260
2024-05-16 16:06:49 +02:00
Cédric Krier c54d3e89ec Extract SQL query for lines to pay of invoices 2024-05-16 14:47:22 +02:00
Cédric Krier 06270e6a7a Use decimal 0 without digits as default value
If the digits of the field is 0, than using '0.0' trigger the validation error
introduced by 2be02f249a1d.

Closes #13197
2024-04-30 19:15:44 +02:00
Cédric Krier 1035df5340 Test if cache amount is null to include tax amount when searching for amount
Closes #13219
2024-04-28 17:30:17 +02:00
Cédric Krier 0442c7475b Update reports to display company logo 2024-04-19 23:30:05 +02:00
Cédric Krier cd8777277a Update translations [skip ci]
Closes #13225
2024-04-30 13:09:39 +02:00
Cédric Krier 38a3a8e68e Increase version number 2024-04-29 18:03:56 +02:00
Cédric Krier 2fc668b9f7 Prepare release 7.2.0 2024-04-29 17:31:11 +02:00
Cédric Krier b443997044 Update translations [skip ci] 2024-04-27 18:44:57 +02:00
Cédric Krier 4acd946200 Use id as default payee value on pay invoice wizard
Closes #13140
2024-04-21 15:33:42 +02:00
Cédric Krier 787595125a Depends on xxx2many fields when they are assigned by a change function
Closes #13099
2024-04-22 08:59:48 +02:00
Cédric Krier 681b5e7d64 Do not rely on taxes order to compare with default invoice line taxes
Since 6f4fa96a654c invoice line taxes are compared with the default taxes but
the order may not be the same.
The order on Many2Many is not relevant because the computation always sort
using Tax.sort_taxes.
2024-04-21 22:17:28 +02:00
Sergi Almacellas Abellana a71931c15b Add employee fields on invoice form
Closes #13128
2024-03-25 15:30:57 +01:00
Cédric Krier 79e5ab807d Set posting employee only when using button
As the posted by employee field can not be modified once the invoice is
posted, the employee must be set only when it is an action of the user.
On processing the invoice, it is the internal posting method that must be used
so no employee is set nor any other warning checks.

Closes #13124
2024-03-25 10:17:35 +01:00
Cédric Krier 0f06ca9142 Raise a warning when validating invoice with non default taxes
Closes #3818
2024-02-19 12:43:52 +01:00
Cédric Krier 80b61a9f63 Store model on ir.rule.group 2024-02-25 13:45:21 +01:00
Cédric Krier 5448a91bf7 Store model on ir.model.button 2024-04-06 10:48:45 +02:00
Cédric Krier 9193a425d1 Store model name on ir.model.access 2024-04-06 14:10:01 +02:00
Cédric Krier 40d4fe61ac Set invoice line state to paid when invoice is cancelled with cancel move
Such invoice line should be considered as booked for example to compute the
invoiced quantity of stock move.

Closes #13085
2024-03-08 12:29:03 +01:00
Cédric Krier 88ac130d2f Remove readthedocs 2024-02-18 18:35:54 +01:00
Cédric Krier ce530c6c0b Remove custom table names 2023-12-26 12:18:00 +01:00
Cédric Krier b4608428fb Compute name of the product for sale, purchase and invoice lines
Instead of having the code in the report templates, we use a property that can
be extended without updating the template.

Closes #12892
2024-01-04 23:55:09 +01:00
Cédric Krier bfbab59ebf Use usage from context for default contact mechanism on party 2024-01-04 18:48:14 +01:00
Cédric Krier 5181591ed7 Use template substitution for company header/footer
Closes #12699
2024-01-04 18:55:06 +01:00
Cédric Krier 69bdce8b29 Use include directive for subdirectory documentation
Closes #12822
2023-12-24 10:48:07 +01:00
Cédric Krier 40b8cf0eca Support linkcheck ignore per module documentation
If a linkcheck_ignore.json exists in the doc folder, it is loaded to extend
the linkcheck_ignore configuration of Sphinx.
2024-01-01 13:43:49 +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 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 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 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
Sergi Almacellas Abellana 44c73a2118 Fix typo in invoice post exchange credit account message 2024-01-10 10:04:24 +01:00