Commit Graph

144 Commits

Author SHA1 Message Date
Olivier Dony 06fb14130a [IMP] removed method=True params from all fields.function
Server revision 3495 odo@openerp.com-20110701232328-flgxulxva70vnyxr
removed the need for passing method=True to function fields,
so this is the equivalent addons fix, removing it everywhere.
Please be careful from now on, and do not pass it anymore!

bzr revid: odo@openerp.com-20110701234124-a61zl0idvdfz3hyb
2011-07-02 01:41:24 +02:00
Olivier Dony 560915cb68 [MERGE] merged latest fixes from 6.0 up to r.4556
Rev 4556 = revision-id: jvo@tinyerp.com-20110502133745-s1zyed65h6ojwkvk.

bzr revid: odo@openerp.com-20110502184643-d3qzosqdurscd51i
2011-05-02 20:46:43 +02:00
Thibault Francois b11a71fd87 [MERGE] improvement project-issue
bzr revid: tfr@openerp.com-20110407114145-xvr27pjquxwk9ff0
2011-04-07 13:41:45 +02:00
Jay Vora (OpenERP) 5bb62f86be [MERGE] Merged Anup's branch for the fix of documents' file_size.
bzr revid: jvo@tinyerp.com-20110401091721-bs0167iw9p7ykx8s
2011-04-01 14:47:21 +05:30
Anup (OpenERP) 091d785586 [FIX] document : File Content remained empty for old attachments fixed.(Support Case 4586)
bzr revid: ach@tinyerp.com-20110330070053-p63h44msfy9rpaca
2011-03-30 12:30:53 +05:30
Olivier Dony 0874e7b291 [FIX] document: search() must filter out documents in disallowed directories
Permissions on ir.attachments must not only respect the access rights
of the object they are attached to, but must also be careful about
directory permissions as introduced by the document module.

Minor fix in copy() method to avoid reading all fields of the
attachment including the binary data itself, when only the name
is needed. Also made the "(copy)" suffix translatable.

bzr revid: odo@openerp.com-20110218141012-a7wjqn2f48iioca9
2011-02-18 15:10:12 +01:00
P. Christeas 98ab6360ed Merge branch11 into patch18
Branch patch11 had somewhere been lost in bzr hell.

Conflicts:
	account/account_move_line.py
	document_webdav/nodes.py
	document_webdav/webdav_server.py
	event_project/__init__.py
	users_ldap/users_ldap.py

bzr revid: p_christ@hol.gr-20101223155444-ym8r0g4208gm88j9
2010-12-23 17:54:44 +02:00
P. Christeas 43387c7f43 document: improve the attach_parent_id() function.
No need to call an SQL command in iteration! No need to transfer the
db_datas back and forth from Postgres!

Also, prepended an underscore, so that the function is never exported
through RPC.

bzr revid: p_christ@hol.gr-20101223142529-hgudbfj54p4d2e34
2010-12-23 16:25:29 +02:00
P. Christeas 8e8803e9df document, caldav: revert changes that are not needed and spacing
Let's keep the diff against trunk-dev-addons1 only to things that
make sense.

bzr revid: p_christ@hol.gr-20101223141639-o13v6llljplpgl7s
2010-12-23 16:16:39 +02:00
atp (Open ERP) ffa6d2dda7 [IMP]
bzr revid: atp@tinyerp.co.in-20101223101118-el1zl830r8yj36h2
2010-12-23 15:41:18 +05:30
atp (Open ERP) 5633f1b6ba [Fix]: Fixed documents lost problem which are added before installed document module.
bzr revid: atp@tinyerp.co.in-20101223095109-ntp3hrl30xb82pya
2010-12-23 15:21:09 +05:30
atp (Open ERP) ebd5c62dbc [FIX]: solved Problem of after install document module, documents are lost which are added before installed document module
bzr revid: atp@tinyerp.co.in-20101220125419-y99i8aqw3y1s00by
2010-12-20 18:24:19 +05:30
P. Christeas 2aa5d026d1 document: fix access of res.users folders
We need to relax the rule of ir.attachment. Needs server patch, see
commit message there.

bzr revid: p_christ@hol.gr-20101123184938-jklijdqt0xx5u6cs
2010-11-23 20:49:38 +02:00
uco (OpenERP) 6dd290e824 [REF]: Replace the condition 'if not context' with 'if context is None'.
bzr revid: uco@tinyerp.com-20101123070505-9i2lrqhgxzaii3zn
2010-11-23 12:35:05 +05:30
uco (OpenERP) 12fcd1be2f [IMP] : Added context=None on methods used for _constraints and replaced context={} with context=None.
bzr revid: uco@tinyerp.com-20101119134801-974ev29j4tu46pq2
2010-11-19 19:18:01 +05:30
Harry (OpenERP) ca33cf5313 [MERGE]
bzr revid: hmo@tinyerp.com-20101112094836-qy4536d3tjvw04xc
2010-11-12 15:18:36 +05:30
Harry (OpenERP) 27364966c9 [MERGE]
bzr revid: hmo@tinyerp.com-20101111133006-qzqtz3grocgewap4
2010-11-11 19:00:06 +05:30
P. Christeas 0f5a276365 document: use 'change_default' on key fields, cleanup defaults
As from a later commit, we will need to adjust default values to different
directories (such as permissions etc.).

bzr revid: p_christ@hol.gr-20101027102324-duffxdogcczqo67r
2010-10-27 13:23:24 +03:00
Harry (OpenERP) 824042bb1c [MERGE]
bzr revid: hmo@tinyerp.com-20101015131459-k969h71ybafv5kib
2010-10-15 18:44:59 +05:30
Harry (OpenERP) 10ecb719bd [IMP] project_long_term: improve gantt view
bzr revid: hmo@tinyerp.com-20101014102654-e3wkawf339sc9ido
2010-10-14 15:56:54 +05:30
Harry (OpenERP) 896ebda0ae [MERGE]
bzr revid: hmo@tinyerp.com-20101013104406-byc7tlrbqrna2h7c
2010-10-13 16:14:06 +05:30
P. Christeas 55d06c6ea1 Document: cleanup, remove restriction on ressource dirs
The same code is also called when parent_type_id exists, so the assertion
would fire.

bzr revid: p_christ@hol.gr-20101012104015-gnwvni1bx35ntyl5
2010-10-12 13:40:15 +03:00
ron@tinyerp.com e848ed0cf4 [IMP] ::Documents->Shared Repository:enlarge the FTP server field,Documents-> descending by date and tooltip change and fix bug on my document filter button::Reporting->Document Dashboard->group by year/Month and default user_id context remove
bzr revid: ron@tinyerp.com-20101012062608-nvlyu9qag6zeyh5h
2010-10-12 11:56:08 +05:30
Harry (OpenERP) b9a4366e1c [MERGE] merged knowlegde improvement work
bzr revid: hmo@tinyerp.com-20101005102518-nh0vy7d6mz0dmoc1
2010-10-05 15:55:18 +05:30
Jay (OpenERP) 1e32fa1bb9 [REF] Document
bzr revid: jvo@tinyerp.com-20100906104054-cucn9vpywxyum3oo
2010-09-06 16:10:54 +05:30
Stephane Wirtel f85a63e1ba [FIX] document: Assign False to the local variable 'result'
bzr revid: stephane@openerp.com-20100906100550-e5twhz3ffwm9e49a
2010-09-06 12:05:50 +02:00
P. Christeas 8a107a7e52 Document: fix unlink, where storage_id is not at first parent.
The convention is that storage_id may exist at any level up the
parent folders, so we have to recursively search for it.

bzr revid: p_christ@hol.gr-20100827073955-eyja6mhhy7rt5peh
2010-08-27 10:39:55 +03:00
P. Christeas f2f6ec0423 Document: cleanup code for lint checking
After pyflakes output, cleanup some unused imports, old code, fix
names for undefined vars.

bzr revid: p_christ@hol.gr-20100810122957-v01nqfq9omzdcs6e
2010-08-10 15:29:57 +03:00
P. Christeas 22257372f0 Document: Fix typo for creating attachments on dirs with res_model
bzr revid: p_christ@hol.gr-20100716221834-gn1l8tztmx18jyw9
2010-07-17 01:18:34 +03:00
P. Christeas 766fd336d4 Document: fix realstore with open/close, rename.
Put the path computation of realstore in a helper function, and use that
in all places where a file is opened/created/moved.

bzr revid: p_christ@hol.gr-20100713205359-jn0bo6fcw9lwdyge
2010-07-13 23:53:59 +03:00
P. Christeas d9553df1a2 Document: node context shall not be the context of orm methods.
The orm methods are called with some rich context, which need not be used
as the context of node structure. In the future, we might want to selectively
pass context values from orm to node.

bzr revid: p_christ@hol.gr-20100713103005-p0y6ptjoshomu0tv
2010-07-13 13:30:05 +03:00
P. Christeas 0d6e0a9a02 Document: support Moving of files.
bzr revid: p_christ@hol.gr-20100709082316-d8qedrjabckypt88
2010-07-09 11:23:16 +03:00
P. Christeas e8bf4a4f18 Document: fix the get_partner_id functionality
Was blocking document.create()

bzr revid: p_christ@hol.gr-20100706121045-mblekyw8nlkiy1r0
2010-07-06 15:10:45 +03:00
P. Christeas c9f313dc21 Document: isolate the partner_id auto-detection in a fn()
When a document is created, some code tries to auto-detect the related
partner_id from res_model. This should better be put in a function, and
reused in other places.

bzr revid: p_christ@hol.gr-20100701175133-6aq2tx9lkuskvedh
2010-07-01 20:51:33 +03:00
P. Christeas 2c5082001e Document: use the new move_to() api, protect setting of file_size.
bzr revid: p_christ@hol.gr-20100701175133-9prni6r0kspt27ku
2010-07-01 20:51:33 +03:00
P. Christeas 530932640b Document: fix setting parent of document_file.
There is some code that calls the 'move_to()' in case the document's
parent (aka. directory) is changed. Fix notation there.

bzr revid: p_christ@hol.gr-20100701175132-8ex94b3pdwkz4lq6
2010-07-01 20:51:32 +03:00
P. Christeas 11c5171326 Draft api for document.write(parent_id: ...)
If the parent directory for some document node changes, we may
have a major change in the stored content, so an API is needed
for that.

Conflicts:

	document/nodes.py

bzr revid: p_christ@hol.gr-20100701175131-ldt3b0er5a7tja0u
2010-07-01 20:51:31 +03:00
P. Christeas 514f433c59 Document: ir.attachment.res_model and res_id should be readonly for UI
Changing them would require a wizard or something.

bzr revid: p_christ@hol.gr-20100629140040-am61qng5pxfz2dxs
2010-06-29 17:00:40 +03:00
P. Christeas 85dc0b2fc6 Document: remove the ir.attachment.group_ids column
At the review, it was decided that per document permissions is too much.

bzr revid: p_christ@hol.gr-20100627201857-e0sw2sun1ttvnj32
2010-06-27 23:18:57 +03:00
P. Christeas c11ad0047d Document: files are required to have a parent directory
Or else, there is no storage for them.

bzr revid: p_christ@hol.gr-20100627201813-y5gatb8w39jnxeux
2010-06-27 23:18:13 +03:00
P. Christeas 6eef5d7e36 Document: rearrange columns definition of document.file
Note: *must* use the server as patched, for the 'url' and 'type' columns.

bzr revid: p_christ@hol.gr-20100627201809-p5wy2w368gqoyy3h
2010-06-27 23:18:09 +03:00
Harry (OpenERP) d2cb812814 [IMP] document: add new field company_id in document and directory model
bzr revid: hmo@tinyerp.com-20100623115349-ik8webt0myj6l43l
2010-06-23 17:23:49 +05:30
Harry (Open ERP) a855625916 [MERGE] work of document module
bzr revid: hmo@tinyerp.com-20100527124458-02xxdfbi8kp0x94k
2010-05-27 18:14:58 +05:30
ksa (Open ERP) 51770be47b [IMP]: document: [task-786] Review ir_attachment object,apply changes in base/ir and document module
bzr revid: ksa@tinyerp.co.in-20100527111423-m2b3wrx02jcuxvy9
2010-05-27 16:44:23 +05:30
ksa (Open ERP) b3c7cc9035 [IMP]: document: Improvement for view and add group by ,filter
bzr revid: ksa@tinyerp.co.in-20100526133720-bito6krfl60a6zud
2010-05-26 19:07:20 +05:30
rpa (Open ERP) 62115d03dc [FIX]: document: Corrected relation table with group
bzr revid: rpa@tinyerp.com-20100407131854-wa3avfr60zxh52te
2010-04-07 18:48:54 +05:30
Harry (Open ERP) f03a4fe933 [MERGE] merge with trunk-addons
bzr revid: hmo@tinyerp.com-20100329080947-lojccpq7zwynyg6v
2010-03-29 13:39:47 +05:30
kum (Open ERP) d91fa1c56e [FIX] document: changes made in create method
bzr revid: kum@tinyerp.co.in-20100323140106-z2qld0a827n2olqr
2010-03-23 19:31:06 +05:30
Ysa (Open ERP) 0067a88c5c [IMP] document :- support indexation of docx to TXT and PPTX to TXT.
bzr revid: ysa@tinyerp.co.in-20100319084130-uoh0twqfq12230ff
2010-03-19 14:11:30 +05:30
Harry (Open ERP) a87d74b385 [FIX] dms: if file does not has any direcotry on creation, take root directory
bzr revid: hmo@tinyerp.com-20100318153043-32ict1bcx08pe704
2010-03-18 21:00:43 +05:30