Commit Graph
59019 Commits
Author SHA1 Message Date
Cédric Krier 57fbc89e78 Use TMPDIR as data folder to test demo
This reverts c4ab3ed92bf3 because since 6837a618f53d the size required is too
much for the default shm_size (300000 bytes) of the runners.
2024-12-25 14:30:44 +01:00
Cédric Krier 91f80aa529 Always send id for the on_change calls
Since cc277611c254 we rely on the id to decide if the instance is a new
instance from the server-side or from the client-side.

Closes #13769
2024-12-21 14:14:52 +01:00
Cédric Krier 523264e287 Compute default values of wizard view only for fields defined by value method
ba6b8ce0e692 introduces the reuse of Model.default_get to set the rec_name for
the values but it does by computing for all the fields which override the
actual default values.
2024-12-23 16:44:11 +01:00
Cédric Krier 00dff7193c Do not delete optional value for fields not set by the call
The same view may have different set of fields if it is extended conditionally.

Closes #13758
2024-12-16 15:38:11 +01:00
Cédric Krier 13a3f882a9 Share the same local cache for alone records saved together
The local cache must be shared between records from the same list of ids.

Closes #13704
2024-11-27 10:26:31 +01:00
Cédric Krier ab06c97ade Set journal mode, synchronous and optimize on SQLite connection
Closes #13609
2024-12-15 01:46:39 +01:00
Cédric Krier 030305ec49 Set screen to ScreenContainer at instantiation
Many methods of ScreenContainer relies on the screen being set.
And there is no reason to not set the screen at instantiation as long as show
filter refresh the bookmarks.

Closes #13757
2024-12-18 17:54:06 +01:00
Cédric Krier 43014db8ac Test if today is using the timezone of the contextual company 2024-12-16 17:23:03 +01:00
Cédric Krier d9b9d52643 Test if contextual company id is positive before using it to get the timezone
Closes #13702
2024-12-16 16:55:06 +01:00
Adrià Tarroja Caubet fb4600e095 Add method to return spanish tax identifiers for reports 2024-05-21 13:51:25 +02:00
Adrià Tarroja Caubet 7bc1d18cca Use es_code() to render AEAT reports
Closes #13242
2024-05-07 17:32:52 +02:00
Cédric Krier 5adb1e9356 Test default_get with instance value and rec_name 2024-12-22 17:25:46 +01:00
Cédric Krier be5d4fcfc4 Do not compute record name for negative id
With ba6b8ce0e692 the record name of default values are also computed for
one2one and reference but reference fields can have a default value with only
the model part by using a negative id. In this case we should not compute a
record name.
2024-12-22 17:24:22 +01:00
Cédric Krier 88b7266c6e Enforce record rules on resources
The rules of the resource record must be enforced like the model access.

Closes #13706
2024-11-27 19:48:27 +01:00
Nicolas Évrard 6f77a527b5 Add missing dot on the form-binary class selector
Closes #13766
2024-12-19 17:08:28 +01:00
Cédric Krier e492b6d048 Convert None as empty string when searching on Char or Text
Closes #13584
2024-11-24 18:01:51 +01:00
Cédric Krier c03dff9352 Support instances as default value
Closes #13694
2024-11-20 12:08:20 +01:00
Cédric Krier 7e5ef52975 Group on company currency in sale reporting
It is needed to construct unique ID when grouping by other mean than the line id.
Also the revenue is computed in the company currency.

Closes #13744
2024-12-12 00:42:58 +01:00
Cédric Krier 44957156d3 Ignore KeyError from the pool when filtering model names
When the database is updating, Model.get_name_items can be called while the
pool is not yet completely filled. So some model stored in the table may not
yet be in the pool. In this case we should ignore them.

Closes #13761
2024-12-18 17:01:24 +01:00
Cédric Krier 7464e4005c Keep raising HTTPException in with_pool wrapper
This was removed by mistake in c8ebaa541e21

Closes #13771
2024-12-21 18:58:50 +01:00
Cédric Krier 5b5377abca Use payment element for Stripe checkout
Closes #10031
2024-11-28 11:51:20 +01:00
Cédric Krier 43ca1d4968 Use HTTPStatus for Stripe routes 2024-11-17 16:45:36 +01:00
Cédric Krier 1fd50fb805 Retry locking tables at the same speed as the dispatcher request 2024-12-18 13:51:44 +01:00
Cédric Krier 167dc9629e Use /dev/shm as database path in demo CI jobs 2024-12-17 16:01:05 +01:00
Cédric Krier 430a359eed Use TMPDIR for CI jobs 2024-12-17 16:00:31 +01:00
Cédric Krier f1161d2aba Log request duration at wsgi_app level instead of with_pool
This gives more accurate duration as other decorators may take time to execute.

Closes #13650
2024-11-05 19:05:41 +01:00
Cédric Krier ee49ab66f9 Include the exceeding amount in the message about credit limit 2024-10-30 17:11:43 +01:00
Cédric Krier 5ef23b4335 Improve syntax of credit limit messages 2024-10-30 16:34:14 +01:00
Cédric Krier f5bf25a996 Use level and line name as record name for account dunning 2024-10-30 16:20:51 +01:00
Cédric Krier 5299f36eb9 Include amount in record name of account move line
Only the account code is used to limit the size of the name.
2024-10-30 16:19:57 +01:00
Cédric Krier 2b6166f155 Add original amounts before promotion
Closes #13633
2024-10-26 00:10:56 +02:00
Cédric Krier afc6c5a913 Require draft unit price if a promotion is applied on a sale line 2024-10-25 17:21:48 +02:00
Cédric Krier 59a0a8c8a7 Enforce company of promotion using the sale line company field 2024-10-25 17:06:42 +02:00
Cédric Krier 67e200848d Reassign points value instead of updating when changing quality control
The value of points is an immutable dictionary that can not be updated.

Closes #13730
2024-12-11 23:49:56 +01:00
Cédric Krier b26ff9757e Add metadata columns to ModelSQL with table query
Closes #9414
2024-10-25 00:24:39 +02:00
Cédric Krier c40169b8a9 Do not call next_party for account without party required
next_party assign a list with None as parties for the account without party
required. But since 81e16830e46e it is no more valid.
Instead we need to manage account without party explicitly without calling
next_party.

Closes #13760
2024-12-17 17:31:57 +01:00
Cédric Krier 2b8e4fb2dc Use record name for subtest based on record 2024-10-25 00:28:09 +02:00
Cédric Krier 16da4be04f Add report data to header_key
Closes #13627
2024-10-24 18:11:42 +02:00
Cédric Krier 5966a42979 Add reporting with latest date and amount per statement journal
Closes #9330
2024-12-16 09:39:07 +01:00
Cédric Krier 935307dbb2 Add scheduled task to confirm sales based on payment
Closes #13625
2024-10-24 16:01:38 +02:00
Cédric Krier 051bbb3087 Allow customizing the move date created by receivable rules 2024-12-08 11:43:26 +01:00
Cédric Krier 54672a40a9 Set a period from the company of the receivable rule creating move
Closes #13740
2024-12-08 11:41:03 +01:00
Cédric Krier 58647f9ee7 Remove unused docstring in Model definition testing field depends
docstrings are no more used since 23ce421d3bb9
2024-12-05 16:29:42 +01:00
Cédric Krier 4cbce5729e Include the depends of the getter function when depending on a Function field
Since c47b3642f1a6, the getter of a Function field may be called if there is no
value set for it on the instance.
In the on_change context, this may set the missing fields to None if they were
not defined in the depends of the method called. In addition to compute a wrong
value, those fields are then returned as modified.

Closes #13735
2024-12-05 16:25:16 +01:00
Cédric Krier 1360ae6c5d Do not use init values for new record without id to compute the changed values
When using new instance to fill a xxx2Many field, all the values must be
considered as changed and we should not expect any initial value.

Closes #13716
2024-11-30 12:56:41 +01:00
Cédric Krier 34df4552e5 Limit inbound email result to ModelStorage and ModelView 2024-11-16 18:43:16 +01:00
Cédric Krier ce2bc3a3a0 Limit keyword action to ModelView 2024-11-16 18:42:42 +01:00
Cédric Krier 2e974388b9 Limit resource reference to subclass of ModelView and ModelStorage
Closes #13689
2024-11-16 18:42:17 +01:00
Cédric Krier d661f3d8da Allow filtering model names by subclasses 2024-11-16 18:41:25 +01:00
Nicolas Évrard 05abf8ef2b Do not set the Group's context when setting a default group on xxx2Many
The context of the field is dynamic so evaluating it only once when creating
the group make it static.
Also the group is already evaluating the parent field context on the fly when
its context is retrieved.

Closes #13726
2024-12-16 10:29:26 +01:00