Commit Graph
50056 Commits
Author SHA1 Message Date
Xavier Morel 46e511d1f2 [FIX] o2m validation workflow for lists, to match new edition methods
bzr revid: xmo@openerp.com-20120709110426-w6v512ff5dskmr3x
2012-07-09 13:04:26 +02:00
Xavier Morel e9921d62df [FIX] ensures the o2m is correctly saved before activating action buttons, even when a row is being edited
bzr revid: xmo@openerp.com-20120709110112-dgpm1jhb9o2lmweg
2012-07-09 13:01:12 +02:00
Xavier Morel d51c9a8590 [FIX] double-include of ids in the dataset, and double-save in some cases ~/projects/tiny/web/current
on [change] of a listview record, if there was no id on the record
(id=false) we need to add one. But depending how the creation/addition
of the record was done, the id may already have been inserted e.g. by
the formview.

So first check if the record's id is already in the dataset, and add
it if it's not.

bzr revid: xmo@openerp.com-20120709092401-p1in6bvs5e2ptp5p
2012-07-09 11:24:01 +02:00
Xavier Morel 853c5a70c0 [ADD] 'false' id to newly created records, otherwise format_cell's button rendering blows up
also fix various bits of code looking for an absence of @data-id, so that they look for a false @data-id to match the row of the new record instead

bzr revid: xmo@openerp.com-20120709084652-rt1ffu2ea20scw53
2012-07-09 10:46:52 +02:00
Xavier Morel cd59881b05 [FIX] Editor is not restartable, so don't restart it.
Instead, create a new one at each on_loaded.

Editor is not restartable because the formview wedges itself if its on_loaded is called more than once

bzr revid: xmo@openerp.com-20120709080604-er1l6bn5eespue59
2012-07-09 10:06:04 +02:00
Xavier Morel ee20d56357 [FIX] Create new records as a bunch of empty (false) fields, otherwise Bad Things Happen ~/projects/tiny/web/current
namely, if the list view fields have e.g. attributes associated, the
computation of the domains blow up

also, always create an editor in the listview (if the editable
listview module has been installed), avoids blowing up 'safety' calls
to #ensureSaved. An alternative would be to fix #ensureSaved not to
blow up if there's no editor, but that means third parties which
*know* there may be an editor in the list view can't easily hook up to
it.

Things will have to change anyway as currently toggling a list view
from not-editable to editable after on_loaded has been called will not
work correctly (it won't start the editor), which is shitty.

bzr revid: xmo@openerp.com-20120705143721-4fiz64k7fka4052k
2012-07-05 16:37:21 +02:00
Xavier Morel d968398d15 [ADD] events tests
bzr revid: xmo@openerp.com-20120705124342-vm0pavyzqfuwa3k5
2012-07-05 14:43:42 +02:00
Xavier Morel 09bf459bbc [TESTS] add some
bzr revid: xmo@openerp.com-20120705070854-tsyl27v3hdh7sbds
2012-07-05 09:08:54 +02:00
Xavier Morel b289447826 [TEST] saving of editor with required non-filled field, and cancelling of edition
bzr revid: xmo@openerp.com-20120704152329-81ktb8umm9xbr5wt
2012-07-04 17:23:29 +02:00
Xavier Morel 028f9d115f [FIX] strangely implemented searchview test breaking some subsequent tests randomly
bzr revid: xmo@openerp.com-20120704140240-6yehb6c6ffxi7d12
2012-07-04 16:02:40 +02:00
Xavier Morel cd90a9365c [FUCK] that shit
bzr revid: xmo@openerp.com-20120704133521-7x05840jzek1d8e7
2012-07-04 15:35:21 +02:00
Xavier Morel 25284686f3 [TEST] saving of record being edited, improve RPC mocking to allow dispatch on ORM method name
bzr revid: xmo@openerp.com-20120704132822-3p4h1c6cyr0qvn2x
2012-07-04 15:28:22 +02:00
Xavier Morel 9c6f8c5335 [FIX] broken keyup handling for return key, incorrect name ($.ui.keyCode uses enter)
bzr revid: xmo@openerp.com-20120704121957-hcwk5ove76kpo7y0
2012-07-04 14:19:57 +02:00
Xavier Morel dda83dc1ea [IMP] extract some testing primitives to a dedicated module, migrate search view tests to those
bzr revid: xmo@openerp.com-20120704112406-1lqwahtdo7fnla8o
2012-07-04 13:24:06 +02:00
Xavier Morel 039cf85e32 [TEST] start adding some testing to new editable listview, validate structure of editionView in Editor
bzr revid: xmo@openerp.com-20120704095626-j7wtbgdmoti0kjie
2012-07-04 11:56:26 +02:00
Xavier Morel db4aa8dfe7 [REF] remove deprecated & unused methods; extract some other methods
bzr revid: xmo@openerp.com-20120703155305-4bigm8htt3xutkyt
2012-07-03 17:53:05 +02:00
Xavier Morel 7ab7992fd6 [FIX] ensure current edition is saved before performing action
bzr revid: xmo@openerp.com-20120703143126-6ludobg5o75t14ic
2012-07-03 16:31:26 +02:00
Xavier Morel 58d1d6bb39 [FIX] forgot to instantiate deferred
bzr revid: xmo@openerp.com-20120703143035-zi336bg5lheocjpa
2012-07-03 16:30:35 +02:00
Xavier Morel 895dfe2448 [FIX] replace references to parent in editor with delegate, write some basic APIDoc
bzr revid: xmo@openerp.com-20120703133210-kgrj7y10cr3c8hai
2012-07-03 15:32:10 +02:00
Xavier Morel 336443d604 [IMP] hiding of readonly form fields in edition row: don't directly access DOM visibility properties
bzr revid: xmo@openerp.com-20120703110700-k0dqtthwo1g36pod
2012-07-03 13:07:00 +02:00
Xavier Morel ae6c6eb8ec [ADD] save button instead of selector during edition
bzr revid: xmo@openerp.com-20120703102750-1vmoljtbrnnl3lzo
2012-07-03 12:27:50 +02:00
Xavier Morel a5940c4147 [IMP] reload record after cancelling an edition
bzr revid: xmo@openerp.com-20120703102731-mh1gqbglenr4boem
2012-07-03 12:27:31 +02:00
Xavier Morel 1a7ca5f676 [IMP] attempt to tighten concurrent operations during save phase of an edited row
bzr revid: xmo@openerp.com-20120703093200-hxsr9pnwoszbgwgl
2012-07-03 11:32:00 +02:00
Xavier Morel 4aa64c0033 [FIX] removal of id-less records from list view
bzr revid: xmo@openerp.com-20120703091257-3dw0qs9aw125hrc7
2012-07-03 11:12:57 +02:00
Xavier Morel 29e65ff052 [FIX] move 'behavior on save' to handler for [Return] key as it's the only situation where we want to skip to next record
bzr revid: xmo@openerp.com-20120703091058-b7wdebu8ak6gssyb
2012-07-03 11:10:58 +02:00
Xavier Morel 70fa57b9df [IMP] move onwrite handling to ListView (from List)
untested

bzr revid: xmo@openerp.com-20120702135824-ngcx34qfuu3t2kab
2012-07-02 15:58:24 +02:00
Xavier Morel 5df6c47700 [FIX] methods capitalization
bzr revid: xmo@openerp.com-20120702133451-e5b7uozm0p36jbpr
2012-07-02 15:34:51 +02:00
Xavier Morel 13cf266e2c [FIX] next on create/save
* Move prev/next behavior after save to ListView
* Have fetching of row for a record be a method chain on Group/List
* Have edition behavior be fully specified in ListView

bzr revid: xmo@openerp.com-20120702132217-ni1byjkf7t6tr5a4
2012-07-02 15:22:17 +02:00
Xavier Morel 6719fb96d7 [FIX] handling of setting/resetting ids on records in list collections
bzr revid: xmo@openerp.com-20120702122902-f349shdjslbbxd3k
2012-07-02 14:29:02 +02:00
Xavier Morel d6a9d86e09 [FIX] change event handling for 'new' records (records w/o an id yet)
bzr revid: xmo@openerp.com-20120702111026-twmh5gbg4i1fd4kj
2012-07-02 13:10:26 +02:00
Xavier Morel c262b2d1ae [FIX] shallow-copy info passed into Editor#edit to avoid mutating an object owned by somebody else
bzr revid: xmo@openerp.com-20120702110733-0qp0ki3hbw5b2nd3
2012-07-02 13:07:33 +02:00
Xavier Morel d1eeaaa51e [FIX] better filtering of id-less rows being selected in a ListView.List body
bzr revid: xmo@openerp.com-20120702110658-7t8pu12uso55enrh
2012-07-02 13:06:58 +02:00
Xavier Morel 3cc825994b [TODO] add todo note
bzr revid: xmo@openerp.com-20120702110607-csi1oa4hm6lxtwat
2012-07-02 13:06:07 +02:00
Xavier Morel 70d5ffb73b [FIX] only select rows if select_view_id *is set* and matches the record's id
bzr revid: xmo@openerp.com-20120702110530-54t24gh0lo1cctsv
2012-07-02 13:05:30 +02:00
Xavier Morel 718ae91920 [FIX] broken implementation of collection#find
bzr revid: xmo@openerp.com-20120702110504-9fga0xwo0e5bzq1c
2012-07-02 13:05:04 +02:00
Xavier Morel ac2895fd62 [IMP] don't handle keypresses at the editor level, do that in the view instead
maybe the editor could do it and trigger an event of its own for the view to handle?

bzr revid: xmo@openerp.com-20120702093113-berlms96fqzfjlyg
2012-07-02 11:31:13 +02:00
Xavier Morel f83684265d [FIX] make edition of existing records kinda-sorta work (if the record is 'saved' by clicking on an other one)
bzr revid: xmo@openerp.com-20120628141403-z8kdg24xy5thmg50
2012-06-28 16:14:03 +02:00
Xavier Morel cbba19da67 [IMP] automatically focus first field of edited row
bzr revid: xmo@openerp.com-20120628084547-6fo7fkiy2gh2wb6m
2012-06-28 10:45:47 +02:00
Xavier Morel 94f6eec2ab [BREAK] editable list view
* Introduce overlay form on row edition
* Broken save
* Broken cancel
* (probably) broken o2m
* Broken create

bzr revid: xmo@openerp.com-20120627143228-qku9ku3zo6k59r0f
2012-06-27 16:32:28 +02:00
Xavier Morel f96372e178 [FIX] oe_form_field on m2m form field
bzr revid: xmo@openerp.com-20120627132701-5k9ovbu9q57uwc35
2012-06-27 15:27:01 +02:00
Xavier Morel bff8dad0f5 [ADD] flag to prevent FormView#do_show from playing into a dataset on its own
bzr revid: xmo@openerp.com-20120627100206-8492a3ozn7fudu90
2012-06-27 12:02:06 +02:00
Xavier Morel 02ad054961 [FIX] form warnings
bzr revid: xmo@openerp.com-20120627100151-t712ibqydt0vv7cf
2012-06-27 12:01:51 +02:00
Xavier Morel f20cf64bdb [FIX] merge mistake breaking button widgets of form view
bzr revid: xmo@openerp.com-20120626082413-3tnrq8nm3koactn1
2012-06-26 10:24:13 +02:00
Raphael Collet 5e764699c3 [MERGE] trunk-application_setting_cleanup-atp (fix for cancel button on config wizards)
bzr revid: rco@openerp.com-20120626075208-y10gd5kb8qre8hzt
2012-06-26 09:52:08 +02:00
Raphael Collet 4a1cde1df6 [MERGE] trunk-application_setting_cleanup-atp (fix for cancel button)
bzr revid: rco@openerp.com-20120626075118-6ryztze32z5jqu6s
2012-06-26 09:51:18 +02:00
Raphael Collet 0806d443e8 [IMP] config wizards: add an action on button 'Cancel' to get the expected behavior
bzr revid: rco@openerp.com-20120626074946-a1tzebh85ta6v75l
2012-06-26 09:49:46 +02:00
Raphael Collet e49264711c [IMP] res.config.settings: add method 'cancel' to reload the view
bzr revid: rco@openerp.com-20120626074746-1x5x47rm01klx2hp
2012-06-26 09:47:46 +02:00
Launchpad Translations on behalf of openerp 32826d52f9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120626052217-ejijeif40inxummm
bzr revid: launchpad_translations_on_behalf_of_openerp-20120626053624-27gc1r3gtzgs227c
2012-06-26 05:36:24 +00:00
Fabien Meghazi 92f9305050 [IMP] Improved oe_highlight_on_dirty
bzr revid: fme@openerp.com-20120625202710-97ggelivandevbwj
2012-06-25 22:27:10 +02:00
Fabien Meghazi 52a7476bb1 [ADD] Added oe_highlight_on_dirty
bzr revid: fme@openerp.com-20120625195225-ehts5hyuscmpxeyy
2012-06-25 21:52:25 +02:00