Cédric Krier
a0bfbfa255
Follow isort formatting
...
issue10928
2021-12-11 17:58:45 +01:00
Cédric Krier
e644d6a4eb
Set the target field name in the context to get the size
...
The getter of 'data_size' field must use the name 'data' in the context instead
of 'data_size'.
issue10849
review383301002
2021-10-19 00:22:08 +02:00
Cédric Krier
ea57165a86
Add attachment preview
...
issue10203
review332271014
2021-04-07 23:34:51 +02:00
Maxime Richez
d64ae06e19
Add summary to line list
...
A function field summary is added which takes the first line of description
field. This is useful to identify line without product (only with description)
in the list.
issue9695
review292431002
2020-12-25 17:14:57 +01:00
Cédric Krier
e11a23deb2
Rationalize import path
...
We use absolute path when imported module is from a different context.
And we remove unnecessary __all__ definition.
issue9466
review323591002
2020-07-21 14:38:36 +02:00
Cédric Krier
0081dc431d
Allow copying attachments and notes to created records
...
issue9154
review266971002
2020-04-13 17:25:02 +02:00
Cédric Krier
d7ed5f91f5
Fix flake8 errors and warnings
...
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.
issue9082
review297061002
2020-03-01 12:33:54 +01:00
Cédric Krier
6b14518eff
Position new record based on order
...
We sent an order to the client for action and xxx2Many so its screen has
always a default order set.
To position a new record on non editable tree, we use the order of the 'id'
column if presents.
issue8880
review276501003
2019-12-28 18:16:28 +01:00
Cédric Krier
ff948820bf
Use dropdown for attachments
...
issue7659
review50551002
2018-09-02 10:44:38 +02:00
Cédric Krier
e310cfc96a
Remove unique constraint on attachment name
...
issue7613
review50531002
2018-08-20 22:39:16 +02:00
Cédric Krier
4d779f27eb
Remove migration before 3.0
...
issue6470
review52421002
2018-08-09 20:43:52 +02:00
Cédric Krier
7a2ce7905a
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier
d2a461390a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier
7ca7f4c6f0
Allow to store Binary field in filestore
...
Two options are added on Binary field to define the column to use to store the
filestore id and the prefix to use.
Those options are used for Attachment and are configurable with conservative
default values.
issue5692
review25471003
2016-07-29 10:51:53 +02:00
Cédric Krier
065d1b7bb6
Add filestore module
...
Replace custom Attachment setter/getter by a generic module that can be used by
others.
issue5686
review22141003
2016-07-29 10:46:52 +02:00
Cédric Krier
4d58b3a720
Don't remove from context the format of Binary fields
...
The getter of the Binary field could be called many times in the same
transaction, so popping out the format from the context create a side effect
that changes the requested format.
issue3774
review19981002
2016-03-05 17:26:27 +01:00
Nicolas Évrard
2fef479575
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier
1ae75711a8
Add Note on resources
...
issue4669
review12061002
2016-02-02 19:14:35 +01:00
Karla Stenger
551b83e964
Improve message of resource_name of ir.attachment
...
issue5075
review20511002
2015-11-17 15:11:03 -03:00
Cédric Krier
44dc331ced
Use Constraint instance in ModelSQL._sql_constraints
...
issue4814
review15491002
2015-06-22 16:57:06 +02:00
Cédric Krier
5cfde31ed2
Use bytes and bytearray for Binary
...
issue4637
review11091002
2015-03-16 19:28:34 +01:00
Cédric Krier
a5150b8599
Allow to sort and sort attachment on last modification
...
issue4366
review11661003
2014-12-04 23:46:37 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
62f76d5815
Fix infinite loop in check_access of ir.attachment
...
introduced in changeset a382ef9185e7
2014-09-18 10:52:21 +02:00
Cédric Krier
a2c8111f26
Use context to check model and field access
...
* Model and Field access checked only if _check_access is set
* Add check_access to RPC
* Add check_access to Wizard and Report
issue4081
review8481002
2014-09-17 21:43:53 +02:00
Cédric Krier
e0b995abbe
Refactore configuration to allow easy extention
...
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier
bc6acd08ee
Drop support of Python 2.6
...
review2691002
2014-01-31 00:02:03 +01:00
Cédric Krier
905343c900
Add fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:27:24 +01:00
Cédric Krier
f52fe8e45f
Use a sequence of records, values in write
...
issue3499
review1641003
2013-12-19 14:44:01 +01:00
Cédric Krier
fc6c6cfdda
Migration to python-sql
...
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method
review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier
6ad1fdcf6e
Check read access for Attachment models
...
review921002
2013-06-28 15:26:48 +02:00
Albert Cervera i Areny
30b1403cdc
Use a list of dictionaries in create().
...
issue2358
review266002
2013-01-06 22:18:13 +01:00
Nicolas Évrard
3b7cc7faf6
Fix missing reference field active record migration
2012-09-25 17:08:23 +02:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Cédric Krier
e7b1f97390
Replace wrong usage of False by None
...
issue2512
2012-03-27 10:41:40 +02:00
Mathias Behrle
ab54a71984
Change select=1|2 to select=True
...
issue2305
review269003
2012-03-05 10:54:32 +01:00
Nicolas Évrard
6ba18631e8
Use relative imports
2011-12-14 17:00:13 +01:00
Cédric Krier
fefd67c3a5
Improve Binary fields
...
* Support size format in context for Binary fields
* Use buffer for Binary fields
* No more store Binary fields in base64
review74006
2011-09-17 14:43:05 +02:00
Cédric Krier
2fc1c27b3f
Make PYSON more Pythonic
...
review80001
2011-08-21 11:19:06 +02:00
Cédric Krier
852f04dc51
Remove support of Python2.5 and fix py3 warnings
2011-07-12 00:16:15 +02:00
Cédric Krier
550aae8351
Change Pool into a Singleton
...
review42001
2011-07-03 13:20:58 +02:00
Cédric Krier
3a3df1e25e
Remove migration for rename datas into data as it is a Function field
2011-04-20 20:06:37 +02:00
Cédric Krier
98fe2523b3
last_modification must not have microsecond
...
The DateTime widget on client side can not handle microsecond and then it
think the value has changed.
2011-04-15 17:45:56 +02:00
Cédric Krier
1676bf3c63
Rename resume into summary
2011-04-01 16:34:50 +02:00
Cédric Krier
2ac833dc0a
Add type, last user and last modification on ir.attachment
...
Rename datas into data on ir.attachment
Improve attachment views
2011-03-21 18:19:42 +01:00
Nicolas Évrard
7b62b8465e
Added support for file name to BinaryField
2011-02-16 17:50:09 +01:00
Cédric Krier
8687b8914d
Handle closing of file objects
2011-01-08 20:29:00 +01:00
Cédric Krier
e147a1cc2e
Fix for new Transaction
2010-08-27 12:05:37 +02:00
Cédric Krier
df1fd283ac
New transaction management
...
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00