Commit Graph
105477 Commits
Author SHA1 Message Date
Christophe Simonis f4fc3985b6 [MERGE] forward port branch saas-12 up to 10cde43 2016-09-16 11:03:50 +02:00
Christophe Simonis 10cde43fd4 [MERGE] forward port branch saas-11 up to 4c2b536 2016-09-16 10:34:39 +02:00
Yannick Tivisse d4b878af53 [FIX] hr_timesheet: Move correctly 'allow_timesheet' to hr_timesheet module
The field was move but not the view definition
2016-09-16 09:15:15 +02:00
Christophe Simonis 4c2b536031 [FIX] core: adapt method api
Forward-port problem, once again
2016-09-15 19:00:26 +02:00
Christophe Simonis f8a601cad7 [MERGE] forward port branch saas-10 up to e634a52 2016-09-15 18:55:01 +02:00
qsm-odoo e634a52cac [FIX] web_editor: mark snippets which can't be dropped in the page
The system was lost with the editor refactoring which came with saas-10
and commit bf39884a5c.
Indeed the show() method of the BuildingBlock class was removed as the
widget is now always showed but the show_blocks() method it called was
not removed (and thus was not called anymore).

As a fix, the show_blocks method is now called again, on snippets
initializations and each time a snippet is dropped or removed.
2016-09-15 16:47:15 +02:00
Christophe Simonis 784eaf28dc [MERGE] forward port branch 9.0 up to 6647e1f 2016-09-15 16:45:13 +02:00
Christophe Simonis a4f9c25cf0 [FIX] account: handle move line without partner in Aged Balance 2016-09-15 16:41:58 +02:00
Simon Lejeune 6647e1f8a9 [FIX] barcodes: correctly unbind quantity event listener
The quantity event handler is not correctly unbound when its action
is deleted, resulting in multiple window.prompt asking the quantity
of the products if you go mulitple times trough a view when a widget
implementing the barcode thing is used.

There seems to be a bug in the framework ("barcode_scanned" events
are registered the same way than the "keypress" one on core.bus
but they don't have suffer from the same issue).
2016-09-15 16:20:18 +02:00
Yannick Tivisse 24205f8153 [FIX] Don't display subtask_project_id on a project if it doesn't allow timesheets management 2016-09-15 16:13:41 +02:00
Yannick Tivisse c303d2b644 [FIX] project,issues,timesheet: Hide links and buttons if not activated on project
Uncheck use tasks and/or use issues and/or allow timesheets
all links are still available from the kanban
timesheet is available from the form view
tasks and issues hidden in the form view

NB: allow_timesheets was defined in timesheet_grid, but it should be standard in hr_timesheet
2016-09-15 15:52:18 +02:00
qsm-odoo 5e6df42800 [FIX] web_editor: use valid bootstrap for m2o editor options
The .dropdown is in a .btn-group environment while a .btn-group can
only contain .btn or .btn-group elements.

This induced problems where the m2o options covers the full overlay
environment, preventing clicks on the customize dropdown.
2016-09-15 15:43:32 +02:00
Christophe Simonis 1d457006e5 [FIX] core: handle NewId in result of onchange
When an onchange return a NewId for a many2one, the expected result is
a False value.
It appear for computed many2one that can return currently created
record like `res.partner.commercial_partner_id` field.
2016-09-15 15:37:50 +02:00
scosist 5006ec9ca4 [FIX] stock: typo in _get_orderpoint_date_planned
orderpoint.lead_type should be 'supplier' instead of 'purchase'

opw-687311
Closes #11389
2016-09-15 14:51:15 +02:00
Christophe Matthieu 9791265635 [FIX] hr_recruitment: can't change the applicant category color for the kanban view 2016-09-15 14:38:36 +02:00
qsm-odoo c64f58358f [FIX] website: refactore parallax snippet (perf / browser compatibility)
* Do not read multiple DOM data on each scroll. Simply read this when
necessary (edition / initialization).
* Throttle scroll event and debounce resize events (-> performance in
edition and navigation improved).
* Do not save useless data in the DOM.
* Have the parallax state consistent if the page undergo other changes
* Simplify DOM structure and LESS
    - Allow to better see how to place snippets inside the area
    - Before this commit, default parallax had different height on
    chrome and firefox
2016-09-15 14:33:07 +02:00
qsm-odoo cd244a40f3 [FIX] website, web_editor: remove born-dead code
This code was introduced in 8.0 and has never been called.
2016-09-15 14:12:50 +02:00
qsm-odoo ee6cbf751e [FIX] website: missing JS module dependency
Commit 3c98c78fc7 removed a JS
dependency by mistake.
2016-09-15 14:12:49 +02:00
Nicolas Martinelli f83b5a8e56 [FIX] survey: search by title
It's not possible to search on any field on the `survey.survey` model.
Due to commit ed589ca.

opw-688157
2016-09-15 14:04:30 +02:00
Mansi Gandhi 5a104fcb1a [FIX] website_quote: Notification 'viewed by customer' should be received by the responsible only
Currently some customers receive the automatic notification 'Quotation
viewed by customer'. This should not be the case as this notifciation
is purely internal and should only be sent to the quote responsible.

Notification is now a note with the responsible being directly in the
recipients.

Conflicts:
	addons/website_quote/controllers/main.py

Backport of 14f07cb96f
opw-687957
2016-09-15 13:40:33 +02:00
Thibault Delavallée dac08836bc [FIX] website_blog: fix use of undefined variable 2016-09-15 12:49:33 +02:00
Christophe Matthieu a2946f72d9 [FIX] web: error when click twice on "Salary Structures Hierarchy" 2016-09-15 11:44:37 +02:00
Nicolas Martinelli ce3341a906 [FIX] account: tax amount at reconciliation
When doing a reconciliation, make sure that the tax amount is properly
rounded to the currency precision. Otherwise, if the rounding policy of
the company is "round globally", the amount recorded won't be rounded.

opw-688399
Closes #13452
2016-09-15 11:22:07 +02:00
Nicolas Martinelli c3f4c73953 [FIX] account: monetaryIsZero
An issue arises in the following use case:
- Company rounding policy in "round globally"
- Tax excluded of 20 %
- Create a statement of 3.80 EUR
- Reconcile the statement thanks to the reconciliation widget
- Click on "Choose counterpart" in order to manually create a line to
  reconcile with the 3.80 EUR statement
- Add an amount of 3.17 EUR, and choose the 20 % tax

The widget creates an extra line of 0.00EUR . This is because the
remaining amount is 0.004.

The reason lies in the `monetaryIsZero` function. There is a hardcoded
decimal precision of 4, while it should be 2 for EUR.

We add an extra parameter to the function so it is possible to adjust
the decimal precision required. Only the problematic calls are modified
to avoid unnecessary intrusive modification.

Closes #13452
opw-688399
2016-09-15 11:22:07 +02:00
Nicolas Martinelli 143ec37391 [IMP] account: compute_all rounding
In some specific cases,it is necessary to call the `compute_all` method
and prevent any rounding to be done. This adds some flexibility in the
method to override rounding thanks to a 'round' context key.

Related to #13452 and commit 2e4777bb32

opw-688399
2016-09-15 11:22:07 +02:00
qsm-odoo 04e9c94147 [FIX] web_editor: allow to remove image from gallery thanks to remove button
Commit b309f3ab54 made the snippet remove
button always be there by removing the "preventParentEmpty" mixin.
Instead of preventing to remove the only child of a snippet, the system
was changed to remove the parent if this only child is removed. This
also applies on the system which hide the remove button if the child
cannot be dropped anywhere in the DOM.

Unfortunatly the image gallery snippet relied on the remove button to
be hidden for its content images. Indeed, it was implemented so that
the "remove" button is hidden but a "remove image from gallery" was
there in the customize menu. The solution is to remove this option and
copy its behavior on the standard remove button.

Note: this probably was not done before because the on_remove feature
was broken (fixed with commit 5e9ebcfb01).
2016-09-15 11:06:58 +02:00
Christophe Simonis 5adca2bc46 [MERGE] forward port branch saas-6 up to 2fa3591 2016-09-15 11:02:44 +02:00
Christophe Simonis 2fa3591a9b [MERGE] forward port branch 8.0 up to 9874892 2016-09-15 10:49:55 +02:00
Christophe Simonis 8cb368fd79 [FIX] web_kanban: use context for creation action 2016-09-15 10:33:03 +02:00
Fabien Meghazi 9874892b97 [FIX] module#get_module_path() does not check the manifest's presence (closes #13467) 2016-09-15 10:22:24 +02:00
Denis Vermylen (dve) a057181da6 [IMP] website_sale: data: improve empty shop page message 2016-09-15 10:15:03 +02:00
Denis Vermylen (dve) d655990e3f [IMP] website: data: improve empty homepage message 2016-09-15 10:08:11 +02:00
Denis Vermylen (dve) 95e1e3baa9 [FIX] website_sale: hide saved cards
When no saved cards, hide the option.

Put saved cards computation in controller outside of loop.
2016-09-15 10:08:03 +02:00
Denis Vermylen (dve) c02d894c58 [IMP] website_sale: improve tooldtips + strings on views
Better tooltips for settings options:
    - Pricing Strategy: remove tooltip
    - Sales Price:
        - Specific prices per customer segment, currency, etc.: new pricing table available in product detail form (Sales tab).
        - Advanced pricing based on formulas (discounts, margins, rounding): apply price rules from a new *Pricelists* menu in Configuration.
    - Optional products: Installs *e-Commerce Optional Products*
Better tooltips in product page:
  - Website Categories: Categories can be published on the Shop page (online catalog grid) to help customers find all the items within a category. To publish them, go to the Shop page, hit Customize and turn *Product Categories* on. A product can belong to several categories.
  - Suggested Products
  - Relabel the field on product detail form, web page + web customize menu: should be Alternative Products
  - new tooltip: Propose more expensive alternatives to your customers (upsell strategy). Those products show up on the product page.
  - Accessory Products: Accessories show up when the customer reviews the cart before paying (cross-sell strategy, e.g. for computers: mouse, keyboard, etc.). An algorithm figures out a list of accessories based on all the products added to cart.
  - Optional Products: Optional Products are suggested whenever the customer hits *Add to Cart* (cross-sell strategy, e.g. for computers: warranty, software, etc.).
  - Availability: Adds an availability status on the web product page.
2016-09-15 10:06:54 +02:00
Yannick Tivisse 35318e6a8a [FIX] hr_expense: Add coherence with expenses to submit
Sometimes we use 'to report' and 'to submit' for the same state, or either twice the terms in the action title and the menuitem.
2016-09-15 09:40:32 +02:00
Yannick Tivisse 8d93a48ae6 [FIX] hr_expense: wrong groups on tax_ids field 2016-09-15 09:36:39 +02:00
andreparames 07a207c07c [FIX] ETag value must be quote-delimited
According to RFC 7232 # 2.3, an etag must be wrapped in double quotes:

    entity-tag = [ weak ] opaque-tag
    opaque-tag = DQUOTE *etagc DQUOTE
    etagc      = %x21 / %x23-7E / obs-text
               ; VCHAR except double quotes, plus obs-text

Odoo didn't properly quote etags, which could lead to stripping or
failures when putting Odoo behind strict HTTP proxies.
2016-09-15 08:15:34 +02:00
Christophe Simonis f2e2bbd7e5 [FIX] crm: avoid browsing recordsets 2016-09-14 19:47:59 +02:00
Olivier Dony 70eb86cbc0 [FIX] account: fix typo in invoice mail template
The link to view the invoice was always missing.

Introduced at 9a51855008
2016-09-14 19:18:37 +02:00
Thibault Delavallée 386e9024a1 [FIX][IMP] project_issue: add a priority in inherited view of project.project to order use_issue/timesheet/forecast fields in form view 2016-09-14 17:08:25 +02:00
Denis Vermylen (dve) 659fbe5c7d [FIX] livechat: fix js web dependencies
issue: could not load the /im_livechat/support/<channel_id> route
broken since: 00120a9271
2016-09-14 17:07:14 +02:00
Christophe Simonis d614356965 [FIX] project_issue: correct issue count on partners
Also adapt default search to have the same domain
2016-09-14 16:53:03 +02:00
Thibault Delavallée 6e2a455947 [FIX] mail: restrict write access rights of portal users to their own follower and notification entries 2016-09-14 16:45:01 +02:00
Thibault Delavallée 9c9ac8c43a [FIX] mail: browse message as superuser when fetching recipients and notification data for chatter
Indeed accessing a m2m applies record rules, meaning recipients are stripped for public and portal
users. However when displaying recipients of a chat it is necessary to know which are the
recipients.

Moreover a crash occurs when accessing notifications about email being sent or not. As messages
in the tree are now browsed as super user there is no access rights issues anymore.
2016-09-14 16:45:01 +02:00
Nicolas Lempereur 1da79b872e [FIX] web: keep m2m value in list view
Currently, when rendering a list view cell with a many2many we would
empty the list of ids, and fill it again once a name_get is resolved.

But in some instance, the code could use the data when it has been
emptied out.

For example, if we set the tax_id field (inside the order_line list view
inside the sale.order form view) as requred, if we modify the order line
and save directly (without clicking outside of the list view) we can get
an incorrect error saying that the "Order Line" is not valid.

It has been reproduced when saving with CTRL + SHIFT + S on google
chrome and firefox, and there have been reports that for some
configuration it also happen when clicking on the "Save" button.

This commit change the behaviour so the value is kept whilst the name_get
is ongoing, and just use a default "false" value for the name during this
interval.

closes #13478
opw-668067
2016-09-14 15:52:48 +02:00
Thibault Delavallée 3ef61aeedc [FIX][IMP] resource: make calendar and leave form views a bit usable 2016-09-14 15:44:49 +02:00
Thibault Delavallée 82635140b3 [IMP] resource: add default value on calendar manager being the current user to ease calendar use 2016-09-14 15:44:49 +02:00
Christophe Matthieu c2f47139f3 [FIX] web: error in pivot view when click on the corner of the dropdown to select a group (eg: + total) 2016-09-14 15:20:38 +02:00
Joren Van Onder 9a5b040ff8 [FIX] stock: copy over pack_lot_ids when clicking on 'split'
Analogous to 6fde72abeacdac6e36a0c623c024252839f993ae but now instead
for the 'split' button.

Additionally this uses float_compare with the rounding set on the uom of
the operation to determine if there are any units left, which is more
correct.

opw-685908
2016-09-14 08:11:46 -05:00
Joren Van Onder 8914e7f48c [FIX] stock: preserve proposed serial/lot numbers after put in pack
When a stock.pack.operation gets created by a stock.picking, it will
have its pack_lot_ids set. This way the user has an overview of what
lots are available and how many of each are still left.

When splitting the stock.pack.operation these where lost. The still
unpacked stock.pack.operation would always have an empty pack_lot_ids
field. The reason for this is that those records where reassigned to the
newly created and packed stock.pack.operation.

This resolves the issue by copying pack_lot_ids that are still
available (qty_todo > 0) and assigning them to the original
stock.pack.operation.

opw-685908
2016-09-14 08:09:33 -05:00