Cédric Krier
7010cd1717
Lock journal period when automatically creating one
...
This avoids uniqueness constraint error in case of concurrent creation.
Closes #10747
2023-01-21 18:47:49 +01:00
Cédric Krier
a228bb153b
Cancel Stripe Setup Intent using the right id
...
Closes #12031
2023-01-23 16:24:14 +01:00
Nicolas Évrard
1fdfe31b1e
Get directly the string value of Selection fields in non editable views
...
Closes #10331
2023-01-29 01:12:24 +01:00
Cédric Krier
51d2a1ad1a
Set cursor on type of identifier
...
This is the first field to fill when creating a new identifier.
2023-01-30 00:41:30 +01:00
Cédric Krier
3c506fe15d
Add ButtonActionException and RPCReturnException
...
The RPCReturnException returns the result method instead of raising an
exception.
The ButtonActionException launch an action instead of executing the button.
Closes #12009
2023-01-17 13:26:42 +01:00
Cédric Krier
8532fa3bd5
Update One2Many validate to use promise based API of pre_validate
...
Closes #12039
2023-01-30 00:16:07 +01:00
Cédric Krier
ee5cb27962
Create lot for output product when needed
...
When the output product has a sequence and a lot is required, we create a new
lot to set on the output move.
Closes #11923
2023-01-24 10:53:23 +01:00
Cédric Krier
8ee974fb19
Add prefix and suffix as optional column of sequence list
...
Closes #5424
2023-01-22 16:50:38 +01:00
Cédric Krier
86587f8c94
Use exception logger when catching exception
2023-01-26 18:33:40 +01:00
Cédric Krier
4573a5c90e
Call preventDefault as soon as possible in sao
...
This is safer in case exception is raised before so the browser may try to
submit the form and trigger a reload of the application.
Closes #6419
2023-01-27 00:03:00 +01:00
Cédric Krier
defb428339
Do not register tests module when pool is not started for testing
...
Closes #6846
2023-01-23 23:00:29 +01:00
Cédric Krier
fbbd4ac109
Use only 2 digits for module percentage
...
Closes #5838
2023-01-22 23:39:18 +01:00
Cédric Krier
fecffb3124
Update purchase request state after the purchase transition
...
Closes #6362
2023-01-23 00:43:49 +01:00
Cédric Krier
debf8aabfa
Use tzinfo.tzname instead of key to display timezone on cron
...
key is a specific to ZoneInfo implementation when tzname is part tzinfo API.
Closes #12036
2023-01-25 00:53:43 +01:00
Nicolas Évrard
e1361ddac3
Use arrow functions in Sao.Window.Form.response
2023-01-26 22:46:53 +01:00
Nicolas Évrard
45043d706e
Use a promise based API for Record.pre_validate()
...
Closes #12039
2023-01-25 15:14:26 +01:00
Cédric Krier
575527bf60
Do not check access for action window without model
...
The check was introduced in d41d48d68cdf but without ensuring that the action
has a model to check.
Closes #12029
2023-01-26 21:28:28 +01:00
Cédric Krier
ae0775abd0
Activate tests module in setup of FieldMany2OneTreeTestCase
2023-01-23 00:14:26 +01:00
Cédric Krier
639168a7b0
Fill warehouse locations in stock_shipment_measurements tests
...
Since 6efb7bc9d60f the warehouse locations are required but they are not
filled in unit test because on_change's are not called.
Closes #12045
2023-01-27 12:18:14 +01:00
Sergi Almacellas Abellana
20ddd2e911
Include supervised employees in timesheet reporting
2023-01-26 12:17:52 +01:00
Sergi Almacellas Abellana
07d8b81c1b
Add access rules for weekly and monthly reporting
...
Closes #11944
2023-01-09 15:03:49 +01:00
Sergi Almacellas Abellana
0d2a594fb0
Remove employee from employee hours rule
2023-01-09 15:03:45 +01:00
Cédric Krier
7fba550c13
Update cookiecutter url in module tutorial
2023-01-23 12:57:53 +01:00
Sergi Almacellas Abellana
e779b8107e
Add rec_name searcher on reporting models
...
Closes #11263
2023-01-09 14:49:16 +01:00
Cédric Krier
e072f4bc9e
Fix source clause of empty translation source introduced by 4ec2377b84e5
2023-01-25 09:41:24 +01:00
Cédric Krier
b0b4ff7592
Notify when product is supplied on sale and has purchase order point
...
Closes #11969
2022-12-29 13:05:20 +01:00
Cédric Krier
e7b8a145f0
Add reference in record name of sale opportunity
...
Closes #3641
2023-01-21 20:35:15 +01:00
Cédric Krier
69a1be6404
Assign all possible shipments and productions when trying
...
If assign_try fails to assign all the moves, we check if all the moves of each
shipment and production are assigned and then assign them.
Also we remove the boolean return which makes no more sense.
Closes #7006
2023-01-14 15:41:26 +01:00
Cédric Krier
d62f2acb08
Instantiate always Screen for xxx2Many fields with the same parameters
...
The screen must be instantiated with the context of the parent screen so
eventual field_view_get would give the same result.
The limit must always be set to None/null to ensure to load all the records.
The breadcrumb must be set to show navigation to the user.
Closes #3140
2023-01-21 19:37:19 +01:00
Cédric Krier
aa5885ff6f
Make product supplier price list editable
...
Closes #3618
2023-01-21 20:23:51 +01:00
Cédric Krier
bb8dc2961b
Put sequence on top right of the form for product supplier price
2023-01-21 20:22:59 +01:00
Cédric Krier
5d82f65fd8
Add generic test for field function searcher and domain field method
2023-01-11 12:29:25 +01:00
Cédric Krier
704aaf01de
Support None as search value of composite rec_name
2023-01-12 11:36:41 +01:00
Cédric Krier
cad8cad4ef
Do not convert into float search amount of invoice if it is None
2023-01-12 11:36:01 +01:00
Cédric Krier
cab1cf2f87
Add help text about price selection of product
...
Closes #8950
2023-01-08 18:12:49 +01:00
Cédric Krier
0da84b21a3
Allow children location as source of outgoing moves for customer shipment
...
When the output location is the same as the storage location, we should allow
to record that products have been picked in a children location.
Closes #11973
2022-12-29 19:07:56 +01:00
Cédric Krier
25b83527a0
Do not try to fuzzy update empty source of translation
...
Closes #11881
2022-12-26 22:28:04 +01:00
Cédric Krier
8e51294514
Rewrite read/write error messages to be independent on time
...
id may not exist not only because it was deleted. They may never exist or the
action happen in the past.
Closes #3825
2023-01-21 23:52:55 +01:00
Cédric Krier
746d1d840a
Add cookiecutter template for module
2023-01-11 19:01:37 +01:00
Cédric Krier
1ca173894b
Use standard functools.wraps instead of wrapt
2023-01-14 11:43:51 +01:00
Cédric Krier
7dd21444bb
Add check if RNG files are up to date
2023-01-15 11:42:01 +01:00
Cédric Krier
ea481922c9
Pass wizard config when converting action in proteus
2023-01-17 14:40:43 +01:00
Cédric Krier
5c622e69d8
Use direct downloads.tryton.org instead of CDN
2023-01-16 15:07:08 +01:00
Maxime Richez
f653dc7b6d
Apply check_stock_quantity per warehouse line
2023-01-09 16:13:22 +01:00
Cédric Krier
82b10ce017
Fix typo when calling get_state_attrs introduced by a151a379886f
2023-01-21 19:39:55 +01:00
Cédric Krier
88ba4c7762
Expand address fields on sale and purchase form
2023-01-14 19:55:05 +01:00
Cédric Krier
abedf2cdfe
Use the same width chars in tryton than in sao
...
This unifies even more the rendering between clients.
2023-01-14 19:53:50 +01:00
Cédric Krier
557acf3e25
Increase default size of main window
...
The average size of screen increases over time.
2023-01-14 19:52:29 +01:00
Cédric Krier
f3b8a9dcd3
Compute history datetime only when invoice has been actually posted
...
Relying only on the numbered_at being filled make the posting process use the
history data once the number has been set on the invoice. But as the move
computation (with the payment term) happens after, they are done using the
history data (which maybe corrupted see #11980 ).
Closes #11982
2023-01-02 13:16:07 +01:00
Cédric Krier
5836fd178c
Do not select first record by default
...
Closes #11814
2022-12-30 23:41:40 +01:00