Cédric Krier
eabffc0919
merge
2008-07-29 20:21:49 +02:00
Bertrand Chenal
b5a8f5b407
Fix sql_type on field.Selection
2008-07-28 22:53:53 +02:00
Cédric Krier
b6093494b7
Remove round from Numeric fields as it can be dynamic so it must be handle by
...
the object.
2008-07-28 20:52:50 +02:00
Cédric Krier
90c916df5b
Add on_change_with argument for fields
2008-07-27 00:03:41 +02:00
Cédric Krier
7f32771048
Change unlink to delete for issue201
2008-07-25 12:49:00 +02:00
Cédric Krier
b1a9433904
Remove encode stuff as we use unicode everywhere
2008-07-24 12:54:12 +02:00
Cédric Krier
503f006019
Fix remove on xxx2many for empty list
2008-07-23 16:08:52 +02:00
Cédric Krier
81af21c376
Allow to use list of ids for xxx2many for issue200
...
Use string for many2one set operator
Fix some security SQL injections
2008-07-23 15:35:51 +02:00
Cédric Krier
d3c0f14a7e
Add test on select value in fields
2008-07-19 16:08:26 +02:00
Cédric Krier
6e5b06cb45
Add Modified Preorder Tree Traversal
...
Remove _parent_name
Fix child_of on non tree field
2008-07-09 13:18:54 +02:00
Cédric Krier
c3cf6e96e6
Use 0 fractional digits for second in Datetime field
2008-07-07 15:16:20 +02:00
Cédric Krier
bb0662db66
Add add_remove attributes and improve 'write', 'remove' on One2Many
2008-07-07 11:34:42 +02:00
Cédric Krier
0232c66506
Fix COPYRIGHT
2008-06-23 20:18:54 +02:00
Cédric Krier
3f10e57251
Remove unused one2one field
2008-06-23 14:21:07 +02:00
Cédric Krier
2b6731da1f
Remove size constraint for Reference field
2008-06-15 23:22:28 +02:00
hartmut@lagan
ab48eb62b4
Compare with None always uses 'is'.
2008-06-11 11:06:24 +02:00
Cédric Krier
825e58827f
Improve order in search for issue64
...
- Add order_field attributes on fields to force to use this field_name for
order clause.
- Sort on _rec_name or _order_name for many2one field.
- Take care of inherits when ordering on inherited field.
2008-06-10 10:49:23 +02:00
Cédric Krier
87ea452c60
Change internal format of reference field into:
...
"model, (id, "name")" for issue74
2008-06-07 21:17:24 +02:00
Cédric Krier
007e177cc9
Set default size for char fields to None
2008-05-14 17:38:02 +02:00
Cédric Krier
8fc4a98304
Use dict for _order on ORM object.
...
_order is now an instanciate variable.
It is a dict like this:
[('name', 'ASC'), ('id', 'ASC')]
2008-04-22 17:47:24 +02:00
Cédric Krier
22822a23b9
Convert buffer to str on binary fields
2008-04-16 11:44:44 +02:00
Cédric Krier
ebe610a4ea
Add order on xxx2Many fields
2008-04-16 00:09:19 +02:00
Cédric Krier
f110a5382c
Add missing field to allow to use Function with type one2many
2008-04-10 15:48:35 +02:00
Cédric Krier
58deecd279
Allow to use numeric type as property
2008-04-09 15:26:34 +02:00
Cédric Krier
b2bcb5ec7b
Remove unused arg in __init__ of Property
2008-04-09 10:48:29 +02:00
Cédric Krier
adeafe87e0
Fix typo when setting property
2008-03-26 12:43:43 +01:00
Cédric Krier
c0c9fdb9e1
Use string for xxx2Many operator
2008-03-25 11:29:26 +01:00
Cédric Krier
47381db05c
Fix property without any default value
2008-03-22 23:30:20 +01:00
Cédric Krier
e9aa1f1759
Fix function read on property fields
2008-03-18 18:24:27 +01:00
Cédric Krier
c8b4f7b44c
Make One2Many works with large list of ids and remove some unused instance of
...
context
2008-03-17 13:00:19 +01:00
Cédric Krier
42378f7c6e
Make Many2Many unique and don't reset groups on admin user
2008-03-14 11:35:50 +01:00
Cédric Krier
6b129ee520
Pass context to search in One2Many
2008-03-12 00:52:37 +01:00
Cédric Krier
7b8c8b0ab9
Move sql fields into fields and allow to use None as size of char
...
Selection are now varchar (fix some issue about the len)
2008-03-07 15:42:27 +01:00
Cédric Krier
906de9b8e7
Better fix for sha with empty value
2008-03-05 16:05:46 +01:00
Cédric Krier
d3e3652b50
Fix sha for empty string
2008-03-05 13:22:18 +01:00
Cédric Krier
db410a3fc8
Make _rpc_allowed no more a class instance and add selection and reference
...
methods to it
2008-03-03 19:10:57 +01:00
Cédric Krier
7acc52fef9
Add relation_field for one2many
...
It is used by the client to remove the field in the form view
2008-03-03 17:54:29 +01:00
Cédric Krier
43a3cac11e
Add SHA encryption for password
2008-03-02 02:31:44 +01:00
Cédric Krier
a013c3bdca
Change all query with %d into %s for psycopg2
2008-02-27 11:10:51 +01:00
Cédric Krier
ceae2a129d
Split float fields into float and numeric
...
- Float is store as float with variable precision
- Numeric is store as numeric with fix precision
- The digits argument is just use for the display
2008-02-26 19:11:13 +01:00
Cédric Krier
bb44f45b84
Add on_change attribute to fields and rename __view_look_dom_arch into _view_look_dom_arch
2008-02-26 17:52:32 +01:00
Cédric Krier
c6948c3f35
Remove _columns dict and put it directly in the object to reflect better the
...
browserecord
2008-02-26 12:40:40 +01:00
Cédric Krier
12332f82c5
Fix missing import psycopg to psycopg2
2008-02-21 23:53:42 +01:00
Cédric Krier
17fbe1bae7
Fix property for change function address to string
2008-02-16 12:23:16 +01:00
Cédric Krier
9e95534e19
Fix typo
2008-02-15 16:49:30 +01:00
Cédric Krier
0bf725f14d
Change fields.Function to use string instead of function address
...
This allow to override the function without the need to redifine the field
2008-02-15 15:28:27 +01:00
Cédric Krier
eaf8d9853e
Use string for selection on fields instead of function
...
- View cache works without clean the cache
- Allow override the function without modify the field
2008-02-12 15:17:35 +01:00
Cédric Krier
2dfd118573
Add model fields on translation
...
Use for client plugin to be able to find record to translate
2008-02-12 13:11:20 +01:00
Cédric Krier
8abdab8ecb
Remove bad coding format
2008-02-12 10:47:01 +01:00
Cédric Krier
4c97a9b395
- Add query_string to search function
...
- Add context to search on fields function
- Add missing context in _where_calc
2008-02-03 00:38:16 +01:00