Commit Graph
59052 Commits
Author SHA1 Message Date
Cédric Krier 81f674082b Remove check_xml_record from ModelStorage 2024-11-11 15:19:51 +01:00
Cédric Krier f22c335057 Enforce unique DB ID per model in model data 2024-11-11 14:14:42 +01:00
Cédric Krier 534c5c28a9 Use message for unique constraint on model data 2024-11-11 14:11:11 +01:00
Cédric Krier 639482fd37 Update noupdate attribute on model data 2024-11-11 16:19:25 +01:00
Cédric Krier fabb5340e9 Always synchronize XML data with database
Closes #13668
2024-11-11 18:24:06 +01:00
Cédric Krier efab50227a Read only cost price from the history product when computing cost value
Closes #13767
2024-12-20 11:48:10 +01:00
Cédric Krier afcba82077 Do not add history to unnecessary model
d38610e26ede added history to all related models but it is not necessary as
only the One2Many and Many2Many are needed.
If the target of a Many2One or a Reference has been deleted meanwhile then the
record may not be readable at that date.

Closes #13768
2024-12-20 11:22:47 +01:00
Cédric Krier 7b75df7e4c Allow deleting routing or BOM linked together
Closes #13759
2024-12-16 18:28:21 +01:00
Cédric Krier f0f3888e35 Calculate digits shift even for all digits that are not None
Closes #13776
2024-12-23 18:25:41 +01:00
Cédric Krier 7c806d6b67 Decrease the number of decimal digits by the factor shift
Closes #13775
2024-12-23 18:23:32 +01:00
Cédric Krier c4c396bb6c Do not compute digits shift when digits is null
Closes #13774
2024-12-23 18:21:10 +01:00
Cédric Krier 0ef20b9571 Test model graph report 2024-12-23 15:36:47 +01:00
Cédric Krier c715844bb7 Move test workflow graph under ir module test 2024-12-23 15:32:11 +01:00
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