Sergi Almacellas Abellana
614cff956d
Allow modification of invoice references when report is not cached
2023-06-22 16:11:33 +00:00
Cédric Krier
54a7bd42dd
Set Sendcloud Partner Id header
2023-05-19 17:32:03 +02:00
Cédric Krier
421b0752f3
Normalize stored emails
2023-04-29 19:03:42 +02:00
Cédric Krier
66df0be6a9
Validate email fields
...
Closes #12215
2023-04-29 19:07:13 +02:00
Cédric Krier
13cedb53e8
Convert email address to ASCII to support RFC6530
...
Python email library does not support non-ASCII emails so we convert email
addresses to ASCII version before passing them to sendmail.
Closes #10650
2023-04-29 19:04:18 +02:00
Cédric Krier
635899e7d2
Fill analytic when defer invoice
...
Closes #11306
2023-05-30 16:30:04 +02:00
Christophe Crier
8b52a5b6ac
Ask for date when creating account move from template
...
Closes #8725
2023-06-21 21:57:18 +02:00
Cédric Krier
6278bce20e
Fix message variable for open fiscal year earlier
2023-06-13 15:57:00 +02:00
Cédric Krier
15749e6ab5
Display target quantity of order point on list view
...
The target quantity is always required and visible.
2023-06-18 16:35:35 +02:00
Cédric Krier
74fb2982d6
Remove computed unit digits fields for stock quantity
...
The unit field can be used directly as digits.
2023-06-12 16:23:25 +02: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
Maxime Richez
df3aca4022
Add location and date to inventory name
...
Closes #12188
2023-06-09 09:15:31 +02:00
Maxime Richez
b4ab5413ac
Disable unaccented search for inventory number
2023-06-07 15:37:17 +02:00
Nicolas Évrard
120fe19598
Set right XML ID on message about amount to pay
2023-05-10 17:27:35 +02:00
Cédric Krier
32108f2489
Ensure analytic line domain is still valid after account modification
...
Analytic account can not be changed from normal to any of the root, view or
distribution.
2023-05-17 15:19:37 +02:00
Cédric Krier
1d2eeaa13e
Always enforce company for account of analytic line
2023-05-17 15:03:35 +02:00
Cédric Krier
a936b54fd1
Allow only normal account on analytic line
...
Closes #4030
2023-05-17 14:46:52 +02:00
Cédric Krier
aa1475a467
Use boolean value when enforcing value to edit delivery date of purchase line
...
The clients always convert Boolean field values into boolean so the domain
validation against None value is always failing.
Closes #12306
2023-06-05 15:18:11 +02:00
Sergi Almacellas Abellana
5b53300280
Set date on purchase price context
...
Closes #12309
2023-06-07 09:58:57 +02:00
Cédric Krier
d0b24968c8
Delete delivered to warehouse when party is deleted
2023-06-02 17:46:11 +02:00
Cédric Krier
0bffc1c384
Use defaultdict to compute cost and revenue total of project
...
Since e35820296f3a, sum_tree is use to compute project total but it requires
to have a default value for parents that are not in the list of instances.
Closes #12305
2023-06-05 12:53:59 +02:00
Cédric Krier
08639d8b9b
Add company to context model of stock quantity models
...
Closes #12268
2023-05-30 13:05:34 +02:00
Cédric Krier
b4e809df2a
Instantiate transaction only once when computing stock quantity
2023-05-30 13:03:55 +02:00
Cédric Krier
0c9269d6b2
Do not compute stock quantity for user without company
...
User without company should not see the stock quantity of all the companies
except for root user (as it is used to check for empty location).
2023-05-30 13:02:19 +02:00
Cédric Krier
76b7bf9ffa
Unset company and employee of user when context values are not authorized
2023-05-30 16:36:25 +02:00
Cédric Krier
fb265b66ba
Display payment buttons at the end of move line to pay of invoice
2023-05-26 18:07:39 +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
Sergi Almacellas Abellana
a90ccb386a
Migrate supply_on_sale in history table if activated
...
Closes #12255
2023-06-02 18:59:32 +02:00
Cédric Krier
f55e837704
Do not migrate supply on sale column if it does not exist
2023-06-02 18:26:46 +02:00
Sergi Almacellas Abellana
f9b9a751d4
Fix typo in sale supply register method
...
Closes #12255
2023-05-05 09:58:39 +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
6a5449f315
Test account consolidation with company tests
2023-05-04 14:42:40 +02:00
Cédric Krier
de7bcd6857
Permit to customize field to skip for company rules
2023-05-04 14:40:42 +02:00
Cédric Krier
59759f9b87
Do not repeat "Location" in the string of location type
...
This is redundant and is awkward when typing a filter by type on stock move
like "From Location.Location Type".
2023-05-10 08:51:23 +02:00
Cédric Krier
0e8f642662
Use sum_tree for accounting trees
2023-05-11 16:49:58 +02:00
Cédric Krier
8da59ae521
Use sum_tree for stock reporting margin
2023-05-11 16:35:03 +02:00
Cédric Krier
a248bca2b4
Use sum_tree for sale reporting
2023-05-11 16:27:22 +02:00
Cédric Krier
967de7ab42
Use sum_tree for project work fields
2023-05-11 16:18:49 +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
40d8a5644d
Set context on report instantiation when testing consolidation statement
...
The context of report is set on instantiation and not on execution.
2023-05-15 17:57:58 +02:00
Cédric Krier
b68a8d6598
Deduce ignored sale quantity from credit limit
...
Closes #12226
2023-05-26 17:11:38 +02:00
Cédric Krier
ac74f92f84
Do not deduce negative sale quantities from credit amount
...
Closes #12226
2023-04-27 17:13:39 +02:00
Cédric Krier
1b165ac4bd
Raise error messages for missing currency exchange journal and accounts
2023-05-10 14:57:42 +02:00
Cédric Krier
681988e9dd
Raise an error message for missing write-off method when reconciling
2023-06-01 00:00:37 +02:00
Cédric Krier
4255e6ec1c
Use consistent name for "Write-off"
2023-05-10 14:43:34 +02:00
Cédric Krier
2015647285
Do not fail on missing writeoff account for reconciliation
...
There is no need to check for second currency if there is no account.
2023-05-10 13:14:00 +02:00
Cédric Krier
c1ca4757b3
Set explicitly account template type to None
...
#11143 removed some type value to follow the constraint of children having the
same type. But as there is no explicit value the old one is kept and so the
chart template may be invalid.
Closes #12280
2023-05-19 11:53:21 +02:00
Cédric Krier
9ad5356fa5
Call get_currencies from super to add balanced when reconcile deposit account
...
The changeset f9560247a0fc changed the name of the function without renaming
the super call.
Closes #12266
2023-05-11 09:38:33 +02:00
Sergi Almacellas Abellana
cf95121e98
Do not test quantity for lines of type different than line
...
Closes #12274
2023-05-16 09:35:15 +02:00