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
Cédric Krier
f2838915d4
Set invoice account only when changing party or dates
...
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 #12239
2023-04-29 12:56:51 +02:00
Cédric Krier
5335a2022d
Convert sum attribute into boolean
2023-05-06 14:25:22 +02:00
Cédric Krier
84d83120c5
Add receivable/payable to company
2023-04-07 18:24:09 +02:00
Adrià Tarroja Caubet
960c220329
Remove migrations previous to 5.0
...
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier
1a11e103bf
Increase version number
2023-05-01 14:11:22 +02:00
Cédric Krier
1901135502
Prepare release 6.8.0
2023-05-01 13:19:11 +02:00
Cédric Krier
84a2b5e271
Update translations
2023-04-29 10:07:40 +02:00
Cédric Krier
a84cb9f07c
Do not change account nor journal of invoice no more draft
...
Closes #12146
2023-04-08 16:36:38 +02:00
Cédric Krier
51b7fe72f8
Support invoice payment with currency exchange
...
Closes #11500
2023-02-16 18:59:06 +01:00
Cédric Krier
dc979ed50b
Hide pay button on invoice if there is no payment method
...
Closes #12160
2023-03-24 13:21:42 +01:00
Cédric Krier
b9c4b8230d
Return instance in on_change_with methods
2023-03-26 09:49:00 +02:00
Cédric Krier
c32affdc9a
Use generic relate from party to invoice
...
Also for relate from party, it gives more information to the user to display
the number of pending and done.
2023-02-19 16:49:12 +01:00