Commit Graph
96714 Commits
Author SHA1 Message Date
Christophe Simonis ea5ee871d4 [FIX] mail: adapt test introduced during previous forward-port 2015-07-28 15:08:54 +02:00
Damien Bouvy 8998b03b82 [FIX] website_quote: missing deps in website_quotation.js 2015-07-28 14:33:47 +02:00
Christophe Simonis 908cb7cde3 [FIX] web: use correct non-undefined variable.
Bug introduced during previous forward-port
2015-07-28 14:30:05 +02:00
Christophe Simonis 97073e2a73 [MERGE] forward port of branch saas-6 up to 51040b6 2015-07-28 13:56:16 +02:00
Thibault Delavallée f1099a6598 [REM] resource, project: removed faces library and its related
code in resource and project.

This library was once used to perfom resource allocation: scheduling
tasks and things like that. However this feature cannot be accessed
through the interface since a long time.

The feature is now removed from the project code. The library has been
removed. Some code in resource used only in the project code
has also been removed, as well as a test linked to this code.
2015-07-28 12:36:00 +02:00
Martin Trigaux d3dc8624cf [FIX] English terms
Avoid abreviations in string description
Remove typo
Do not use imperial system
Courtesy of Lionel Sausin
2015-07-28 12:15:00 +02:00
Nicolas Lempereur 51040b6d60 [FIX] web: no edit bounce effect if bootstrap element
Bootstrap bind on document to do an element, in some case the bounce effect
on the edit button might cancel the bootstrap action.

e.g in the crm.claim form view, the `group` tag arround a notebook element
break the tab change on the notebook.

opw-646012

note: in 8.0 the issue didn't happen since the tab change was done by
jquery ui which happened before the bounce effect.
2015-07-28 11:42:57 +02:00
Joren Van Onder ae9dda4b8e [IMP] hr: remove administrator employee 2015-07-27 17:05:04 +02:00
Josse Colpaert edd1e04eb8 [IMP] sale, purchase, stock_account: Refactor invoicing on picking
- Added reverse for purchase_ids/purchase_line_ids/invoice_ids/invoice_line_ids
- Put first everything in a dictionary by invoice to create and
then create invoice by invoice
2015-07-27 16:59:08 +02:00
Christophe Simonis 064570cca2 [FIX] payment_sips: remove useless sequence definition 2015-07-27 15:45:45 +02:00
Christophe Simonis 9d6786bc43 [MERGE] forward port of branch 8.0 up to 5e6ec89 2015-07-27 14:56:49 +02:00
Christophe Simonis 5e6ec89659 [MERGE] forward port of branch saas-3 up to 43235e2 2015-07-27 14:09:57 +02:00
Christophe Simonis 43235e2d1d [MERGE] forward port of branch 7.0 up to 0e151f7 2015-07-27 14:08:38 +02:00
qsm-odoo 6d484ad026 [IMP] Add Dialog.alert feature
This allows to open a simple message dialog with potential
action when the unique "ok" button is clicked
2015-07-27 13:57:22 +02:00
Olivier Dony 2d83656c0f [FIX] analytic: multi-path name_search should properly handle limit
Due to commit 1576bc9891,
when name_search() is called on analytic accounts with
multiple path components (e.g. A/B/C), the intermediary
searches are done without the extra domain criterions,
because they should only apply to the leaf.

However because the limit was applied for each step
of the multi-path search, it was quite likely that
no valid results were found in the final filtering,
returning no result at all.

In fact the intermediary steps should not apply the
limit at all, because the leaves we're looking for
may actually be located under parents that are not
found when the limit is applied on each step.

This commits removes the limit (hopefully without
too much of an extra penalty for large databases)

It also introduces a better fallback in case the
multi-path search did not produce any result,
for example if the name of the lead really contains
a '/', and it was not meant to be a path separator.
2015-07-27 12:58:48 +02:00
Olivier Dony 809f19c9b7 [FIX] web_kanban: do not word-wrap counter tags in kanban columns (missing sass file)
The change in the saas source file had not been added
in the previous commit.

See 74c961a779
2015-07-27 12:55:58 +02:00
Aristobulo Meneses b2193e6734 [ADD] payment_sips
contains acquirer definition to support Atos Wordline online payments
Courtesy of Eezee-It

Closes #6684
2015-07-24 18:10:57 +02:00
Christophe Simonis 799fff6897 FIX] mail: ignore parent message for forwarded private messages. 2015-07-24 17:56:30 +02:00
Martin Trigaux 71b0a4cb6c [FIX] crm: next action date display condition
The next action date (date_action) should be red if in the past, not if the
deadline date is in the past.
Introduced at 9f68a37
Courtesy of @sve-odoo 🎅
2015-07-24 16:01:59 +02:00
Josse Colpaert e00c33b89e [IMP] stock: Picking type in picking assign
When assigning a move to picking upon confirmation,
it took into account the locations/group of the picking,
but it should also check they are of the same picking type.
2015-07-24 15:56:24 +02:00
Goffin Simon 52cba1b563 [FIX] mrp: BOM state button from product.product
When clicking on the BOM state button from product.product, and clicking
on create afterward, it must open mrp.bom view with the product and product variant
already set(as with product.template).

opw:645045
2015-07-24 15:56:07 +02:00
Joren Van Onder a805e091c6 [MIGR] hr_recruitment: migrate to the new API.
This commit should not contain heavy code cleaning or refactoring.
The code has been translated and maybe slightly improved or
simplified.
2015-07-24 15:50:51 +02:00
Thibault Delavallée 2ed1cf80e1 [MOV] hr_recruitment: moved code related to hr.job and hr.employee
to their own python file.
2015-07-24 15:50:51 +02:00
Joren Van Onder d820f0f905 [MIG] hr_recruitment: restructure the files according to the guidelines 2015-07-24 15:50:51 +02:00
Thibault Delavallée 38de852257 [REM] hr_recruitment: removed some dead code and unnecessary
features :

- [REM] removed unnecessary action about stages and installer
and the file containing it.
- [REM] hr_recruitment: removed useless doc directory, containing
only crap and useless notes.
- [REM] hr_recruitment: removed unused wizard creating a partner from
an applicant. As we have all the necessary stuff in the form view this
wizard does not seem necessary. As it is not used, let us drop it.
2015-07-24 15:50:50 +02:00
Josse Colpaert a3859b6ee8 [IMP] Cancelling a purchase order should cancel the procurements (and the subsequent moves) instead of putting them into exception
By default the rules are propagate True, so when you cancel a purchase order,
it will cancel all subsequent moves and put the procurement to cancel too.
This means that for an MTO product it will put the original sale order in shipment exception.
If it is not propagate, it will not cancel the subsequent moves and put the procurement in exception.

The advantage of this change, is that when procurements are created from orderpoints and
you cancel the purchase orders, then you don't need to go run/cancel
the procurements in exception anymore (if propagate True)
2015-07-24 15:48:27 +02:00
Goffin Simon fe12c3453b [FIX] product: access rights pricelist
If the price in a price list line is based on "Supplier Prices on the product form",
the model "product.supplierinfo" and "pricelist.partnerinfo" must be readable by the
public user.

opw:645709
2015-07-24 15:12:16 +02:00
Goffin Simon 8a2ff461db [FIX] point of sale: create account move line
The method "_create_account_move_line" must take into account the rounding
method when computing the taxes for each line.

closes #7683
opw:645516
2015-07-24 15:05:26 +02:00
Géry Debongnie 4f5d498eb3 [IMP] web: modify notification.js like in enterprise
The enterprise web client had to be modified to fix a crash.  This crash
does not occur in the community web client,  but this commit makes sure
that the semantics of the notification manager is the same as the
enterprise version, to prevent future problems.
2015-07-24 14:31:51 +02:00
Christophe Simonis af9393d505 [FIX] orm: access error due to prefetch of indirectly referenced records.
The new-api record prefetching algorithm attempts
to load data for all known records from the requested
model (i.e. all IDs present in the environment cache),
regardless of how indirectly/remotely they were
referenced. An indirect parent record may therefore
be prefetched along with its directly browsed children,
possibly crossing company boundaries involuntarily.

This patch implements a fallback mechanism when
the prefetching failed due to what looks like an
ACL restriction.

The implementation of `_read_from_database` handle
ACL directly and set an `AccessError` as cache value
for restricted records.

If a model (like `mail.message`) overwrites `read` to
implements its own ACL checks and raises an `AccessError`
before calling `super()` (which will then call
`_read_from_database`), the cache will be not fill,
leading to an unexpected exception.

If this commit messae looks familiar to you, that's
simply because this is the new-api counterpart of
b7865502e4
2015-07-24 14:01:09 +02:00
Arthur Maniet cf66cfe5fa [FIX] account_bank_statement_import_ofx: declare ofxparse dependency
The module is useless if the ofxparse python library is not installed.
Declare this dependency in the manifest so the requirement is checked
upon module installation.
2015-07-24 13:01:08 +02:00
Arthur Maniet f4e27626e4 [FIX] account: reconciliation widget: new design compatibility
- Use less instead of sass
- Use class name of both old and new designs
- Small CSS tweaks to support both designs
- JS compatibility fixes + a little cleanup
- The ctrl-enter shortcut only reconciles balanced entries
2015-07-24 13:01:08 +02:00
Ondřej Kuzník ee145347a3 [FIX] crm_claim: visibility of field
Display claim_count and claim_count_out only to salesman and contact creation
group members as it requires these access rights to be computed.
Fixes #2458, Closes #7734
2015-07-24 12:33:17 +02:00
Géry Debongnie a99d656d13 [FIX] web_kanban: better behaviour when grouping
* fix a crash when grouping on non-many2one fields (due to the
group.values object being not initialized)
* display correct label when grouping on selection fields

We should have a better way to deal with fields differences.  There is
this weird concept called "abstraction", which could be applied and
would allow everyone to focus on their business and not on dealing with
this, but that would probably not fit with our codebase.
2015-07-24 12:17:26 +02:00
Julien Legros a8c6e666fa [FIX] point_of_sale: load disabled uoms
this is needed when selling products with a disabled uom
2015-07-24 12:05:42 +02:00
Martin Trigaux 2350d1f3ba [FIX] project: typo
Courtesy of Miku Laitinen
2015-07-24 11:35:36 +02:00
Nicolas Lempereur 6e090f5d5b [FIX] survey: improve printing
Don't use select element when printing a non-filled survey, and small
appearances improvements.

opw-645011
2015-07-24 09:35:02 +02:00
Aaron Bohy bfe8233880 [FIX] web(_tests): FieldMany2One: autocomplete
Many2One fields were broken in views opened by default in edit mode, since rev.
a0ddaf8. The autocomplete widget was appended to the DOM at
'.oe_application > *:visible:last', but since the mentionned rev., the views
are rendered in fragments detached from the DOM, and once they are ready, the
old content is detached and the new one is attached instead. It means that by
appending the autocomplete widget within '.oe_application > *:visible:last',
it is detached from the DOM with the previous content, and Many2One fields can
thus not work.

This rev. simply removes the appendTo option of autocomplete, so that the
widget is directly appended to the body.

Also updates a tour's selector matching an autocomplete ul as it isn't inside
the .modal anymore.
2015-07-24 09:08:14 +02:00
Nicolas Lempereur eb427f64d6 [FIX] crm_claim: unused date closed displayed
The state of a crm claim has been removed in f14eddb.

Thus, it is not possible to know the closure date and this commit hides
the field in the view.

opw-645826
2015-07-24 08:45:53 +02:00
Nicolas Lempereur c9461b316f [FIX] crm_helpdesk: typo for closing date
The value associated to the the "Closed" is done and not close.

opw-645808
2015-07-24 08:42:53 +02:00
Olivier Dony 74c961a779 [FIX] web_kanban: do not word-wrap counter tags in kanban columns
Because of the fix in commit 4fbecc35e1,
and the newly added word-break for oe_tag class, the kanban column
counter gets split in multiple lines for folded kanban columns,
resulting in

"
9
9
+
"

instead of "99+".
2015-07-23 20:13:42 +02:00
Nicolas Lempereur 0e151f7f32 [FIX] web_view_editor: javascript errors
A jquery selector $('td[id^=]') may have been valid once uppon a time,
but it cause error on current jquery versions.

Also in some case when we want to add a field on a view, there may be
a mess to detect the parent.

opw-645557
2015-07-23 15:48:53 +02:00
Martin Trigaux ab54722e78 [IMP] base_action_rule: allow to use time in domain
Unlink typical domain evaluation (ir.rule, filters,...), the evaluated domain
for automated actions did not included time in the context so it was not
possible to make time based conditions in domain.

This should be used with care as filters 'Based on Timed Condition' are still
possible and will probably be enough (and safer) in most cases.
2015-07-23 15:33:15 +02:00
Goffin Simon 7f5f945dcf [FIX] sale: _sales_count
The field "state" in "sale.report" model must consider the state used
by "sale.order.line" to be consistent with the view created in this model.

The function _sale_count in 'product.product' model must return
the number of product included in a "confirmed" or "done" sale order line.

opw:644200
2015-07-23 15:28:36 +02:00
Christophe Simonis 6a962b9594 [FIX] core: change behavior of x2m inegative domains using name_search.
Domains like `[('x2m_field_ids', 'not ilike', 'foo')]` now have a more
logical semantic. The negation is applied on the relation and not the
`name_search`.
2015-07-23 15:17:40 +02:00
Simon Lejeune 44c83299e3 [FIX] packaging: python-suds in debian's test environment 2015-07-23 14:28:20 +02:00
Goffin Simon 0d1fbabc28 [FIX] purchase: default uom for purchase
The methods _get_po_line_values_from_procs didn't take into account the uom_po_id
to compute the price_unit of a purchase order line.

opw:644356
2015-07-23 14:03:41 +02:00
Simon Lejeune 22fe0f5d0e [REF] web_planner: adapt style to webclients and website
With selectors here and there to make it work with the community
webclient, the enterprise webclient and the website without duplicating
the module.
2015-07-23 14:02:41 +02:00
Simon Lejeune cd9e5d2e12 [REF] web, website: autosize in assets_common 2015-07-23 14:02:41 +02:00
Simon Lejeune 11c9baa1a2 [FIX] crm: planner: bootlint and useless style removal 2015-07-23 14:02:41 +02:00