Cédric Krier
d9ef6a486f
Do not fail to render field without type in model graph
2024-12-23 15:29:56 +01:00
Cédric Krier
7ac5427f1c
Search relational models by name in model graph
...
Since a4f347999b83 the name of the model is stored in the name field.
2024-12-23 15:29:00 +01:00
Cédric Krier
5229eaf4dc
Do not select current record if it is no more in the group
...
on_change calls may remove the current record without updating the screen such
that it is not possible to compute a selection path.
Closes #13770
2024-12-21 18:12:09 +01:00
Cristina Sangrador
2c0f7be02d
Do not try to create periods when renewing a fiscal year without periods
...
The computation of interval raises a ZeroDivisionError because the length of
periods is 0.
Closes #13671
2024-12-28 14:00:38 +01:00
Cédric Krier
c2ae94e94b
Fix import order
...
With the removal of try/except import of ssl, the following imports must be
sorted.
2024-12-28 11:59:56 +01:00
Nicolas Évrard
c9072f993e
Use an SSL Context when making a request to check the server version
...
python 3.13 removed the cafile keyword argument thus we have to use an SSL
Context to use those
Closes #13772
2024-12-23 11:56:35 +01:00
Nicolas Évrard
2ab12e8b40
Don't overflow select tag arrow with the option text
...
Closes #13765
2024-12-19 16:15:39 +01:00
Cédric Krier
555748ef01
Process Stripe and Braintree payments on checkout
...
Closes #13691
2024-12-15 19:15:39 +01:00
Cédric Krier
001bfe69c6
Make payment group optional per process method
2024-12-15 19:06:20 +01:00
Sergi Almacellas Abellana
f9e4940ed7
Override _get_invoice_sale instead of create_invoice to set agent on invoice
...
This avoids saving invoices one by one.
2024-12-28 00:38:13 +01:00
Cédric Krier
b72a6f0e7d
Call on_change_notify for fields update by on_change
...
Closes #13753
2024-12-12 17:42:32 +01:00
Cédric Krier
ce958434a8
Call on_change_notify for fields update by on_change_with
...
Closes #13752
2024-12-12 17:41:46 +01:00
Cédric Krier
db8c876451
Propagate notifications to the parent group for screen without info bar
...
Closes #13751
2024-12-12 17:40:16 +01:00
Cédric Krier
c5b039fade
Return the attachment promise in attach callback
...
This way the button stays disabled until the drop down menu is filled.
Closes #13755
2024-12-12 23:39:43 +01:00
Cédric Krier
f8ec37f24d
Trigger change on "Selected Records" when predefined export is selected
...
The change callback set the visibility of the "Ignore search limit".
Closes #13754
2024-12-12 18:46:07 +01:00
Cédric Krier
d6e0bfc053
Add new country subdivision types
2024-12-15 15:02:40 +01:00
Cédric Krier
ee79c18d80
Support TEST_PYTHONWARNINGS in doctest
...
We restore the doctest_setup to setup the python warnings based on
TEST_PYTHONWARNINGS.
2024-12-15 14:45:15 +01:00
Cédric Krier
0206a17048
Raise a warning for unknown country subdivision type
2024-12-15 14:35:19 +01:00
Cédric Krier
b4b2b5674a
Add company in context of journal on account receivable rule
...
Closes #13742
2024-12-09 14:42:37 +01:00
Cédric Krier
2e61af81bb
Fill ModelStorage caches only for records no further away then the read size
...
The read size is the size limit of the cache so filling it for record further
away will discard existing value closest.
2024-11-27 10:32:26 +01:00
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