Commit Graph
88 Commits
Author SHA1 Message Date
Cédric Krier e7b10d1406 Increase version number
--HG--
branch : 7.0
2024-04-17 12:45:47 +02:00
Cédric Krier b6ee288b05 Prepare release account_invoice-7.0.4
--HG--
branch : 7.0
2024-04-17 12:45:37 +02:00
Cédric Krier 0a30314a89 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
(grafted from 361b4624d10c7173ce439329d72e37d7fa02d00b)

--HG--
branch : 7.0
2024-03-25 10:17:35 +01:00
Cédric Krier 443a0cc5a5 Increase version number
--HG--
branch : 7.0
2024-04-04 09:51:35 +02:00
Cédric Krier b3cd9f4825 Prepare release account_invoice-7.0.3
--HG--
branch : 7.0
2024-04-04 09:51:23 +02:00
Cédric Krier b6409b7598 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
(grafted from cfd02fdbd6781576e47fd92a9720049c01a1e498)

--HG--
branch : 7.0
2024-03-08 12:29:03 +01:00
Cédric Krier c4d4951525 Remove readthedocs
(grafted from 2f67994e59b0bca29d7b0632a51540774b109140)

--HG--
branch : 7.0
2024-02-18 18:35:54 +01:00
Cédric Krier a124a54658 Increase version number
--HG--
branch : 7.0
2024-02-15 19:39:59 +01:00
Cédric Krier 13a76fa70f Prepare release account_invoice-7.0.2
--HG--
branch : 7.0
2024-02-15 19:39:47 +01:00
Cédric Krier 599c8ba9ad Return values instead of changed result when testing payment term
Since 0db956eb2505 the returned value of on_change_with is set on the field.

Closes #12775
(grafted from aea01e3d595a526f7a093b0f7cef59ad215cab2a)

--HG--
branch : 7.0
2023-11-27 12:43:31 +01:00
Cédric Krier 54c4ec52dd Increase version number
--HG--
branch : 7.0
2024-01-16 00:22:39 +01:00
Cédric Krier e9c7b73f26 Prepare release account_invoice-7.0.1
--HG--
branch : 7.0
2024-01-16 00:22:27 +01:00
Cédric Krier 305747d8ab 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
(grafted from 208637c2d94be75b4c795eb56c0c4405c15bc29d)

--HG--
branch : 7.0
2023-12-27 13:33:10 +01:00
Cédric Krier ace6906d28 Do not rely on invoice state to compute reconciliation lines
Closes #12864
(grafted from 94018bd6531aa5943e5044d925b24c04fc5ecb8c)

--HG--
branch : 7.0
2023-12-22 18:43:55 +01:00
Cédric Krier bf55f9310d Use correct id for error message when creating invoice line not draft
Closes #12863
(grafted from b052e8902bb286b6b1d84333e9b2bacd46970384)

--HG--
branch : 7.0
2023-12-22 18:34:45 +01:00
Cédric Krier 6c91d493b6 Increase version number
--HG--
branch : 7.0
2023-10-30 18:49:03 +01:00
Cédric Krier 65f477f731 Prepare release 7.0.0 2023-10-30 18:17:32 +01:00
Cédric Krier 04af335284 Copy alternative payees of invoice if it is the only party on lines to pay
Only one alternative payee is permitted on draft invoice so we can copy it
only if there is only one and it is the one that was already set when posting
the invoice (only party that appears in the lines to pay).

Closes #12528
2023-10-28 14:04:23 +02:00
Cédric Krier 7105268094 Do not display in invoice report lines to pay that have been reconciled
Since f880d0a6315f the invoice report can be refreshed so only the actual
lines to pay should be displayed.

Closes #12675
2023-10-28 10:47:37 +02:00
Cédric Krier c577fad900 Update translations [skip ci] 2023-10-28 14:15:23 +02:00
Cédric Krier 4e010a988f Add support for Python 3.12 2023-10-22 19:40:55 +02:00
Cédric Krier b037f93b77 Prevent changing company of invoice with lines filled
Closes #12620
2023-10-07 08:47:30 +02:00
Cédric Krier 96a24bcaf6 Remove extra button group access
Since ab05d05bb811 there is no need to have access defined on button if they
are the same as the write access on the model.

Closes #12578
2023-09-20 09:45:20 +02:00
Cédric Krier 590fbe3aa8 Use origin description as fallback description for account move and line
Closes #12571
2023-09-16 10:30:44 +02:00
Maxime Richez fa5ae37c46 Always allow editing invoice reference, description and comment by accounting administrator 2023-09-19 14:17:33 +02:00
Maxime Richez d603d56f71 Allow refreshing invoice report cache
Closes #12091
2023-09-19 14:12:42 +02:00
Cédric Krier c5a3340851 Update taxes when create invoices 2023-07-25 15:34:01 +02:00
Sergi Almacellas Abellana 24a4abc6ba Set employee who validates and posts invoices
Closes #9678
2023-07-06 16:27:53 +02:00
Cédric Krier a4cb3f9f61 Normalize Unit of Measure labels
For short label, we only use UoM with an help text showing with capital letter
the meaning of UoM.
2023-08-20 12:17:27 +02:00
Cédric Krier 523bcd4011 Use module name to build path for readthedocs requirements 2023-09-03 12:03:49 +02:00
Cédric Krier 6a06579e13 Use Sphinx book theme for documentation 2023-09-01 09:44:09 +02:00
Cédric Krier 14bc5d2a6c Use selection widget for journal fields
It is expected to have only a small number of journals.
But also it is uncommon to create of a new journal from a form.
So it provides a better user experience to use a selection widget.
2023-08-06 00:34:16 +02:00
Cédric Krier 91fb1e7c24 Use OR-ed domain when composing clauses from exclusive join
When a searcher of a Function field compose a domain using mutually exclusive
joins, the boolean operator must always be OR because only one clause is not
NULL.

Closes #12291
2023-08-02 20:35:13 +02:00
Cédric Krier adc26533da Add .readthedocs.yaml configuration [skip ci]
This is required by Read the Docs service:
https://blog.readthedocs.com/migrate-configuration-v2/

Closes #12344
2023-08-06 11:06:08 +02:00
Cédric Krier 2be6515fa6 Start remainder with all lines for amount to pay invoice
This is the worst case before finding a better one with a lower remainder.

Closes #12403
2023-07-15 01:05:48 +02:00
Cédric Krier 852741ae54 Set overpayment by default when amount is greater than the amount to pay 2023-07-14 12:02:49 +02:00
Cédric Krier 03e0455e75 Do not allow overpayment of invoice when write-off amount is negative
When paying less than the amount to pay, there is no overpayment.
2023-07-14 12:01:05 +02:00
Cédric Krier c3da634f9f Require lines when paying invoice with write-off or overpayment
This is needed ensure that at least one line to pay of the invoice is
reconciled.
The lines and payment lines are also shown for overpayment.

Closes #12403
2023-07-14 11:59:19 +02:00
Cédric Krier 9f9620445d Align on bottom amount and state of invoice form 2023-07-15 16:13:28 +02:00
Cédric Krier e16444665f Rename close state to closed 2023-06-20 10:13:56 +02:00
Cédric Krier d9865ab943 Simplify tax identifier types of invoice
We do not need to be able to customize it for only the invoice so it can be
customized on party.
2023-06-27 15:06:34 +02:00
Cédric Krier d9e9df28c2 Limit type to tax identifier for party tax identifier of invoice
Closes #12356
2023-06-27 15:00:59 +02:00
Cédric Krier 1353212f31 Hide taxes deductible rate for invoice lines without the type line 2023-06-28 12:25:54 +02:00
Sergi Almacellas Abellana 614cff956d Allow modification of invoice references when report is not cached 2023-06-22 16:11:33 +00:00
Nicolas Évrard 91ed1cddc1 Use indexes and cache to make search on amounts faster
This optimization relies on the idea that few invoices should stay in the
states where the amount cache fields are empty. It splits the search query in
two parts: one on the cached fields, the other on the computation with the
invoice lines (and tax lines when it applies).

Closes #11919
2023-05-27 09:53:47 +02:00
Nicolas Évrard d894c1f442 Add cache on invoice's amounts
Having cache on the invoice's amounts will allow to make search more efficient
for #11919
2023-05-25 16:21:49 +02:00
Cédric Krier ccfb3bd8d5 Add more fields to payment lines of invoice
The same fields than for the receivable/payable line are used.
2023-05-26 18:07:04 +02:00
Cédric Krier c053327018 Show reconciliation lines of invoice also when cancelled
When the invoice is refund with a credit note, it is cancelled instead of paid
so the reconciliation lines from the credit note are not displayed as payment
lines.
So we should display them in this case.
2023-05-17 17:25:03 +02:00
Cédric Krier fc8e2016e7 Compute amount of invoice line tax when changing tax or base
Using on_change_with does not work correctly for editable field because the
value may be changed when the user does not expect it.

Closes #8618
2023-05-17 18:24:40 +02:00
Cédric Krier b0590200db Set invoice journal only when type is changed
Using on_change_with does not work correctly for editable field because the
value may be changed when the user does not expect it.
2023-04-29 12:57:57 +02:00