Cédric Krier
15c468a860
Use dedicated buttons for CSV import and export
...
Closes #10115
2024-09-17 17:24:36 +02:00
Cédric Krier
4e37fb2039
Keep CSV export window opened
...
Closes #13521
2024-09-17 16:50:50 +02:00
Cédric Krier
dba33cbb64
Prevent modification of the stock lot of stock move done or cancelled
...
Closes #13520
2024-09-17 15:49:46 +02:00
Cédric Krier
37022fff21
Prevent deletion of stock lot used for stock move
...
Closes #13519
2024-09-17 15:48:01 +02:00
Cédric Krier
67daf2085b
Use correct binary operator for PYSON Greater and Less
...
Opposite binary operators were commit in b71b2417c4bc.
2024-09-28 16:51:26 +02:00
Cédric Krier
2e9117f6c4
Synchronise PYSON code to represent params
...
Different versions of the code were commit in e2bb5ac20d22
2024-09-28 16:50:07 +02:00
Cédric Krier
c0077445d0
Check that rec_name is searchable on searchable model
2024-09-10 15:40:19 +02:00
Cédric Krier
16136ab2af
Add searcher for name of sale reporting per region
...
Closes #13466
2024-09-10 15:38:44 +02:00
Nicolas Évrard
afd48ab128
Add method to the backend to estimate number of rows
...
Such that each backend can rely on its own statistics.
Closes #13118
2024-09-28 18:02:31 +02:00
Cédric Krier
68ae551752
Add test for fmany2one field
2024-09-19 13:34:15 +02:00
Cédric Krier
f147c94118
Fill the source value of fmany2one in create and write methods
...
We can not rely on the Function field setter to set the value because it may be
too late if the source field is required and for composite key, a partial
update may not be a valid foreign key.
Closes #13522
2024-09-19 13:31:59 +02:00
Cédric Krier
513043dd6a
Always validate record synchronously
...
Closes #13497
2024-09-06 17:47:00 +02:00
Sergi Almacellas Abellana
a87099396c
Clear employee fields when duplicating invoices
...
Closes #13471
2024-09-28 15:19:35 +02:00
Sergi Almacellas Abellana
da4f361d23
Show complete button on shipped shipments
...
Closes #13455
2024-08-21 10:32:12 +02:00
Sergi Almacellas Abellana
e411698df0
Clear packages when copying shipments
...
Closes #13454
2024-09-28 14:24:03 +02:00
Adrià Tarroja Caubet
68d4cc4cc7
Save party configuration after replacing vat identifiers
...
Closes #13387
2024-07-03 14:14:49 +02:00
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