Cédric Krier
f45f4ec348
Use company id to set context to compute today
...
Closes #13789
2025-01-01 20:05:24 +01:00
Cédric Krier
643dc186cd
Get context from default config to get chart ID to create
...
49ca1e40161c replace the .find call by get_id which requires a context.
2025-01-01 19:59:35 +01:00
Cédric Krier
10c5392bea
Use predefine testing payment method instead of creating one
...
Calling stripe.PaymentMethod.create is deprecated.
2025-01-01 19:52:58 +01:00
Cédric Krier
c928c61f0e
Do not initialize ir_ui_view table with model NOT NULL
...
Closes #13788
2025-01-01 19:15:38 +01:00
Cédric Krier
7917793f94
Search waiting marketing automation record activities using record ID
...
There is no custom search_rec_name for record, so all the records are valid.
Closes #13787
2025-01-01 19:07:43 +01:00
Cédric Krier
a9e620a44d
Save purchase request quotation before lines
...
This avoid warning about unsaved relation record.
2025-01-01 18:56:12 +01:00
Cédric Krier
910c61cb38
Update name of cost sale of shipments in copied default values
...
In 79512f8cfed1 the field has been renamed.
Closes #13786
2025-01-01 18:25:57 +01:00
Cédric Krier
62deec1671
Do not copy asset lot when copying sale subscription line
...
Closes #13785
2025-01-01 17:44:16 +01:00
Cédric Krier
d26611be91
Add process method for Shopify payment method
...
Since 55db7836e132 the payment does not need to be grouped but a process method
must be implemented.
2025-01-01 17:40:41 +01:00
Cédric Krier
81669a33c9
Use proper BOOLEAN type in init SQL of SQLite
2025-01-01 17:39:20 +01:00
Cédric Krier
7f56ab27a7
Remove unused docstring
...
Since 23ce421d3bb9 the docstring's are no more used as string for the model.
2025-01-01 18:20:47 +01:00
Cédric Krier
debaff1cd8
Create translation entry for model without docstring
...
Since 23ce421d3bb9 it is the __doc__ attribute that is used as string for the
module.
2025-01-01 18:10:12 +01:00
Cédric Krier
f20c36e2a6
Test actually the translation when writing on model and field
2025-01-01 16:25:37 +01:00
Cédric Krier
2c97c87ce2
Create translation of model and field using the proper name
2025-01-01 16:24:55 +01:00
Cédric Krier
1f66be2076
Register model string translation as string field of ir.model
2025-01-01 16:22:25 +01:00
Cédric Krier
ab19901d85
Fallback to plural message when index is greater than 0
2025-01-01 16:20:28 +01:00
Cédric Krier
592240fdb3
Always export the first plurals string and only consecutive plurals
...
To have a valid pofile we need to have all the plural form from index 0.
2025-01-01 11:50:13 +01:00
Cédric Krier
fb714566f2
Add generic test for the default value of ModelStorage.copy
2024-12-03 19:06:33 +01:00
Cédric Krier
8ab7c421f2
Test that on_change_with getter use the name of the Function field
2024-12-16 18:18:48 +01:00
Cédric Krier
4454098479
Add foreign key for relation of model field
...
Closes #9050
2024-11-11 19:17:11 +01:00
Cédric Krier
620854a2d9
Display groups of record rules in list and form view
...
Closes #12000
2024-11-27 19:54:51 +01:00
Cédric Krier
2f8ce57d0b
Remove required on user's menu and fallback to menu tree
2024-11-11 19:00:07 +01:00
Cédric Krier
d7f89c8cba
Move ir customization from res module to ir module
2024-11-10 02:14:34 +01:00
Cédric Krier
ceb299a96a
Setup and register ir and res modules earlier
2024-11-09 15:42:58 +01:00
Cédric Krier
a82b9d35d0
Synchronize SQLite initialization SQL with PostgreSQL
2024-11-10 15:59:26 +01:00
Cédric Krier
81efba13d1
Optimize can_modify of model data
...
By searching only the records useful to raise error, it reduces the data read
and it can use an index.
2024-11-11 18:42:40 +01:00
Cédric Krier
7e827dd521
Ensure XML ID are unique per module
2024-11-11 16:39:56 +01:00
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