Commit Graph
967 Commits
Author SHA1 Message Date
Cédric Krier 09c9e90506 Do not update field definition with Function field definition
issue11225
review360871002
2022-02-16 11:07:19 +01:00
Cédric Krier 2495c0cbdd Order unsorted Selection by index definition
issue11169
review387771003
2022-02-15 00:06:57 +01:00
Cédric Krier a39dec543c Do not get domain from empty reference field
issue11074
2022-02-03 23:21:03 +01:00
Cédric Krier 10d277f001 Add optional column on tree view
issue10989
review374321002
2022-02-03 23:13:28 +01:00
Cédric Krier 632deb43e5 Use dictionary as domain for Reference field
issue11074
review383911002
2022-02-03 23:05:47 +01:00
Nicolas Évrard fd0709aa71 Add implicitely write_date to read columns only when reading already other columns
issue10359
review361791002
2022-02-03 15:04:03 +01:00
Nicolas Évrard 82b6bf9f1a Do not rely on depends to select the fields to read in form view
issue11134
review389681019
2022-01-31 22:25:59 +01:00
Cédric Krier 49f6350151 Use simplified parser for get_eval_fields
Instead of using the PYSONEncoder we can just iterate over the basic JSON types
and use the pyson method to retrieve nested PYSON instances.

issue11164
review376551002
2022-01-30 13:10:57 +01:00
Cédric Krier 5f34224215 Include model, field and column in import data error message
issue11132
review381701002
2022-01-30 12:58:51 +01:00
Cédric Krier 19ad886d45 Add limit to search count
issue10967
review389301002
2022-01-30 01:42:23 +01:00
Cédric Krier 4a023ef216 Add RPC view_get method to View
This allows to extend the inherit mechanism of the view and support inherit for
the board view.
Also the inherit is now applied to all element found by the xpath.

issue11107
issue11108
review389601002
2022-01-23 13:32:59 +01:00
Cédric Krier 7c822ccfda Use cached data also to instantiate records with context field
If all the context fields are already in the cache we can use them without
having to call read and avoid a SQL query.

issue11096
review387631002
2022-01-23 10:23:50 +01:00
Cédric Krier 2563aed9b0 Check read access on parent field of child/parent operators
The 4th element of the clause is the parent field for the child_of/parent_of
operators, so it must be used to check access as related field.
Also we must remove the 4th element when checking related domain.

issue11115
review391371002
2022-01-11 23:07:45 +01:00
Cédric Krier 51a08fb809 Set view_id in the context when calling view_attributes
issue11091
review364531002
2022-01-04 22:30:41 +01:00
Cédric Krier a0bfbfa255 Follow isort formatting
issue10928
2021-12-11 17:58:45 +01:00
Cédric Krier 7d879abef6 Use same context as clients to evaluate PYSON
issue10963
review372581002
2021-11-28 13:45:54 +01:00
Cédric Krier e02c830159 Fill local cache of Function field instances with values
issue10936
review377511003
2021-11-28 13:40:30 +01:00
Cédric Krier a00d26dd3c Cache Function field getter without context in readonly transactions
issue10936
review367781002
2021-11-28 13:27:52 +01:00
Cédric Krier 6162729234 Do not order on NULL when rank column is None
It is not valid to use NULL in ORDER BY clause.

issue10947
review381411002
2021-11-19 23:56:36 +01:00
Cédric Krier 1250c434af Do not store in global cache Function field
issue10936
review364331002
2021-11-14 23:54:52 +01:00
Cédric Krier a1a2e6eb70 Use JSONB to store Dict field on PostgreSQL backend
issue10858
review379371002
2021-11-08 19:27:03 +01:00
Cédric Krier 1b3690eeb7 Do not set empty avatar when generating one
As the method is called on write and is also calling write via save, we must
ensure to save only when an avatar is filled to break the loop.

issue10914
review363041002
2021-10-30 02:25:37 +02:00
Cédric Krier a97e769ad3 Evaluate invalid domain if there are many fields
We must find the field that is invalid instead of using the first one with a
domain constraint.

issue10418
review360371002
2021-10-30 02:20:23 +02:00
Cédric Krier 878e8747df Prevent assign SQL value to record instances
issue10413
review379441002
2021-10-28 09:00:33 +02:00
Cédric Krier 8bbecaa817 Allow to cast as date using timezone
issue10860
review372321002
2021-10-21 00:11:57 +02:00
Sergi Almacellas Abellana b6678dfe19 Skip default values when copying records
This allows users with no write access to a field to copy records if their
values have not been modified.

issue10536
review336541002
2021-10-11 15:14:57 +02:00
Nicolas Évrard b3786087a9 Use global cache for Function fields in readonly transactions
issue10491
review352081002
2021-10-11 11:52:42 +02:00
Nicolas Évrard 870981c561 Pass default class order to __search_query
issue10838
review383251002
2021-10-11 11:38:37 +02:00
Cédric Krier c9fd498cb6 Fall-back to target default order
issue10818
2021-10-11 08:53:21 +02:00
Cédric Krier c99e0fa7f4 Align instance caches of xxx2Many targets
issue10818
review369841002
2021-10-10 22:20:27 +02:00
Cédric Krier 32a978a016 Add format method to DictSchemaMixin
issue10758
review354001002
2021-10-10 22:08:39 +02:00
Nicolas Évrard 2f4c0eb0a5 Include order columns in UNION-ed search queries
issue10790
review365991002
2021-10-06 17:20:40 +02:00
Cédric Krier d50fc36f22 Allow locking tables by calling ModelSQL.lock without records
issue10785
review359051002
2021-10-03 13:50:33 +02:00
Cédric Krier b038c04fee Ensure instances to be saved are from the class
issue10797
review372041002
2021-10-03 13:38:28 +02:00
Cédric Krier 66a0dcf2b5 Add stored path as alternative to MPTT
issue7177
review352501002
2021-10-03 01:14:08 +02:00
Cédric Krier 607dc3907b Search also for inactive foreign key
issue10782
review367581002
2021-10-03 00:31:21 +02:00
Nicolas Évrard 72e3bb74c7 Reconstruct local domain after split_subquery_domain
issue10761
review338921002
2021-09-28 16:44:12 +02:00
Cédric Krier 0e41c6940a Factorize the instantiation of LRUDict and LRUDictTransaction
We use default_factory to avoid create unnecessary instances. The
default_factory_with_key argument is added to LRUDict to pass the missing key
to the default_factory method. And we use an LRUDict also for the
Transaction.cache.

issue10726
review362531002
2021-09-26 22:55:52 +02:00
Cédric Krier 4840a0f46d Ensure that objects in the Pool has __slots__
issue10719
review375361002
2021-09-23 23:12:35 +02:00
Cédric Krier c345b0c693 Use tuple in Dict value instead of list
issue10715
review371771002
2021-09-23 10:15:16 +02:00
Cédric Krier 9f8b847c15 Use immutable dictionary for Transaction context
issue10691
review358741002
2021-09-19 00:30:35 +02:00
Nicolas Évrard d3a5e680a8 Use UNION for 'Or'-ed domain with subqueries
issue10658
review365781002
2021-09-15 15:16:40 +02:00
Cédric Krier f8358b1229 Search by similarity only if a threshold is defined
issue10710
review363851002
2021-09-10 19:13:05 +02:00
Cédric Krier 1b85c2d0f9 Restore threshold between rebuild and update MPTT
issue10623
review350381002
2021-09-04 19:40:33 +02:00
Cédric Krier 5a78da0925 Add estimation count to ModelStorage
issue10623
review350381002
2021-09-04 19:40:02 +02:00
Cédric Krier f38a70d843 Do not rebuild tree of MPTT on nested creation
If the MPTT is updated before calling set of fields, there is no need to
rebuild the tree.

issue10670
review342941002
2021-09-04 19:31:30 +02:00
Cédric Krier 03e2a7f2dc Avoid instantiate set
issue10660
review342911003
2021-09-02 23:56:13 +02:00
Cédric Krier 1c3d67a96c Do not try to clean never filled _language_cache
The _language_cache is no more filled since rev 097a3b7df47c.

issue10653
review334681002
2021-08-27 09:05:23 +02:00
Cédric Krier a63de7ab07 Do not read deleted record as extra record
When a record from a browse list has been deleted, we must not try to read it
if other records are accessed.

issue10652
review346731080
2021-08-27 09:01:34 +02:00
Cédric Krier fb9238b8bf Add digits mixin
issue10596
review338511002
2021-08-21 09:05:34 +02:00