Commit Graph
75 Commits
Author SHA1 Message Date
Christophe Matthieu 1c5ea99b7b [FIX] web: display a translation alert when saving the form view
In the form view, when the user saves a record (with a multilang instance),
an alert is displayed to display all modified translatable fields.
2017-05-15 10:06:58 +02:00
qsm-odoo 250e716c3a [REF] web, *: restore views design
Since the new views merge, a lot of design elements were broken. This
was particularly impacting the fields in the editable list view; indeed
the editable list view is not using an inline form view anymore so the
fields in the list were not properly styled as the LESS was still
defined assuming the form view environment (for example the invalid
fields were red for o2m fields in form view but not in editable list
view even though they got the right CSS class).

This commit refactor the LESS following these rules:
- No more division of non-layout and layout rules. Dividing LESS rules
  in x_layout.less and x.less was a mistake. Many rules can be
  considered to be layout and not layout at the same time, developers
  always have to switch from one file part to the other, many CSS
  selectors (and rules!) are duplicated for nothing, ...
- Field style is extracted from x_view.less and put in the new
  fields.less file. As before, the fields_extra.less will contain the
  rules specific to community so that the enterprise repo can override
  those by replacing the whole file.
- Many classes have been renamed so that o_form_x_y becomes o_x_y as
  many classes can now be applied outside of form view. These classes
  should not be used in templates anyway.

The commit also changes the DOM of fields so that it is more minimalist
(no useless parent div, etc).

Input elements are not automatically styled anymore, they have to get
the o_input class explicitely. This allows to fix lots of small style
bugs of previous versions (required monetary field had not the proper
style, readonly m2m tags appeared as editable, ...). This also improves
the LESS code.

The editable list view should also completely stop flickering on chrome
and firefox.

The commit also removes the orange outline on list view dirty cells.

The commit also removes deprecated static xml, LESS and other code.

Notice there are still styles to restore/fix and LESS to improve.
2017-05-04 12:07:30 +02:00
Géry Debongnie 905e01921f [REF] web, *: redesign all JS views
This commit introduce a full redesign of all JS views.  We started
basically from scratch.  The goal was to unify all the various views
under a common framework, to make them testable, to make then usable in
different conditions (in studio, or in the frontend), and to make our
lives easier.

Some important points are:
- we introduced new coding guidelines (camelCase, 80 chars width, ...)
- we have a brand new testing framework (still QUnit based)
- kanban view moved to the web addon
- calendar view (formerly web_calender) moved to web as well
- the tree view was removed
- all new code should be documented

We hope that this code is the start of a new era for the Odoo web
client, we want to have a high quality codebase, well documented, well
tested, well designed.

Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2017-04-11 19:44:38 +02:00
mmo 33b09d0d5e [IMP] generic: Open external links in a new tab by default
Purpose
=======

External links in the data sometimes open in the same tab, the users loses times as he has to come back (and looses the context).

Specification
=============

Any external links in data (planners, settings) should open in new tabs.
2017-02-10 14:29:29 +01:00
Olivier Dony 4339196e52 [IMP] support v10 manifest file naming convention
- As of v10, manifest files should be named `__manifest__.py`
- For backwards-compatibility, __openerp__.py manifest files
  will still be supported for the time being
- Limited refactoring, to add support for the 2 different
  naming conventions
- All textual references to __openerp_.py updated in
  documentation and examples
2016-09-05 11:57:50 +02:00
Christophe Simonis c88c70e900 [MERGE] forward port of branch saas-10 up to d73f0d8 2016-06-21 13:58:24 +02:00
Martin Trigaux 9007ed4c0b [FIX] doc: Research -> Search
If I need to do researchs to find a quotation, the goal of having a userfriendly
software may be missed.
2016-06-17 09:48:47 +02:00
Aaron Bohy 977db823c7 [REF] web: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis.
Enterprise features stay in enterprise, but use that common basis.

Mainly:
 - JS refactoring and linting
 - Conversion of .sass into .less split into multiple files
 - Templates cleaning and DOM simplification
 - Re-generation of web.pot, and update of .po files
2016-04-21 15:21:39 +02:00
Aaron Bohy 3cae676619 [FIX] Use local copies of png instead of fetching them from websites
Debian does not allow fetching data from external website at runtime.
This fixes the privacy-breach-generic lintian warnings for Debian packaging.
The removed youtube url was a dead link...
2015-01-23 11:23:04 +01:00
Xavier Morel 62c9589485 [ADD] port webclient RPC doc from web/doc 2014-10-07 10:22:53 +02:00
Xavier Morel 62fcce9054 [ADD] JS widgets reference documentation
Also fixed Widget#alive's behavior and tested it
2014-10-07 10:21:44 +02:00
Xavier Morel 494dcbd0e3 [IMP] qweb doc, tests
* document qweb based (mostly) on JS version
* convert JS qweb tests to (mostly) language-independent XML so they can be
  used for JS and Python implementations
* add some more tests (e.g. precedence between t-value and body in t-set)
* remove ``t-import``
* fix parity in foreach(dict) (and rename some variables to make array and
  object versions more similar)
2014-10-06 19:13:43 +02: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
Fabien Meghazi 84a840a38c [REM] Removed useless QWeb t-escf and t-rawf
bzr revid: fme@openerp.com-20140115182018-d7q3e6elm6uqh0ox
2014-01-15 19:20:18 +01:00
Antony Lesuisse 401099d358 [IMP] move http layer from openerp-web to openobject-server, convert controllers to the new route api
bzr revid: al@openerp.com-20131027171717-dzqx2264p152lq8y
2013-10-27 18:17:17 +01:00
niv-openerp 84e16c9895 [IMP] Added link to web training in web doc
bzr revid: nicolas.vanhoren@openerp.com-20130911161529-ue0rqihlu02pr3qd
2013-09-11 18:15:29 +02:00
niv-openerp 57d18c1a34 [IMP] In server-side web framework, change auth="db" to auth="admin", with some difference in semantic
bzr revid: nicolas.vanhoren@openerp.com-20130710145451-56ui50mga78eq10v
2013-07-10 16:54:51 +02:00
niv-openerp d57bbfd2ff merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130621135207-7oq7v2ubzfdrkrbr
2013-06-21 15:52:07 +02:00
niv-openerp 2fd53a468c multiple refactoring with authentication
bzr revid: nicolas.vanhoren@openerp.com-20130621121510-gx22b6j9pwsfe352
2013-06-21 14:15:10 +02:00
niv-openerp 73c447f843 added doc and corrected existing one
bzr revid: nicolas.vanhoren@openerp.com-20130620165158-554jlc1cn7acgrua
2013-06-20 18:51:58 +02:00
niv-openerp 0867b70534 Added doc
bzr revid: nicolas.vanhoren@openerp.com-20130620121858-mwu5t9t4oxv1w7tw
2013-06-20 14:18:58 +02:00
niv-openerp 027f77a3ce doc
bzr revid: nicolas.vanhoren@openerp.com-20130620112857-knwne19buizfheen
2013-06-20 13:28:57 +02:00
niv-openerp 5a22702043 added black magic to detect the user when using http requests
bzr revid: nicolas.vanhoren@openerp.com-20130613162319-1w0renis7g2x5cw0
2013-06-13 18:23:19 +02:00
niv-openerp 213a1a53a3 doc
bzr revid: nicolas.vanhoren@openerp.com-20130613142928-8z4ivvhb9jjm5gxc
2013-06-13 16:29:28 +02:00
niv-openerp 7c916c5936 added doc
bzr revid: nicolas.vanhoren@openerp.com-20130613142717-nj3ox24vip56buc0
2013-06-13 16:27:17 +02:00
niv-openerp ef6779f484 Added some doc
bzr revid: nicolas.vanhoren@openerp.com-20130613140343-hjvlc697eimgcb55
2013-06-13 16:03:43 +02:00
Christophe Simonis 6263673720 [MERGE] forward port of branch 7.0 up to revid 3973 chs@openerp.com-20130611145028-f98x6inytlr3ijjg
bzr revid: chs@openerp.com-20130611155251-zk0qkk70z30n81vl
2013-06-11 17:52:51 +02:00
Xavier Morel 672933ebfe [IMP] PNG recompression
bzr revid: xmo@openerp.com-20130605124327-poy97bvw73sdm1o6
2013-06-05 14:43:27 +02:00
Nhomar Hernandez f0ae319dec [IMP] When we go step by step, change the Case for a variable in a diff
Is a little confufing, in our case 100% of time our team had problems confusing Action with action
Obtaining an error with prototype because incorrect declaration.

IMHO this is a No-Brain merge, but i explain well to be sure you understand my point.

bzr revid: nhomar@gmail.com-20130517205608-wykuz0oxjccf6021
2013-05-17 16:26:08 -04:30
Xavier Morel 356be95d0c [IMP] missing sections to web module tutorial
bzr revid: xmo@openerp.com-20130418102250-aqt0qfhoff22xgj1
2013-04-18 12:22:50 +02:00
Xavier Morel 94c2c42be6 [MERGE] from 7.0
bzr revid: xmo@openerp.com-20130313094909-u21ee88l2lak9p2x
2013-03-13 10:49:09 +01:00
Xavier Morel 1c2b769a1f [IMP] final section of the module guide
bzr revid: xmo@openerp.com-20130218150604-pjd9lkmc834tmbiz
2013-02-18 16:06:04 +01:00
Xavier Morel 5e19bfd47b [WIP] testing in module guide
bzr revid: xmo@openerp.com-20130218084728-q92rcstsr2ca8pqa
2013-02-18 09:47:28 +01:00
Xavier Morel f25c4725b8 [ADD] sync-on-start tutoring
bzr revid: xmo@openerp.com-20130215131950-df68dpp0iz3dhdte
2013-02-15 14:19:50 +01:00
Xavier Morel dfb7493034 [FIX] add support for invisibility to fields (don't complete an invisible field)
bzr revid: xmo@openerp.com-20130213090108-h38emnwscgb5v1pu
2013-02-13 10:01:08 +01:00
Xavier Morel 06954ded48 [IMP] replace ad-hoc patch display by patchqueue
bzr revid: xmo@openerp.com-20130211075200-lwd79pktewqf0wkk
2013-02-11 08:52:00 +01:00
Xavier Morel eff1708704 [IMP] web module tutorial: start adding RPC stuff
bzr revid: xmo@openerp.com-20130131153100-gze86fbchz4tnrg3
2013-01-31 16:31:00 +01:00
Olivier Dony 02a6c638a9 [MERGE] Latest bugfixes from 7.0, up to rev 3731
rev 3731 = revision-id: fme@openerp.com-20130129142638-81uffjq3aiopr8ta

bzr revid: odo@openerp.com-20130129163725-feesf1n2xf0wbpro
2013-01-29 17:37:25 +01:00
Vo Minh Thu e2d5e0df9e [DOC] fixed -999999 title indentation.
bzr revid: vmt@openerp.com-20130122164517-ig8a44yzoretq94c
2013-01-22 17:45:17 +01:00
Vo Minh Thu 26a8748029 [DOC] openerp command is now part of the server project.
bzr revid: vmt@openerp.com-20130122160818-n8sx3tvgkk17zvdg
2013-01-22 17:08:18 +01:00
Xavier Morel a7ebaf73df [FIX] testing doc ref
bzr revid: xmo@openerp.com-20130116163721-zqnwkoa9osx660fb
2013-01-16 17:37:21 +01:00
Xavier Morel adf62ee837 [IMP] add ref to testing doc so it can be referenced from other docs
bzr revid: xmo@openerp.com-20130116163154-57nn7o1blqz4conc
2013-01-16 17:31:54 +01:00
Vo Minh Thu 9d9b79fbae [IMP] To hell with global doc.
bzr revid: vmt@openerp.com-20130104134728-1u2bytipsnwmkteo
2013-01-04 14:47:28 +01:00
Xavier Morel e2639618f6 [DOC] remove openerpdev intersphinx, add ref to module doc
bzr revid: xmo@openerp.com-20130117092722-6rfhkcu4igrgeo06
2013-01-17 10:27:22 +01:00
Xavier Morel 26cfe040cb [FIX] doc: rename and re-include 'presentation'
bzr revid: xmo@openerp.com-20121212165739-5u1880yhb4gq4pfl
2012-12-12 17:57:39 +01:00
Antony Lesuisse a2508290c2 [DOC] qweb rationale
bzr revid: al@openerp.com-20121208084846-1g1oksufswazkvko
2012-12-08 09:48:46 +01:00
Xavier Morel d9528501cf [IMP] qweb doc
bzr revid: xmo@openerp.com-20121206120440-17m9q0yhc4osd157
2012-12-06 13:04:40 +01:00
Xavier Morel 5122dab978 [ADD] bit o' tutorial for web modules
bzr revid: xmo@openerp.com-20121205132854-j0r8qgh5u2qwlqj1
2012-12-05 14:28:54 +01:00
Xavier Morel c04b5b7e1f [IMP] client actions doc fixes
bzr revid: xmo@openerp.com-20121204094925-0h0un3eg6znnxy7i
2012-12-04 10:49:25 +01:00
Xavier Morel 54ea7670d3 [FIX] incorrect conversion of JS arrays to py.js lists/tuples
bzr revid: xmo@openerp.com-20121203114706-dn5sqq3glqst4g1q
2012-12-03 12:47:06 +01:00