Bertrand Chenal
0c7ebb6abb
Automated merge with ssh://tycho.b2ck.org///home/hg/trytond
2008-02-29 18:53:53 +01:00
Bertrand Chenal
73b42c88c1
Improved field comparison at update.
2008-02-29 18:53:40 +01:00
Cédric Krier
8ae1994e86
Fix reconnect for IPv6
2008-02-29 16:12:08 +01:00
Cédric Krier
2c89f727e0
Put admin group in administration menu
2008-02-29 16:07:18 +01:00
Cédric Krier
c4e32a1eeb
Don't add {create,write}_{uid,date} fields in default view
2008-02-29 16:06:42 +01:00
Cédric Krier
018f203158
Add unique constraint on xml id
2008-02-29 15:52:06 +01:00
Cédric Krier
3d1f0da70d
Run config wizard after module install
2008-02-29 13:16:58 +01:00
Cédric Krier
89b10c172e
Move group stuff to its own file
2008-02-28 17:44:23 +01:00
Cédric Krier
d5537641b3
Root user has id 0
2008-02-28 17:32:32 +01:00
Cédric Krier
9bfc4c6975
merge
2008-02-28 17:31:37 +01:00
Cédric Krier
d093df82b9
Add configuration wizard for res module
...
- put default action to configuration wizard for user admin
- add default value for action/menu
2008-02-28 17:29:40 +01:00
Cédric Krier
4548d73047
Add framework to handle configuration wizard
...
- One object where module subscribe the configuration wizards
- One wizard that loop throw all the open configuration wizards
2008-02-28 17:28:10 +01:00
Cédric Krier
1fa0da7d6a
If wizard choice return end, stop the execution
2008-02-28 17:26:04 +01:00
Bertrand Chenal
0dd3501c62
Use xml_id to store the records to delete instead of the former tuple. This provide more robust updates.
2008-02-28 16:57:38 +01:00
Bertrand Chenal
f4a69ffb25
Order the to_delete list at read time instead of sorting it later
2008-02-28 14:14:24 +01:00
Bertrand Chenal
320e820ba6
Merge with upstream repo
2008-02-28 13:42:56 +01:00
Bertrand Chenal
878a762016
Move all import stuff out of model.py and put it in convert.py.
...
Other modifications:
* less memory hungry implementation.
* now delete record in the reverse order of creation.
* Workflow transtion are deleted only if the corresponding activity
is deleted.
2008-02-28 13:36:28 +01:00
Bertrand Chenal
280dbc9365
Little bugfix: Unlink on user now handle list of ids
2008-02-28 12:39:00 +01:00
Bertrand Chenal
1e38fe6eb2
Copy vals dict before modifying it
2008-02-28 12:37:33 +01:00
Cédric Krier
c882bdf518
Use string instead of function reference for action in wizard
...
It allow and easy way to override the function
2008-02-27 11:49:58 +01:00
Cédric Krier
80458f1897
Close sursor before installing modules
...
Fix install partner module by command line
2008-02-27 11:34:07 +01:00
Cédric Krier
5f98f0a002
Remove partial commit
2008-02-27 11:24:43 +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
8ffbcf02ce
Remove call to download as there no more repositories
2008-02-27 10:51:41 +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
addc090e18
Remove module repository
2008-02-26 18:40:24 +01:00
Cédric Krier
d2cc8c31c2
Add on delete cascade if view is deleted
2008-02-26 18:39:46 +01:00
Cédric Krier
1724794f7b
Remove demo on module
...
It will be handle by specific modules
2008-02-26 18:21:28 +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
8b6460eb45
Fix close DB for new psycopg2 pooler
2008-02-26 16:37:10 +01:00
Cédric Krier
d80152ce78
Remove _defaults dict and replace by default_ function to allow easy override
2008-02-26 16:23:05 +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
164769c050
IPv6 compliant
2008-02-25 21:19:32 +01:00
Cédric Krier
4b098248a3
Remove some stuff from try/except
2008-02-22 16:02:39 +01:00
Cédric Krier
2cc0e87ec2
Duplicate _columns when inherit it as there is only one instance of dict for
...
the same object in multi-db
2008-02-22 14:00:29 +01:00
Cédric Krier
b8bb522a8d
Set fs2values also when create object because it can be used by an
...
inherited record
2008-02-22 13:59:14 +01:00
Cédric Krier
7211debab2
Encode menuitem id to utf8
2008-02-22 13:58:01 +01:00
Cédric Krier
10e55648d9
Set isolation level to autocommit for create/drop database
2008-02-22 13:57:24 +01:00
Cédric Krier
1a4526e10f
Add readonly on button of the module form
...
Button disabled if not in the group admin
2008-02-22 12:57:07 +01:00
Cédric Krier
9e30d0f747
Rename groups_id into groups and add groups to the context
2008-02-22 12:56:16 +01:00
Cédric Krier
c8aecb9fdd
Use CDATA for all field with type 'xml' and replace %()d with the xml_id
2008-02-22 12:54:48 +01:00
Cédric Krier
8c88055645
Fix default value if context is None
2008-02-22 12:52:53 +01:00
Cédric Krier
3a0b0e39cd
Give in context the module when re-create missing record
2008-02-22 12:52:20 +01:00
Cédric Krier
12332f82c5
Fix missing import psycopg to psycopg2
2008-02-21 23:53:42 +01:00
Cédric Krier
5ad40d33b6
Fix update inherited record
...
Don't delete fs2value, just put it to None
2008-02-21 23:53:12 +01:00
Cédric Krier
c7b2ca6edd
Add groups to action and filtering rule
2008-02-21 23:13:51 +01:00
Cédric Krier
86fe091dec
Add groups to menuitem tags
2008-02-21 23:13:14 +01:00
Cédric Krier
61f89954c0
Fix read for duplicate inherits fields
2008-02-21 23:12:47 +01:00
Cédric Krier
5ee541858a
Use the rules for the group restriction on menu
2008-02-21 19:18:47 +01:00
Cédric Krier
43f347876b
Don't store the eval value of the operand but just the path
...
It is more flexible and updatable if there is a bug
2008-02-21 19:18:06 +01:00