Cédric Krier
8d9da767bb
Do not try to assign currency id to the invoice if the currency has not be found
...
Closes #13538
2024-09-20 15:52:43 +02:00
Cédric Krier
6bda7c336f
Do not format discount with currency if there is no currency
...
Closes #13531
2024-09-19 19:30:06 +02:00
Cédric Krier
8523552c12
Test invoice of invoice line before using it to compute remaining quantity
...
Closes #13534
2024-09-19 19:14:31 +02:00
Nicolas Évrard
5cbedc1afd
Add tests on PYSON default value
2024-09-27 15:30:47 +02:00
Nicolas Évrard
4a8300f0b2
Handle PYSON default value in Eval for repr
...
Closes #13533
2024-09-19 16:16:20 +02:00
Sergi Almacellas Abellana
38dbf23c3d
Remove unexisting model keyword from msg_size_validation catalan translation
...
Closes #13516
2024-09-17 10:42:45 +02:00
Cédric Krier
6e798f98fc
Test if origin id is greater or equals to 0 before accessing the target record
...
Closes #13498
2024-09-09 12:46:16 +02:00
Cédric Krier
04f378c503
Add example for connection to PostgreSQL with OS user name
2024-09-24 10:09:46 +02:00
Cédric Krier
3d8fcb97bd
Start PostgreSQL URI path with a '/'
...
Since https://github.com/python/cpython/issues/76960 if the path of the URI
does not start with a '/', the netloc is removed.
Closes #13543
2024-09-24 10:19:57 +02:00
Cédric Krier
19153c0ab5
Do not copy origin of stock inputs and outputs when duplicate productions
2024-09-06 13:32:08 +02:00
Cédric Krier
eeb9ba5650
Do not copy origin of stock moves when duplicate shipments
...
Closes #13496
2024-09-06 13:31:44 +02:00
Cédric Krier
899d9db2ee
Format quantities of over shipment warning message with the unit
2024-09-06 10:09:14 +02:00
Cédric Krier
52a03f03df
Do not format quantities with digits in over shipment warning message
...
The rounding, due to the number of digits, may display an confusing message
for which both quantities are the same.
Closes #13495
2024-09-06 10:08:09 +02:00
Cédric Krier
60683dc14d
Round up the measurements for package shipping APIs
...
Closes #13494
2024-09-05 13:47:53 +02:00
Maxime Richez
c7177facfe
Do not reset non-existent fields on requisition in draft state
...
Closes #13532
2024-09-19 13:55:32 +02:00
Cédric Krier
62b079225f
Remove $ before series in formatted document URL without base URL
2024-09-03 17:55:42 +02:00
Cédric Krier
858757c5d7
Update scenario for the merge of warehouse_location and storage_location in order point
...
fb59b06d251b merged both fields into a single location field.
#13476
2024-09-24 18:41:47 +02:00
Cédric Krier
effe2f74e2
Do not fail to clean fields from missing model from the pool
...
Closes #13504
2024-09-12 13:17:37 +02:00
Cédric Krier
8f4e926c81
Add setup indexes method to ModelSQL
...
As __setup_indexes__ is always called on all the ModelSQL once they have been
setup in the pool, this ensures that the definition of indexes is
deterministic.
Also it provides a new hook to customize indexes after the default
definitions.
Closes #13299
2024-08-31 21:13:55 +02:00
Cédric Krier
eefdb714b1
Group accounts per company when computing the balance, debit or credit
...
The Move.query_get relies on the contextual company to filter the lines.
So when computing an amount for an account, its company must be in the context
of the query_get call otherwise no lines will be selected and the amount is
always 0.
Closes #13483
2024-08-30 12:50:29 +02:00
Cédric Krier
c47fc79f06
Link stock moves with invoice lines only for the same quantity sign as the order line
...
When invoice lines are created to correct invoices quantity, it should not be
linked to stock moves because it comes from a stock move being cancelled.
Closes #12972
2024-08-27 13:24:29 +02:00
Cédric Krier
4a14245e10
Ensure effective date is before or after origin or outcome stock moves
...
When the source of the move is the same as the destination of its origin or
outcomes, the stock move can not be done before those moves.
When the destination of the move is the same as the source of the its origin
or outcomes, the stock move can not be done after those moves.
Closes #12851
2024-08-26 22:53:34 +02:00
Cédric Krier
2dfc489ea0
Add outcome moves to stock move
...
It contains the stock moves for which the stock move is the origin.
2024-08-26 22:49:51 +02:00
Cédric Krier
6177198b64
Remove favorite management
...
Since 8976c8708997 user has no write access to any favorites.
But the user can add/remove favorites from the menu entry which is enough for
most of the use case.
Closes #13335
2024-08-27 00:29:10 +02:00
Cédric Krier
a38fc477f5
Remove sequence order on menu favorite
...
Instead we order the favorites of a user by descending id. Such that the last
favorite set is the first from the list. So user can put a favorite back on
top by unset a menu and set it again.
2024-08-27 00:16:24 +02:00
Cédric Krier
50122462ed
Display favorite users on menu form
2024-08-27 00:11:50 +02:00
Adrià Tarroja Caubet
9828450d2f
Display user on menu favorite list
...
Closes #13246
2024-08-27 00:04:46 +02:00
Cédric Krier
39b05c1259
Replace order point uniqueness validation by SQL constraints
...
Closes #13476
2024-08-26 19:02:39 +02:00
Cédric Krier
07eb4dc3f9
Simplify PYSON expression of order point fields
2024-08-26 19:01:42 +02:00
Cédric Krier
564598270f
Remove contextual domain on company of order point
2024-08-26 19:00:34 +02:00
Cédric Krier
f3565271a7
Merge warehouse_location and storage_location in order point
...
#13476
2024-08-26 19:08:39 +02:00
Cédric Krier
1be542991a
Add test scenario for extended intrastat export
2024-09-22 15:13:38 +02:00
Maxime Richez
a7dba58f95
Remove extra columns from Belgian standard intrastat export
...
Closes #13368
2024-09-22 15:08:43 +02:00
Cédric Krier
1da4e8811e
Group numbering account move when posting
2024-08-27 13:35:18 +02:00
Cédric Krier
0d077539bf
Store computation of invoice sequence type as cache after numbering
...
Closes #12080
2024-08-25 13:08:56 +02:00
Cédric Krier
b1ba498b87
Group numbering invoices
...
Closes #12080
2024-08-25 12:42:57 +02:00
Cédric Krier
97ac57e1e9
Group numbering shipments
2024-08-25 12:18:07 +02:00
Cédric Krier
4f4c5e811d
Group numbering sale subscriptions
2024-08-25 12:17:52 +02:00
Cédric Krier
0c8a24533c
Group numbering sale blanket agreements
2024-08-25 12:17:35 +02:00
Cédric Krier
2daea7a961
Group numbering sales
2024-08-25 12:17:14 +02:00
Cédric Krier
91106c596d
Group numbering purchase request quotations
2024-08-25 12:16:59 +02:00
Cédric Krier
daabf44acf
Group numbering purchase blanket agreements
2024-08-25 12:16:36 +02:00
Cédric Krier
cae99922de
Group numbering purchases
2024-08-25 12:16:12 +02:00
Cédric Krier
3ee4a0febd
Group numbering productions
2024-08-25 12:15:56 +02:00
Cédric Krier
46b6c17595
Group numbering of account assets
2024-08-25 12:15:39 +02:00
Cédric Krier
7bafe98a0c
Group generation of stock lot number
2024-08-25 11:02:33 +02:00
Cédric Krier
3d7a9e22f4
Group numbering POS sale
2024-08-25 11:02:05 +02:00
Cédric Krier
5e61338bda
Generate all gift card numbers at once
2024-08-25 11:01:36 +02:00
Cédric Krier
ead6ea96dd
Group generation of BOM's code at creation
2024-08-25 11:00:20 +02:00
Cédric Krier
10949e13fa
Group generation of product code at creation
2024-08-25 10:59:44 +02:00