Denis Ledoux
e2201369a3
[FIX] web: format.js, toString while parsing date
...
When attempting to parse client date, value is not always a string.
We force the toString when adding the leading 0, as the replace method is for string
2014-06-24 13:53:02 +02:00
Martin Trigaux
f9ce9a00d0
Merge pull request #17 from savoirfairelinux/7.0-m2m-context
...
[FIX] view_list: Add context propagation for m2m list view
If the _rec_name field of a model is translatable, the value was not translated when displayed in a list view through a many2many field (e.g. server_action_ids on base.action.rule).
2014-06-23 17:41:03 +02:00
Jacques-Etienne Baudoux
7e85786b83
web: do not select the first result if click on search more
...
When searching for a record in a m2o field, if we click on 'search more' we loose the focus on the field and select the first suggestion (which triggers potential on_change). This prevents the selection for this case.
2014-06-20 17:41:09 +02:00
Martin Trigaux
bccd75796e
[IMP] web: allow fields in list view to use the attrs readonly to dynamically show and hide the fields
2014-06-20 14:11:21 +02:00
Denis Ledoux
893e4aae9f
[FIX] web: focused field in view editable list
...
When adding an item to the editable list, the focused field was no longer the first visible field
This is related to revision 4a508885ac
visible_columns list is not ordered
2014-06-19 14:58:44 +02:00
Géry Debongnie
3d43f9d454
[FIX] fixes searchbar navigation (web client)
...
the code handling the keydown events was moved, but the variable this
was not adjusted accordingly, resulting in a broken navigation.
It is now possible to press LEFT and RIGHT again to move the focus
between facets.
2014-06-19 12:43:25 +02:00
Denis Ledoux
86b80cf95e
[FIX] web: allow using dates and datetimes without leading zeros
2014-06-18 11:12:27 +02:00
Denis Ledoux
a32e989fba
[FIX] web: save date(time) field value on key enter in editable list
...
In editable list, on keypress enter, the _next method is called, saving the current line and starting the edition of the next one
The _next is triggered before the date(time) field change event, and, therefore, the saved value of the date(time) field is the old one
2014-06-17 12:56:13 +02:00
Denis Ledoux
4a508885ac
[FIX] web: view_list_editable, on add an item, focus on the first cell of new row
...
Before, the focus was set on the first row, and, thererefore, if the list was enough long, it jumped out and the actual new row was hidden
2014-06-12 20:03:50 +02:00
Martin Trigaux
0b4921e4d6
parse_value: interger != float
...
Wwhen parsing a integer field, do not accept float values. '1' or '1.0' is ok but not '1.1'. (opw 608544)
2014-06-12 13:48:41 +02:00
Christophe Simonis
ab9ac783db
[FIX] web: many2many field handle "no_create" option
2014-06-05 13:46:53 +02:00
Mohammed Shekha
26cb208903
[FIX]Refixed the issue of o2m record duplication
2014-05-27 19:35:09 +05:30
Mohammed Shekha
477fa85e55
[FIX]Fixe the issue o2m record duplication.
2014-05-27 10:10:06 +05:30
Sandy Carter
3594dc56da
[FIX] Add context propagation for m2m list view
...
Fix bug https://bugs.launchpad.net/openerp-web/+bug/1279885 :
Many2many fields in Tree views will not get translated.
If you check the context for a name_get of a m2m field, it is passed as
None.
Add context propagation to m2m fields in list views.
Fix translation issues when viewing a a many2many field in a Tree view.
2014-05-16 17:42:20 -04:00
Martin Trigaux
dd03491df9
sync with 7.0
...
bzr revid: mat@openerp.com-20140425113555-nkjxldq61io6kvdo
2014-04-25 13:35:55 +02:00
Martin Trigaux
10d3dd4ec3
[FIX] update to latest version saas code with updated underscore lib
...
bzr revid: mat@openerp.com-20140424160833-p0uf6zzst0pnj3i7
2014-04-24 18:08:33 +02:00
Denis Ledoux
6083ed4b46
[FIX] web: abitility to do exact id matching with child_of operator for searchs on many2one fields
...
bzr revid: dle@openerp.com-20140422150918-nxv2v4bcvi6u3v6g
2014-04-22 17:09:18 +02:00
Martin Trigaux
fa4e285be7
[FIX] FieldMany2One: avoid error when saving changes in popup from a related fields (opw 606601)
...
bzr revid: mat@openerp.com-20140418092033-mvqng3thuy61kfoq
2014-04-18 11:20:33 +02:00
Denis Ledoux
7c668d8eac
[FIX] web: double click on save button was trying to save the data two times if there is some latency, event target should be used instead of delegate target
...
bzr revid: dle@openerp.com-20140417101217-3fwnm76qne6f1vwk
2014-04-17 12:12:17 +02:00
Denis Ledoux
f928ba4f10
[FIX] web: double click on save button was trying to save the data two times if there is some latency
...
bzr revid: dle@openerp.com-20140417101000-6gtyxntkm5d7zcoy
2014-04-17 12:10:00 +02:00
Mohammed Shekha
91930b470d
[FIX]Fixed the issue of reference field throws traceback that view is undefined, the reason is that reference field passing DefaultFieldManager while creating instance of many2one widget and DefaultFieldManager is eventually extending instance.web.widget not instance.web.form.FormWidget and hence DefaultFieldmanager will nto having view attribute, instead of calling self.view.do_onchange, trigger changed_value which is going to do the same job.
...
bzr revid: msh@tinyerp.com-20140416083857-sug0k4a28nkvgg27
2014-04-16 14:08:57 +05:30
Martin Trigaux
3a27186643
[MERGE] [FIX] FormView: avoid multiple creations of the same line in o2m fields when the save action fails (e.g. forgot one required field)
...
This is done by removing the added action 'prepend_on_create' that can be present as many time as we pressed the save button
lp bug: https://launchpad.net/bugs/1265705 fixed
bzr revid: mat@openerp.com-20140414081003-290q4v21q01m4rsi
2014-04-14 10:10:03 +02:00
Denis Ledoux
b00a7562f9
[FIX] web: impossible to click on attach button, for many2many_binary
...
This fix is related to revision 4169 revid:mat@openerp.com-20140407120612-mjb08yts2oa4k4jz
bzr revid: dle@openerp.com-20140409093422-imrg2hqozf46kj8d
2014-04-09 11:34:22 +02:00
Denis Ledoux
a16b0c7907
[IMP] web: select input on add record in list editable
...
bzr revid: dle@openerp.com-20140408120141-f1fx2e9e8vqatccx
2014-04-08 14:01:41 +02:00
Martin Trigaux
d0b7e7fc7b
[MERGE] [FIX] upload widget: avoid overflow making impossible to click on other buttons than the first one (opw 603125)
...
bzr revid: mat@openerp.com-20140407120612-mjb08yts2oa4k4jz
2014-04-07 14:06:12 +02:00
Mohammed Shekha
f9d143c216
[FIX]Fixed the issue of duplicated one2many lines, weired behavior when you add one2many line and then add another line withour filling required field and then click on save, then remove added one2many line for which we didn't filled required data and then save it, you will get duplicated lines.
...
bzr revid: msh@tinyerp.com-20140403070844-6ogpdursukue2zoh
2014-04-03 12:38:44 +05:30
Martin Trigaux
64ecfa40ec
[IMP] cookies: when retrieving session cookie, catch eventual parsing errors and remove cookie if incorrect (opw 605648)
...
In case of unparsable cookie (modified, corrupted,...), openerp would not load and crash with white screen until expiration.
With the fix goes back to login screen.
bzr revid: mat@openerp.com-20140327120826-2p6ebnojtmdl1wpm
2014-03-27 13:08:26 +01:00
Martin Trigaux
a04f73ee80
[IMP] cookies: when retrieving session cookie, catch eventual errors and remove malformed cookie
...
bzr revid: mat@openerp.com-20140327113401-s3ee7fnexhre9mwb
2014-03-27 12:34:01 +01:00
Denis Ledoux
649ef3ed21
[REVERT] 4164 revid:dle@openerp.com-20140326113036-g9yv3jj6yetwxvg8: this fix actually works in saas-3, but not in 7.0, as search_read method is not part of the orm
...
bzr revid: dle@openerp.com-20140326123513-jkful2m1n2zjgdmv
2014-03-26 13:35:13 +01:00
Denis Ledoux
162ad1c0f1
[FIX] web: on record reload (form & list view), use search_read instead of read, to check if the user can still read the record (security rules)
...
bzr revid: dle@openerp.com-20140326113036-g9yv3jj6yetwxvg8
2014-03-26 12:30:36 +01:00
Martin Trigaux
53922c9593
[FIX] pager: revert of revision 4159, the pager was disapearing when going in editable mode (which is more problematic that the issue rev 4159 was trying to fix)
...
bzr revid: mat@openerp.com-20140314132854-8ie8sosx9xecuww4
2014-03-14 14:28:54 +01:00
Martin Trigaux
08e07af590
[FIX] pager: do not try to toggle the visibility if the pager do not exists yet
...
bzr revid: mat@openerp.com-20140314112709-0sqq6tcpmza34q1e
2014-03-14 12:27:09 +01:00
Martin Trigaux
71d8f8f1c4
[FIX] pager: show the pagger earlier to avoid slow loading to mix list and form pagers when fast switching
...
bzr revid: mat@openerp.com-20140313123811-ej7lu53xp51kn6gu
2014-03-13 13:38:11 +01:00
Martin Trigaux
82692f11a0
[MERGE] [FIX] one2many fields: when sortign on a column of type m2o (format (id, name)), instead of sorting on the tuple (and then id), sort on the name_get value to match what is shown on the screen
...
bzr revid: mat@openerp.com-20140312150435-shq9hy3b9njkhxsn
2014-03-12 16:04:35 +01:00
Denis Ledoux
6e9f3ad806
[FIX] web: set z-index of 9999 for autocompletion pane of search bar, to avoid being behind jquery ui dialogs. Besides, this pane should always be on top, therefore we can assume that setting 9999 will not have bad side effects
...
bzr revid: dle@openerp.com-20140311104947-is5qpw71y1m2oakf
2014-03-11 11:49:47 +01:00
Xavier ALT
c033e5a535
[FIX] web: on SearchPopup creation concat build context even if we have initial_ids
...
On SearchPopupCreation, if we have initial_ids - 1st search_read() will be
missing custom context defined on the field.
1. defined view like this: <field name='my_many2one_field_id' context="{'test': 1}"/>
2. in we expand the list of available item, name_search() has 'test' in context
3. in we click on 'Search More', search_read() is missing 'test' in context
4. if we change filter add/remove item, search_read() will have 'test' in context
Step 3. is wrong, should also have 'test' in context
lp bug: https://launchpad.net/bugs/1209295 fixed
bzr revid: mat@openerp.com-20140311091522-03imwd5rj3rmwapl
2014-03-11 10:15:22 +01:00
Martin Trigaux
618c8b9100
[FIX] quick create: do not add the id in the form if the form is readonly (eg: clicking on save button will make the form uneditable)
...
bzr revid: mat@openerp.com-20140307141257-rvusvzm6oq3tel51
2014-03-07 15:12:57 +01:00
Martin Trigaux
22f86f097a
[MERGE] [FIX] export wizard: better behaviour when saving new fields list
...
- Show the fields list once we save the first one
- When delete a list, remove the selected fields
- When add a list, do not remove the selected fields
bzr revid: mat@openerp.com-20140305100843-ircqtucf1pkn3wzd
2014-03-05 11:08:43 +01:00
Martin Trigaux
7bb95a4468
Update undescore.js to version 1.6 and underscore.string.js to version 2.3
...
bzr revid: mat@openerp.com-20140304125528-97w5kbv3ry028kn9
2014-03-04 13:55:28 +01:00
Mohammed Shekha (OpenERP)
f29f1e6f04
[FIX]Fixed the issue of o2m sorting by column, m2o field does not give proper result for sorting because whole value of m2o [id, value] going to compare for sorting.
...
bzr revid: msh@openerp.com-20140304110659-4uu38feetsjj0tt5
2014-03-04 16:36:59 +05:30
Martin Trigaux
a1a5bc6c06
[MERGE] [FIX] view list: pagination problem when delete records in list view
...
When delete a record, correctly display the number of remaining items displayed (eg: 1-79 of 99)
When no more items in a page, force switch to previous page
When no more pager, reload the content to display potential items in next page
bzr revid: mat@openerp.com-20140303164114-pzeuu9hxvq17lx02
2014-03-03 17:41:14 +01:00
Martin Trigaux
16a5c45114
[FIX] home action: open the linked menu in addition to execute the action. The menu tree is now correctly displayed instead of only messaging.
...
bzr revid: mat@openerp.com-20140221165706-79uqffr5nk4zbj5e
2014-02-22 03:57:06 +11:00
Martin Trigaux
8be121ff69
[MERGE] [FIX] view_list: avoids getParent() js error when clicking to fast on menu items that load a list view after loading a form view
...
bzr revid: mat@openerp.com-20140218143111-yot645o83gxvkujb
2014-02-18 15:31:11 +01:00
Martin Trigaux
2e831ab7c3
[IMP] data: skip read_ids call when got no id (opw 604099).
...
This avoids making useless calls to to read the values of o2m fields when the read on a record already told us there was no ids.
bzr revid: mat@openerp.com-20140218101438-yqim33cvtg6wt4mw
2014-02-18 11:14:38 +01:00
Cecile Tonglet
5ef7c4a6a1
[FIX] getParent() js error when clicking to fast on menu items that load a list view after loading a form view
...
bzr revid: cto@openerp.com-20140217104920-fu8hcqd51bh7qnrp
2014-02-17 11:49:20 +01:00
Martin Trigaux
9cc13d4216
[MERGE] [FIX] home action: fixing the broken field 'action_id' on the res.users form (lost with 6.1->7). This field executes a custom action at page load.
...
bzr revid: mat@openerp.com-20140214131800-9vwuxe9b2zki35il
2014-02-14 14:18:00 +01:00
Martin Trigaux
d65df64cdd
[IMP] always click on first link to have menus and breadcrumb
...
bzr revid: mat@openerp.com-20140214111707-7zzpeccs9aanfdct
2014-02-14 12:17:07 +01:00
Martin Trigaux
8877c10161
[FIX] login: look at the value of action_id on the current res.users to execute the action instead of the first link (Inbox). Bring back 6.1 behaviour.
...
bzr revid: mat@openerp.com-20140214111540-sbn3y6ou3vrjza15
2014-02-14 12:15:40 +01:00
Martin Trigaux
ce778f2000
[MERGE] [FIX] css: Fixed the issue of statubar not aligned with buttons in chrome browser.
...
bzr revid: mat@openerp.com-20140213145755-txvtwqbfc83vnw9o
2014-02-13 15:57:55 +01:00
Mohammed Shekha (OpenERP)
a8943b416a
[FIX]Web, Statusbar: Fixed the issue of statubar in chrome is aligned, it is aligned in inline block.
...
bzr revid: msh@openerp.com-20140213115556-irdodahpw0atgy5u
2014-02-13 17:25:56 +05:30