Commit Graph
111331 Commits
Author SHA1 Message Date
Richard Mathot bfbaaa7d13 [IMP] base: countries/territories list cleaning
The world changes and some country names too :
- Anguilla is not a part of Saint Kitts and Nevis anymore (1980)
- East Timor is now called Timor-Leste and has a new ISO code (2002)
- Netherlands Antilles have been split in CW, SX, BQ (2010)
- Neutral Zone between Irak and Saudi Arabia does not exist anymore
  (1991)
- The U.N. now use "State of Palestine" for West Bank and Gaza (2012)
- Yugoslavia has been split (1992) then some remaining parts renamed as
  "Serbia and Montenegro" (2003)
- Zaire is now called Democratic Republic of the Congo (1997)

We also fixed/simplified names of other countries/territories when
there is a more vernacular name that is not ambiguous or simply a typo

source: https://www.iso.org/obp/ui/en/#search

(We also fix a test that count countries beginning by Z, and there is
no Zaire anymore)
2017-08-04 14:54:26 +02:00
qsm-odoo ed58cee2b9 [REF] web_planner: remove useless constructor redefinition 2017-08-04 12:31:58 +02:00
qsm-odoo bca7afe3ce [REF] web, web_editor: expose 'cssFind' function
The web_editor app uses a 'cssFind' function but does not expose it. It
makes sense to move it in the web app in the 'dom' utility function set.
2017-08-04 12:31:57 +02:00
qsm-odoo 4fa1d2e46d [IMP] web: add dialog helper for "safe" confirmation
The Odoo Dialog API already had the "confirm" helper to open a dialog
which shows two buttons: one to confirm and one to cancel. This commit
introduces the "safeConfirm" helper which requires two clicks to
effectively confirm.

Note: this will be used by the upcoming website update.
2017-08-04 12:31:54 +02:00
qsm-odoo 0cdb5ca5c9 [REF] web: add utility function to render checkboxes
Odoo checkboxes have a special style which requires a special DOM
structure. Instead of having to build this structure each time we need
a checkbox to be rendered, it is better to have a function that does
that. It is also better to have a JS function for this instead of a qweb
template so that this has not to be lazy loaded by the frontend for
something as simple as a checkbox.
2017-08-04 12:27:27 +02:00
rar-odoo ad9e39020f Revert "[IMP] Gamification: email template (#15582)" (#18670)
This reverts commit fb9865d900.
2017-08-04 01:35:22 +02:00
Thibault Delavallée fb9865d900 [IMP] Gamification: email template (#15582)
* [IMP] Gamification: email template

* [FIX] Gamification: mail template

Fix of the template.
- removed most of the static code,
- add user-specific information.

* [IMP] Gamification: email template

- Split templates for 'personal' and 'ranking'.
- beug fixes
- Code cleaning

* [IMP] Gamification: template

- removed report_template_id field,
- force dedicated template for 'personal' and 'ranking,
- fix image size on personal template.
- code cleaning
2017-08-03 19:15:08 +02:00
Fabien Meghazi 96af2823cb [FIX] http/db: fix bug introduced in b34e00540e
b34e00540e was not properly checking if db_name option was in use
2017-08-03 17:06:55 +02:00
Prakash Prajapati ef5c6615aa [ADD] website_sale: allow sorting on product price 2017-08-03 17:05:48 +02:00
Fabien Meghazi b34e00540e [IMP] http/db: change behaviour of list_dbs() when --db-filter is not provided (Closed #18526)
In case `--db-filter` is not provided and `--database` is passed,
Odoo will not fetch the list of databases available in the postgres
server anymore because it does not have anything to match against this
list. Instead, `list_dbs()` will use the value of `--database` as a
comma separated list of exposed databases.

This allows better security hardening in postgres access rights.

Basically, that means that those commands

    $ odoo-bin -d foobar
    $ odoo-bin -d foo,bar,baz

are now respectively equivalent to those commands

    $ odoo-bin -d foobar --db-filter='^foobar$'
    $ odoo-bin -d foo,bar,baz --db-filter='^(foo|bar|baz)$'

The old behaviour can still be used with this command:

    $ odoo-bin -d foobar --db-filter='.*'
2017-08-03 13:49:51 +02:00
qsm-odoo 5658e337c3 [REF] web, website: o_website_modal -> o_technical_modal
Opening a modal in Odoo should be done thanks to the 'Dialog' class. In
the frontend, there can also be modals which are meant to be shown to
the unconnected frontend visitors and those should then get the style of
the website (bootstrap) and not the one of odoo. To manage this, the
website JS code was extending the Dialog class so that it adds the
'o_website_modal' class on modals which are opened thanks to the class.
The LESS code was then in charge of forcing the Odoo style on those.

This behavior is not the right one. "Visitors" modals should also be
able to be opened with the Dialog class. This commit is a first step
towards to the right behavior:
- The standard 'Dialog' adds the 'o_technical_modal' class on its root
  element by default and allows to not put it thanks to 'technical'
  options.
- 'o_website_modal' is then replaced by 'o_technical_modal'.

What should be done next is:
- Use the Dialog class when it is possible
- Move modal.less in the common assets and make it style only technical
  modals -> remove some forcing of the style on 'o_technical_modal' in
  the frontend

This behavior also allows future improvements, like building a
completely different structure for technical modals which would allow
better designing and the end of visitor/technical bootstrap conflicts
(and so LESS efficiency).
2017-08-03 10:50:55 +02:00
qsm-odoo 6d4900826b [REF] web, *: improve behavior of jQuery extension 'prependEvent'
* web_editor

Odoo extends jQuery to add some utility functions. The 'prependEvent'
one add the possibility to add an event handler on an element (like
the jQuery built-in 'on' function) but to be executed before the
already binded ones.

This function was however incomplete and did not allow to use jQuery
namespaced events.
2017-08-03 10:50:55 +02:00
qsm-odoo 847afa1b69 [REF] web, *: create jQuery ':hasVisibility' and ':hasOpacity' selectors
* web_editor, web_tour

jQuery has the built-in ':visible' selector. This is however not enough
as this only checks if the element and its parents have a visible
'display' property. Ironically, if the element has the 'visibility'
property set to 'hidden', it will be considered ':visible' by jQuery.

This commit creates the ':hasVisibility' and ':hasOpacity' selectors
which respectively check if the element and its parents have a visible
'visibility' property and a visible 'opacity' property.
2017-08-03 10:50:55 +02:00
Yannick Tivisse d977541b38 Revert c1d22b6 and c854de4
The specification of the task https://www.odoo.com/web#id=31984&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720 is inconsistent with the way we propose to make refunds on a sales order.

While waiting to propose a clean solution, we revert the related commits.
2017-08-02 15:59:47 +02:00
qdp-odoo ecf6f6cb5f [IMP] l10n_fr_fec : add technical information of FEC files.
Was PR #16229. Courtesy of Florent de Labarre
2017-08-02 15:31:38 +02:00
Florent de Labarre fe9e7d47b8 [FIX] l10n_fr_fec : remove tab in final file
Was PR  #16228. Courtesy of Florent de Labarre
2017-08-02 14:42:04 +02:00
Christophe Simonis fcfb4782b6 [MERGE] forward port branch saas-17 up to a445548f07 2017-08-02 12:31:05 +02:00
Christophe Simonis a445548f07 [MERGE] forward port branch saas-16 up to 211961c374 2017-08-02 12:18:41 +02:00
Jérome Maes 04c5aa3125 [FIX] hr_timesheet_sheet: remove all remaining file
Some files were still present (or reintroduced) after module deletion.
2017-08-02 09:49:34 +02:00
Martin Geubelle 211961c374 [FIX] web: handle mutexify in standalone widgets
The rev. https://github.com/odoo/odoo/commit/99ae418bf24171fbc6bb27584059c27efb857e77
introduced a trigger_up `mutexify` when quick creating a record in a many2one ;
this broke the behaviour when the many2one was standalone (because it has no
BasicController and mutexify is handled in the latter).

An attempt to fix this issue has been made in the rev. https://github.com/odoo/odoo/commit/e83c3e2678500c9bf2c17b4d23ae9a294ebafaa7
by adding an option `standalone` in the field widget options. In this case,
the action was directly executed instead of the trigger_up. While this correctly
works, this implies that the option needs to be added in every standalone
many2one (and only many2one as the others won't use the option), which is not
very convenient.

An other attempt is made in this rev. by moving the mutexify handler from the
BasicController to the FieldManagerMixin ; as a widget that instantiates a field
widget needs to extend this mixin, both cases will work and we won't need to
specify the option anymore.

This commit thus partially reverts the rev. https://github.com/odoo/odoo/commit/e83c3e2678500c9bf2c17b4d23ae9a294ebafaa7
2017-08-02 08:49:12 +02:00
Christophe Simonis 072411b336 [MERGE] forward port branch saas-16 up to 8d89148d13 2017-08-02 01:08:42 +02:00
Christophe Simonis 8d89148d13 [MERGE] forward port branch saas-15 up to 5e19f28bfc 2017-08-01 23:11:27 +02:00
Christophe Simonis 5e19f28bfc [MERGE] forward port branch saas-14 up to d0ece6cd89 2017-08-01 23:07:22 +02:00
Christophe Simonis d0ece6cd89 [MERGE] forward port branch 10.0 up to afd4b68acc 2017-08-01 23:06:43 +02:00
Christophe Simonis afd4b68acc [FIX] website_crm_partner_assign: mock geolocalisation during tests 2017-08-01 22:39:29 +02:00
Christophe Simonis d1cf4f9672 [MERGE] forward port branch saas-11 up to ed36929265 2017-08-01 22:39:16 +02:00
Christophe Simonis ed36929265 [FIX] core: avoid tests to contact gravatar server 2017-08-01 22:03:39 +02:00
Christophe Simonis a49f637102 [FIX] website_slides: recreate pdf file
PyPDF2 didn't like previous version and threw warnings.
2017-08-01 19:06:40 +02:00
Khoi Nguyen 597d172ff0 [FIX] web: always call 'search_read' when loading calendar
This commit reverts
https://github.com/odoo/odoo/commit/2e2ab4e954cd5da8c0c06d393b334cefc7627315
(which ensures that if all filters are 'inactive' then nothing is shown)
for the following reasons:

- It is not necessary since _getFilterDomain was rewritten (see
  https://github.com/odoo/odoo/commit/4e12edc023dd20d435f5575b5517a3c11deb8421).
  If all filters are inactive, _getFilterDomain does now return an
  "in []" domain.
- It shows an empty calendar when filters yield an empty domain.
2017-08-01 18:03:15 +02:00
Christophe Simonis 6990c28d05 [MERGE] forward port branch saas-16 up to a42b056ca9 2017-08-01 18:00:22 +02:00
Christophe Simonis a42b056ca9 [MERGE] forward port branch saas-15 up to d3154e0ef4 2017-08-01 17:59:16 +02:00
Christophe Simonis d3154e0ef4 [MERGE] forward port branch saas-14 up to af9868bc28 2017-08-01 17:54:09 +02:00
Christophe Simonis af9868bc28 [MERGE] forward port branch 10.0 up to e6ad245634 2017-08-01 17:22:43 +02:00
Goffin Simon 39892cdaa1 [FIX] account: Only 64 characters for the name of an entry
When creating a customer invoice with description/reference with more than
64 characters, the description was cut to generate the name of the account move
lines. But it's possible to create an entry with more than 64 characters as name
by the interface. The limitation is deprecated.

opw:760316
2017-08-01 17:14:28 +02:00
Christophe Simonis e6ad245634 [MERGE] forward port branch saas-11 up to ab0e083ecb 2017-08-01 17:00:03 +02:00
Christophe Simonis ab0e083ecb [MERGE] forward port branch 9.0 up to 587668797e 2017-08-01 16:32:23 +02:00
Yannick Tivisse c1d22b6c3c [FIX] sale_stock: Adapt test due to c854de4
The tested use case is the following:
- Create a SO with 5 units of a product (invoiced on delivered quantity)
- Ship 5 units
- Create an invoice with 5 units, validate
- Return 2 units from delivery

The current state:
- Ordered : 5
- Delivered : 3
- Invoiced : 5

In that case you have invoiced more than the delivered quantity and the sales order should be marked as fully invoiced following the commit c854de4

The salesman will transfer the credit note to the accountant and everybody's happy.

As it is the intended behavior, this commit modifies the test.
2017-08-01 16:13:18 +02:00
Christophe Simonis 587668797e [MERGE] forward port branch saas-6 up to b3ddbbd4ba 2017-08-01 16:05:13 +02:00
Christophe Simonis b3ddbbd4ba [MERGE] forward port branch 8.0 up to 40197b38e5 2017-08-01 15:44:24 +02:00
Christophe Simonis e2826028ab [FIX] website_slides: only query google api if info is missing
With demo data, avoid doing requests on external service for
information we can provide.
2017-08-01 15:39:02 +02:00
Nicolas Martinelli 6c3bff8fd3 [FIX] stock: traceability button
- Archive a product
- Click on "Traceability" stat button => crash

opw-760717
2017-08-01 15:06:10 +02:00
amoyaux 657e5c15a3 [FIX] stock : reserve quantity with uom and chained moves
A bug happens in stock move's action_assign method. It tries to get
the quantity done and the reserved quantity from the parent move and
sibling move in order to guess the available quantty.

With uom activatred, the quantity done is not always the same than the quant
quantity and the quantity done on stock move/stock move lines has to be
converted in order to know the real quantity available/

This commit change the quantity done in action assign to the
associate product uom.
2017-08-01 14:50:32 +02:00
Yannick Tivisse c854de4999 [IMP] sale: Set Invoice status to Ìnvoice if invoice qty >= ordered qty
PURPOSE
=======

Clarify the invoice status on the sales orders.

SPECIFICATION
=============

If you have invoiced more than the required quantities and, the invoice status of the sales order should be "Fully Invoiced" and not "to invoice"
2017-08-01 14:39:51 +02:00
Kinjal Mehta b624403956 [IMP] sale_crm: improve labelling and use of Quotes and Orders stmart buttons on quotation
* rename stmart button Quote to Quotations to be coherent with naming
   through all addons;
 * fix stmart button counter to correctly take into account sale orders
   otherwise displayed orders are not really coherent with the opportunity;
 * stmart button Orders now correctly redirects to sale orders only;

Rename "Quote" to "Quotation(s)" on the opportnity form view, and display the appropriate counter on that. and  open the Quotation view when create a quotation from an opportunity.

[ADD] sale_crm: Added a tooltip on the "Orders" stat button.

[FIX] sale_crm: samll fix.
2017-08-01 14:28:31 +02:00
Nicolas Lempereur 40197b38e5 [FIX] web: typo css class 69925ca6
opw-760956
closes #18601
2017-08-01 14:05:21 +02:00
Nicolas Lempereur 69925ca6f0 [FIX] web: display prev/next arrow after grouping
On a list view, if we group records the arrows and changing page
feature are disabled. But if then we removed the grouping, the arrows
never reappeared.

note: not necessary as of 9.0 it was already solved in 1280bf251

opw-760956
closes #18596
2017-08-01 13:56:26 +02:00
rar-odoo 435c2eae19 [FIX] Account: account_field field typo
the field data-max is supposed to be stored in the database.
Currently, the arg is 'stored=True' which is not recognised by the orm.
This fix ensures the field is correctly sotred and thus not computed at reading.
2017-08-01 12:46:29 +02:00
Atul Patel 182a166184 [FIX] web: fix issue on activities with overflow on mobile
Due to o_kanban_mobile class which adds text-overflow to all span tag
overflow: hidden is applied on activities. To avoid this overflow issue
we have to use overflow: inherit property.
2017-08-01 11:30:04 +02:00
Dhaval Panchal b124ae5b0e [IMP] crm: add activity widget on lead
In chatter form view and in kanban view.
2017-08-01 11:29:25 +02:00
Jeremy Kersten 66a6b670e9 [FIX] stock: improve warning to help user to find blocking move.
Add into the warning message the list of stock.move that raise the constraints
error.

When you create an 'Inventory Ajustment' of 1000 lines and see this error,
it is not easy to find which product could cause the problem.

This solution is not perfect since the name is not uniq, but it decrease
drastically the number of record to check manually.

opw-760643
2017-08-01 10:43:36 +02:00