Commit Graph
87 Commits
Author SHA1 Message Date
Christophe Matthieu 500c33b184 [IMP] web: split model.js into model.js and data_model.js. Web js modules must call web.DataModel. 2015-07-10 16:32:35 +02:00
Aaron Bohy 1280bf2513 [IMP] Web and all views: ControlPanel atomic update
Change the logic of rendering and displaying/hidding the control
elements (buttons, sidebar and pager) of all views. The views do no
more render automatically their elements as this is rather done
through the render_[element] function called by the ViewManager.
This function only appends the element to the $node given as argument.
If no argument is given, then it may appends it to the DOM directly,
within the adequate div of its template.
This allows the ViewManager to attach/detach all elements of the
ControlPanel in an atomic may, to prevent the ControlPanel from
flickering.
Also detach the contents of the ControlPanel in headless mode. Headless
means that the ControlPanel exists, but is hidden. Detaching its
contents permits to have a cleaner DOM.

Also remove the oe_form_dirty class on the buttons in the FormView, as
this class is only used on the view itself.

Side changes:
* base_import: import.js:
    Extend render_buttons function to be compliant with the new buttons
    rendering logic
* board: dashboard.js:
    Set flag search_view to True as the searchview is needed for the
    Views displayed in the Dashboard to retrieve the records to display.
    Necessary since we do no more construct the searchview when this
    is set to false
* google_drive: drive.js,
  share: share.js:
    Module extending the Sidebar widget often add their own buttons
    by extending the start(), which is called each time the Widget
    is appended to the DOM. With our new design, this could be done
    in start() anymore as it should be done only one. It is now done
    in init() instead.
2015-03-20 16:34:39 +01:00
Aaron Bohy 53a9f6c081 [IMP] Web et al.: ControlPanel extracted from ViewManager
The ControlPanel is still instantiated by the ViewManager.

Changes details:
* web: views.js:
    Code related to views header is extracted from the ViewManager
    to a new Widget named ControlPanel.

    Also uses the headless flag to tell the inner view not to put
    its buttons (use case: kanban) or pager (use case: list) in the
    header as it is hidden.
* web: view_form.js, base.xml:
    Uses the headless flag at initialization of the One2ManyViewManager
    widget instead of extending the ViewManager template (which doesn't
    handle the header anymore).

* web: view_list.js:
    Test on this.options.$pager instead of this.options.$buttons
    when dealing with pager.

    Note: the behavior for list view is unchanged and has a bug.
    If there are more then 80 records to display, only the 80th
    first are display, and as there is no pager, there is no way
    to see the remaining ones. A fix for this would be to use a
    light ControlPanel in One2Many views as well. With this,
    there won't be duplicated .oe-'view'-buttons/sidebar/pager
    anymore.

* web: view_graph.js, view_pivot.js:
    Only render buttons in non-headless mode

* web_dashboard: dashboard.js:
    Fix some references that were broken with ControlPanel extraction

* web_view_editor: web_view_editor.js:
    Extend ControlPanel instead of ViewManager

* Changes in selector of ControlPanel elements in several addons:
    * base_import
    * mail
    * web
2015-03-20 16:17:06 +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 156787155a [REF] base_import: update to the new module system 2015-03-18 09:01:51 +01:00
Christophe Simonis 109dae2efa [MERGE] forward port of branch 8.0 up to d4f41a1 2015-02-26 18:56:26 +01:00
Fabrice Henrion e9b391c308 [FIX] base_import: typos
closes #5478
2015-02-26 10:02:45 +01:00
Géry Debongnie 585bcda398 [FIX] base_import: allow scrolling in import menu
also, removes some dead templates in base.xml
2015-02-02 15:45:14 +01:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Yogesh Parekh 6b16b79e8d Add div tag and oe_padding class to display the question 2014-05-22 15:47:45 +05:30
Xavier Morel b39aac717d [IMP] mail, base_import: context key disabling history tracking
* added a ``tracking_disable`` context key used by mail to completely disable
  subscriptions setup and events generation during create and write operations
* added import option to optionally set up that context key and speed up
  imports at the cost of not setting up subscriptions and not sending
  create/update events

bzr revid: xmo@openerp.com-20140512100400-d1axjam2d0i2y0tf
2014-05-12 12:04:00 +02:00
Antony Lesuisse a8e833b44f [FIX] base_import remove useless test
bzr revid: al@openerp.com-20140428151946-0g54ne4yintws4cu
2014-04-28 17:19:46 +02:00
Kersten Jeremy b2ea875f4c [FIX] IE9 - Move the placeholder in base_import from view to js, to use the mechanism of select2 and not the jquery.placeholder. Else, jq.placeholder override the select2 value, because the style option is in reality an input in dom.
bzr revid: jke@openerp.com-20140325173205-n2q0dw1kynlkint7
2014-03-25 18:32:05 +01:00
Christophe Matthieu fd2821086f [MERGE] sync with trunk
bzr revid: chm@openerp.com-20131202150925-eqsi0uu0fqtwimhj
2013-12-02 16:09:25 +01:00
Antony Lesuisse 57ef91409a [MERGE] bootstrap3
bzr revid: al@openerp.com-20131202132445-oux9j63auh4om284
2013-12-02 14:24:45 +01:00
Denis Ledoux 702b9c2e1b [FIX]base_import: if the error message was an except_orm or an access denied error, the error message was not displayed, only a red div without anything in it.
bzr revid: dle@openerp.com-20131128163613-e20nbr3yqvhvx4bv
2013-11-28 17:36:13 +01:00
ima-openerp beea089c21 [IMP]improved css of base_import module for dd, label and p tags.
bzr revid: ima@tinyerp.com-20131119115840-o8evs0ap85xf7ybp
2013-11-19 17:28:40 +05:30
ima-openerp 3bf3bc3895 [IMP]improved css for base_import, mass_mailing and idea module.
bzr revid: ima@tinyerp.com-20131118121605-1rn0z4hojxblngbu
2013-11-18 17:46:05 +05:30
Xavier Morel 6562ab4d76 [IMP] move select2 to its own module
bzr revid: xmo@openerp.com-20131113145727-3p2fh8bprj7k09xe
2013-11-13 15:57:27 +01:00
Denis Ledoux 959b0bc720 [FIX]base_import: context was not considered while importing. Thus, default value (for instance) was not set, and that leaded to inconsistencies (Like importing supplier invoices was actually creating customer invoices
lp bug: https://launchpad.net/bugs/1086424 fixed

bzr revid: dle@openerp.com-20131031135605-ffj3tid9prw2mv8z
2013-10-31 14:56:05 +01:00
Martin Trigaux 79e283090a [MERGE] base_import: better FAQ
bzr revid: mat@openerp.com-20130604152059-batvt7x6zvvwbipr
2013-06-04 17:20:59 +02:00
Martin Trigaux 182118eb8c [MERGE] kill the executable bit on things that are clearly not executables or scripts
bzr revid: mat@openerp.com-20130508144521-bkvms15maji1ykpb
2013-05-08 16:45:21 +02:00
chirag patel 8bd5a1dbba [FIX] Replace csv file.
bzr revid: cpa@tinyerp.com-20130122133520-0m3gmxdh3ytgor0s
2013-01-22 19:05:20 +05:30
Phil Frost 5ff3ae2034 kill the executable bit on things that are clearly not executables or scripts
bzr revid: pfrost@openerpdev-20130103231005-56pglti6uss0jsm5
2013-01-03 18:10:05 -05:00
Olivier Dony 49597f0e66 [MERGE] *: improved english wording, suggestions courtesy of OpenERP Community
bzr revid: odo@openerp.com-20121221164808-kdjrtcbgma4dr3on
2012-12-21 17:48:08 +01:00
Xavier Morel e491b32e96 [FIX] base_import: list possible separators in a combo box for easier handling of tab-separated files
inserting a tab character in a text field is often difficult, as it's also used to switch between activable nodes

bzr revid: xmo@openerp.com-20130204135701-yta16mkvw2pmh6hs
2013-02-04 14:57:01 +01:00
Xavier Morel d5a0ddc99b [FIX] base_import: don't crash UI when an unexpected exception is raised during the import process
treat exceptions as 'normal' failures, convert to a regular 'error' message

bzr revid: xmo@openerp.com-20130204125214-gy0l6qlt9obkb81x
2013-02-04 13:52:14 +01:00
Xavier Morel 2722b91ca5 [IMP] significantly reduce font size inside import dropdowns
bzr revid: xmo@openerp.com-20130204114257-7cc2li3g8ecym2l2
2013-02-04 12:42:57 +01:00
Vo Minh Thu c20e2afda1 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121114125900-egz3k82n98kwz47x
2012-11-14 13:59:00 +01:00
Fabien Meghazi 185b32d7d5 [MERGE] trunk
bzr revid: fme@openerp.com-20121107091958-f3rqu7nc585umjwq
2012-11-07 10:19:58 +01:00
Xavier Morel aabb0f38fa [FIX] base_import: only allow reloading the current file if there *is* a current file loaded
bzr revid: xmo@openerp.com-20121106084353-npwkbkg6r0wkwdrg
2012-11-06 09:43:53 +01:00
Fabien Meghazi 13be6e322f [MERGE] trunk
bzr revid: fme@openerp.com-20121105201222-ws94bdyo8l9rqjjq
2012-11-05 21:12:22 +01:00
Fabien Meghazi cbbd4dcee3 [IMP] Client actions now takes the action as argument. Use action.params for options.
bzr revid: fme@openerp.com-20121105130130-dwkn8124zc6yq933
2012-11-05 14:01:30 +01:00
Fabien Meghazi 22ad7a70f7 [MERGE] trunk
bzr revid: fme@openerp.com-20121105084838-gwc7xb19f7131vbi
2012-11-05 09:48:38 +01:00
Fabien Pinckaers d658b2a6e5 [IMP] Import wizard, better explanations
bzr revid: fp@tinyerp.com-20121102103624-64vd1o41qq1tez2r
2012-11-02 11:36:24 +01:00
Vijaykumar Baladaniya e0bd5017e9 Add a sql file and their link.
bzr revid: vba@tinyerp.com-20121102063350-ce4q6cq38n84jz70
2012-11-02 12:03:50 +05:30
Vijaykumar Baladaniya c8a160f251 [IMP]Improve content.
bzr revid: vba@tinyerp.com-20121102060710-x5p5yl39n5qpe7ii
2012-11-02 11:37:10 +05:30
Vijaykumar Baladaniya 3a5334672f Add a proper file.
bzr revid: vba@tinyerp.com-20121101124315-30vw1xc6c4ajp3i5
2012-11-01 18:13:15 +05:30
Vijaykumar Baladaniya a45cdc652b [IMP]Improve Code and add a csv file.
bzr revid: vba@tinyerp.com-20121101111004-no023s4rzpze3i50
2012-11-01 16:40:04 +05:30
Fabien Meghazi a2715888c1 [IMP] jQuery deferred API changes refactoring. Changed 'then's in 'done'/'fail' and 'pipe's in 'then'
bzr revid: fme@openerp.com-20121031103148-r1slfpl2kcnajjd3
2012-10-31 11:31:48 +01:00
Vijaykumar Baladaniya b37dc17a3c [IMP]Import functionality in kanban views. and add a Frequently Asked Questions.
bzr revid: vba@tinyerp.com-20121029131746-ndc4qmd76xpne9ww
2012-10-29 18:47:46 +05:30
Vijaykumar Baladaniya 92133099cc [IMP]View Improvement
bzr revid: vba@tinyerp.com-20121029092750-tc6mm0xj1eiiwrqh
2012-10-29 14:57:50 +05:30
Vijaykumar Baladaniya 5ef878cd7d [MERGE]Merge with latest.
bzr revid: vba@tinyerp.com-20121029091942-s97xuoorvcywiped
2012-10-29 14:49:42 +05:30
Vijaykumar Baladaniya f22387e8c0 [IMP]Improve view.
bzr revid: vba@tinyerp.com-20121029090141-eapggkys3ltbyquh
2012-10-29 14:31:41 +05:30
Vijaykumar Baladaniya e945c2d6b3 [IMP]put a tooltip on the refresh button.
bzr revid: vba@tinyerp.com-20121029045026-lqvpzryidxjd9z3b
2012-10-29 10:20:26 +05:30
Vijaykumar Baladaniya 61986b3479 [IMP]View improvement.
bzr revid: vba@tinyerp.com-20121025134121-jn73k1lxta13idcg
2012-10-25 19:11:21 +05:30
Xavier Morel b2e32b21fa [FIX] base_import: dummy test file
bzr revid: xmo@openerp.com-20121024105612-84fb2gav0jpp2hkc
2012-10-24 12:56:12 +02:00
Fabien Pinckaers 0445d740a7 [IMP] CSS import wizard
bzr revid: fp@tinyerp.com-20121024102915-dtfy3dc4ll0ewf90
2012-10-24 12:29:15 +02:00
Xavier Morel d6f262da37 [FIX] methods renamed in web client but not fixed in addons
bzr revid: xmo@openerp.com-20121022100800-yft9a5itqgb2ohhy
2012-10-22 12:08:00 +02:00
Frédéric van der Essen 5469854d17 [MERGE] from trunk
bzr revid: fva@openerp.com-20121018081536-r0xfo12gttw0loab
2012-10-18 10:15:36 +02:00