Commit Graph
16 Commits
Author SHA1 Message Date
len-odoo 2a697f1c5b [FIX] document: update environment before attachments update
Fine-tuning of commit:
b3a3ad8099
ac1e187eea

The environment should be updated before the call to _updateAttachments,
as it depends on the env active_id.

opw 1888651

closes odoo/odoo#27277
2018-09-27 10:11:12 +00:00
Nicolas Lempereur b3a3ad8099 [FIX] document: updateEnv->redraw on not form view
In ac1e187ee some unecessary code and RPC were removed by ignoring
attachments in the sidebar when they would never be shown.

But there was an regression since `updateEnv` function would not
longer call redraw (which is also called in _super function).

report: https://github.com/odoo/odoo/commit/ac1e187eea3#r30569171

related to opw-1865736
closes #27146
2018-09-21 11:08:11 +00:00
Nicolas Lempereur ac1e187eea [FIX] document: no query attachment out of form view
Since cce70fd4 the attachment menu is only displayed for form view.

But if in another view there is active_ids (eg. selecting record in a
list view), we will still make a query to ir.attachment without using
the result.

Without the code change, the added test would fail when doing a
search_read RPC call to ir.attachment model.

related to #26213
2018-08-17 15:33:40 +02:00
Kirti Choudhary 80118dd8a2 [IMP] document: added QUnit testcase
note: backport 562d467 from saas-11.2 to 11.0 to add a similar test

related to #26213
2018-08-17 15:33:40 +02:00
Lucas Perais 6c9e45576e [FIX] document: display create_date of attachment timezone aware (#20242)
Before this commit, when putting the mouse over an attachment in the attachment drop menu list, the date time displayed was UTC only.
After this commit, we convert that value to the correct timezone datetime.

OPW 776704
2017-10-18 14:25:22 +02:00
fwi-odoo a53335fdb2 [FIX] web, document: adapt toolbar to the new views
- Fix the toolbar behaviour since there is no more dataset in the widget.
- Improve the communication beetwen the controller and the toolbar.
- Move the code linked to the document upload in the right file.
- Adapt the tests to mock the search_read done by ´document´ addon
- Adapt the mock server to be able to give a custom toolbar action
2017-05-03 13:41:07 +02:00
Aaron Bohy bda451ab31 [FIX] *: adapt addons to views refactoring of previous commit 2016-03-18 10:44:52 +01:00
Géry Debongnie 4fdf74fe21 [IMP] web+addons: improvement to module system
The module system needs to know the dependencies of a given module
before executing the function.  This is why the dependencies were
defined once in an array, and then were described one more times in the
call to require.

But a trick can simplify this: the boot function can parse the string
representation of the module and extract the calls to require from it.
It is more work for the processor, but it leads to simpler module
definitions.
2015-03-18 09:23:37 +01:00
Géry Debongnie 858e46e977 [REF] update various small addons to the new module system 2015-03-18 09:01:52 +01:00
Somesh Khare cce70fd4c9 [FIX] document: display Attachment(s) menu only on form view
The attachment menu (list and add) has no effect in tree view (not supporting multi-items upload and display), the menu should then only be displayed in these view (opw 612534)
2014-09-04 14:47:06 +02:00
Christophe Simonis dda51decc8 [FIX] document: correct numbering of attachments with the same name
bzr revid: chs@openerp.com-20131104110512-an7qpur1zckpgu7z
2013-11-04 12:05:12 +01:00
Tejas Tank bef70dd638 [FIX] Document name and google doc index.
bzr revid: tta@openerp.com-20121025073834-0tcjrqe8p7n3m2yx
2012-10-25 13:08:34 +05:30
Harry (OpenERP) 99c6701ba5 [IMP] document: display name with number if more than one attachment has same number
bzr revid: hmo@tinyerp.com-20121017071008-1khlntrrdi7cxgao
2012-10-17 12:40:08 +05:30
RGA(OpenERP) 2fd06a53de fix typo
bzr revid: rgaopenerp-20120925070743-5wg90i03onym8826
2012-09-25 12:37:43 +05:30
RGA(OpenERP) c21850bcdd [IMP] add attachment menu at second position
bzr revid: rgaopenerp-20120924115202-zq5k5130te1m1j4h
2012-09-24 17:22:02 +05:30
RGA(OpenERP) 81678402c0 [IMP] remove attachment from top toolbar, it should be only appear after document module install
bzr revid: rgaopenerp-20120924072127-g1pgfawn9sf92ep0
2012-09-24 12:51:27 +05:30