Commit Graph
53 Commits
Author SHA1 Message Date
Raphael Collet 7efa669b49 [FIX] website_form_editor: tour
Use `search_count` instead of `search_read` to determine the presence of a
mail, because:
 - reading all fields is not useful;
 - reading all fields causes access errors for user `admin`.
2018-08-23 21:39:16 +02:00
stefanorigano 961ccd69c8 [REF] *: improve app icons, add SVG version
- Uniform colors and design
- Replace duplicated icons (eg. mrp_maintenance / maintenance)
- Improve misleading icons (eg. sale_subscription)
- Add icons for new apps

Add SVG versions to lossless future editing and print/marketing use.

See https://github.com/odoo/odoo/commit/1d9208c4fa92d00090b37b8e5dbed48087a7f52f

task-54681
2018-08-09 15:51:42 +02:00
Priyanka KakadiyaandNimesh Jethva df2d8f2a15 [REF] various: update manifests for better wording and names
Time has come to update a bit applications name, summary and website links.
Purpose is to have a website page correctly set for applications to be used
in conjunction with the newly-introduced discover button.

Names and summaries are updated to be more updated and shiny.

This commit is related to task ID 47179 and 1861544. Related PR are #1834
and #2365. First one is about classic applications while second one is about
website applications.

Co-Authored-By: Nimesh Jethva <nje@odoo.com>
2018-08-03 15:00:57 +02:00
qsm-odoo 160a17b4bd [FIX] *: BS4, restore modal headers 2018-07-31 13:30:09 +02:00
qsm-odoo d8208f8fc2 [REF] *: BS4, adapt forms
See https://github.com/odoo/odoo/commit/93b0001df6766fe905ee69c25ec8d846e4551064
2018-07-27 12:53:46 +02:00
qsm-odoo 336a9842cd [REF] *: BS4, adapt col-related classes
See https://github.com/odoo/odoo/commit/ed1b18f10348244ce26b8b27edbd59d91cee7772
2018-07-27 12:52:57 +02:00
qsm-odoo 3c1325c051 [REF] *: BS4, adapt dropdowns and carets
See https://github.com/odoo/odoo/commit/1c1c0897e8eca607c7f1b96b68a06c026c543e6a
2018-07-27 12:51:01 +02:00
qsm-odoo 9fa436b642 [REF] *: BS4, rename btn-default to btn-secondary
See https://github.com/odoo/odoo/commit/c59380bac5bbd47bc7dcd92b38049af29a62c3d1

Also, make an exception so that the buttons have their text
colored in our Odoo green.
2018-07-27 12:50:37 +02:00
qsm-odoo 7f5a633c2e [FIX] *: fix some side-effects of https://github.com/odoo/enterprise/commit/3d6c7b95b94f23c6e0e0b088e3291e9bf323fc4a
See https://github.com/odoo/odoo/commit/2c966909e2c0b5e45912a6ff85577f0b19a5f4c9
2018-07-09 12:02:50 +02:00
kujiu b623eb2263 [IMP] Improve compatibility with screen readers (accessibility) (#2146)
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable.

This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader.

* [IMP] Labels must have a for attribute. Improve accessibility.
* [FIX] Update some title attributes for a11y.
* [IMP] Add aria-labels
* [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all.
* [IMP] Color names on kanban views
* [IMP] Add 'alt' attribute on 'img' tags
* [IMP] Add aria-label and title on icons.
* [IMP] Add dialog role on modals.
* [IMP] Remove wrong aria-labelledby
* [IMP] Add menu role on dropdowns
* [IMP] Buttons must be focusable
* [IMP] Change main layout to more semantic tags
* [IMP] Add menuitem role when missing
* [IMP] Remove wrong role='presentation'
* [IMP] Improve accessibility of tab panels
* [IMP] Add role on alerts
* [IMP] Add role="button" on simili buttons
* [IMP] Use dialog role, header, main and footer tags for modals
* [FIX] Set all tabs aria-selected since we don't have proper script to set the attribute correctly.
* [IMP] Add widget, navigation or img role to aria-labelled items
2018-06-22 21:27:40 +02:00
Nirali Sapra ea95a23ea3 [IMP] website_*: adapt changes related to customizable footer
See https://github.com/odoo/odoo/commit/b2fefbd3c56b4ac1ef4cfe0387db45d24aa5a037

This commit also adds the following new menus:
- Appointment (previous footer link: 'Schedule Appointment')
- Helpdesk Customer Satisfaction (previous footer link: 'Helpdesk Team
  Customer Satisfaction')

task-38069
Closes https://github.com/odoo/enterprise/pull/1794
2018-05-29 11:19:00 +02:00
Martin Trigaux 21dd97dc32 [FIX] website_helpdesk_form: adapt code for new xmlid format
Followup of odoo/odoo@0c261df33d
2018-02-01 18:13:11 +01:00
Christophe Monniez dcde3820a3 [IMP] tests: adapt enterprise tests to the tests tags system
As the possibility to test tags was introduced, some tests must me
adapated to work as before.
Tests that have to run at 'post_install' have to be tagged '-at_install'
and 'post_install'.
Also, nightly tests that contact external entities have to be tagged
'-standard' to avoid to be launched by default. Also they have to be
tagged 'external' so that they can be selected alone.
2018-01-18 12:00:15 +01:00
Christophe Simonis 4e9f0f617c [MERGE] forward port branch saas-17 up to 983aafc3d57 2017-09-14 17:48:01 +02:00
Xavier Morel e3ae92e35c [FIX] website_form_editor: don't duplicate email_to field
website_form_editor does not depend on project but apparently just
assumes it's been installed and the form construction tour uses it to
change the "action" selection to issues then (back to?) sending an
email.

This ends up triggering two additional "change" events on the email
option, which adds a new email_to field every time, blocks the
submission of the form (since they're all required and only one is
filled) and breaks the tour.

On "toggle_email_to", only add an email_to field if it's not already
present.
2017-09-14 15:38:22 +02:00
Xavier Morel c216ccda98 [FIX] website_form_editor: don't duplicate email_to field
website_form_editor does not depend on project but apparently just
assumes it's been installed and the form construction tour uses it to
change the "action" selection to issues then (back to?) sending an
email.

This ends up triggering two additional "change" events on the email
option, which adds a new email_to field every time, blocks the
submission of the form (since they're all required and only one is
filled) and breaks the tour.

On "toggle_email_to", only add an email_to field if it's not already
present.
2017-09-14 13:28:18 +02:00
qsm-odoo 1085fdd8be [REF] website_*: adapt to complete website refactoring
* calendar, crm_score, enterprise, form_editor, helpdesk, subscription,
  version

Adaptation to https://github.com/odoo/odoo/commit/2972976962617d4b8a0113bae58c640ab41cdff8
2017-08-16 11:14:56 +02:00
Kishan Gajjar e1eb0c048e [IMP] website_*: suggest installation of form editor in snippet menu
* enterprise, form_editor

See commit https://github.com/odoo/odoo/commit/aaeef14903d4a3f359fcd6dd61a4f8ee41c947a4
2017-07-04 12:02:46 +02:00
dbh 7f65942e51 [IMP] website_form_editor: fields' labels are now left-aligned in xs 2017-06-28 14:54:16 +02:00
dbh a6e95c3acb [IMP] website_form_editor: rename option label
'Add a model field' -> 'Add an existing field'
2017-06-28 14:53:43 +02:00
dbh 03c673a735 [IMP] website_form_editor: improve thank you page field
- Suggest website pages when setting the value
- Label should not be bold
2017-06-28 14:52:07 +02:00
xmo-odoo abb92cb854 [FIX] implicitly relative imports 2017-04-28 09:07:28 +02:00
Géry Debongnie 7203e57608 [REF] *: simplify our rpc system
In web. we changed the way rpc works, this commit is necessary to adapt
all calls to the new API.
2017-04-11 19:42:23 +02:00
Géry Debongnie 5c6818eecf [REF] *: remove calls to old rpc methods
the performModelRPC methos has been deprecated, this commit replaces all
call to that method by calls to the new _rpc method.
2017-04-11 19:42:23 +02:00
Aaron Bohy b82cef84b9 [FIX] website_form_editor: this.rpc not available
... in the tour environment. We have to use ajax instead, with
the rpc.query helper.
2017-04-11 19:42:23 +02:00
Aaron Bohy 0f844ed483 [FIX] website_form_editor: search_read result
The new RPC API calls the '/web/dataset/search_read' route for a
search_read instead of '/web/dataset/call_kw/model/method'. The
first one returns an object with keys count and records, whereas
the other one only returns the records.

When converting the code in website_form_editor to this new API,
one forgot to update the handling of the RPC result.
2017-04-11 19:42:23 +02:00
Géry Debongnie ead78e5c2c [FIX] website_form_editor: correct ajax rpc calls
The website_form_editor code was adapted to the new rpc methods, but
this concerns class that do not have the rpc method.  We use the
callback argument to specify a given ajax method
2017-04-11 19:42:23 +02:00
Géry Debongnie 3565a3f44a [REF] *: remove many performModelRPC calls
The performModelRPC method has been deprecated, and replaced by call to
the this.rpc method.
2017-04-11 19:42:23 +02:00
Christophe Matthieu 69bf1c2e38 [REF] web,*: remove 'web.model'
Use performModelRPC instead of Model object or use ajax if performModelRPC
is not available
nb: EventDispatcherMixin include now the custom_events managment instead
of widget[REMOVE] web.dataModel
2017-04-11 19:42:23 +02:00
Martin Geubelle 78104ec04d [IMP] *: clean technical views (usability)
This closes the task #30074.
2017-01-04 12:24:07 +01:00
Raphael Collet 8a01fae314 [IMP] website_form_editor: tighten ir.model access rights
Adapt client code to signature of method `get_authorized_fields`.
2017-01-03 19:19:55 +01:00
Martin Trigaux bee86d5aba [FIX] website_form_editor: correct invalid html tag
span is not autoclosing
This triggers warning on Transifex validator
2016-09-07 16:20:39 +02:00
Olivier Dony 9c20c84d24 [IMP] *: rename manifest files for v10 naming convention 2016-09-05 12:39:50 +02:00
Christophe Matthieu faebb4a1e2 [IMP] website_form_editor: convert test to web_tour 2016-09-02 17:38:12 +01:00
Jainik Patel d4e8529721 [ADD] Add a new website apps icon. 2016-08-18 16:45:54 +02:00
Jitendra Prajapati 13e0cacc63 [MIG] website_form_editor: Migrate to new api 2016-08-02 13:18:57 +02:00
Jitendra Prajapati 4a96622753 [MOV] website_form_editor: Re-organized the directory structure according to new api guidelines. 2016-08-02 13:18:57 +02:00
Christophe Simonis fac734175b [MERGE] forward port of branch saas-9 up to 6154a16 2016-05-17 14:45:37 +02:00
Christophe Simonis 926fbe15ce [MERGE] forward port of branch 9.0 up to 4221f67 2016-05-17 14:44:17 +02:00
Christophe Matthieu a97bf1e3f1 [FIX] website_form_editor: use domain field for m2m form field
Issue: opw-672737
2016-05-17 08:25:09 +02:00
Jeremy Kersten bba692c5b6 [MERGE] forward port of branch saas-9 up to 93aea2c6526e3ad7d27686eaca9ffbe2e6d30e19
Conflicts:
	project_timesheet_synchro/project_timesheet.py
	sale_contract/views/sale_contract_view.xml
2016-04-27 12:13:54 +02:00
Jeremy Kersten 2b56d22f22 [MERGE] forward port of branch 9.0 up to 0dc0d6b7e51537507f80be988c25fdabeafe68f7
Conflicts:
	website_crm_score/models/sales_team.py
2016-04-27 11:45:43 +02:00
David Monjoie de74cd19de [FIX] website_form_editor: prevent users from crazy clicking
Enterprise part of 02fd74a3fa.
2016-04-26 12:12:40 +02:00
qsm-odoo b67ee80a6c [REF] web*: tour update
Selector changes + No need to open the snippet panel anymore.
2016-02-24 15:16:05 +01:00
Martin Trigaux a0eea9a1a6 [MERGE] Forward port of branch saas-7 up to cf7f1045cb 2015-12-21 14:49:45 +01:00
Jeremy Kersten c60b3e46f2 [IMP] website_form_editor: add field blacklisted in ir.model/fields form 2015-12-18 17:34:09 +01:00
Xavier Morel 09ec639661 [ADD] form_editor: whitelisting of fields
Automatically whitelist fields added to a website_form through the form
editor.

Ideally fields *removed* from a form should be removed from the
whitelist, but since we don't/can't keep track of the website's form,
there's no way to know if a field is needed by multiple forms and thus
no way to remove them.

Plus that would require way more source-tracking than just whitelisting
all the form's fields, I don't know if snippet widgets can track the
removal of elements from a page (easily anyway).
2015-12-01 15:59:31 +01:00
Christophe Simonis 19d9c57512 [FIX] website_form_editor: whitelist fields for formbuilder
Since odoo/odoo@2afb5b43ef, fields should
be whitelisted explictly.
2015-12-01 15:25:51 +01:00
David Monjoie 6f77a29e2e [FIX] website_form_editor: relational fields search_read
The fields were mistaken for the domain since 16972b0.
Added new tour step trying to add a relational field.
Also fixed wrong tour step labels.
2015-09-25 13:45:04 +02:00
David Monjoie 24a192b1f5 [IMP] website_form_editor: various improvements
- Prevent user from removing the Submit button
- Renamed Success Page into Thank You Page in the modal
- Destroy the snippet if user closes the very first configuration modal
- Replaced display_name field by subject in tour because the former was readonly
- Changed "Editor" to "Builder" in module name
- Removed field domain, need to fix it later
- Removed lingering console.log
- Require recipient e-mail
- Added missing Date field
2015-09-15 14:03:50 +02:00