Commit Graph
96732 Commits
Author SHA1 Message Date
Aaron Bohy ecc4e512cd [IMP] web: action manager: restore action
When clicking on the breadcrumb to come back to a previously loaded action, the
restore() function is called. With this rev, this old action is shown only once
the Deferred returned by the optional on_reverse_breadcrumb callback is
resolved, i.e. when the action is ready, as it should be.
2015-07-29 14:36:03 +02:00
qsm-odoo 970b54d1eb [IMP] web: alert/confirm dialogs default titles
Add "Alert" and "Confirmation" as default titles for
alert and confirm dialogs
2015-07-29 14:30:28 +02:00
Jignesh Rathod 7d70000a12 [IMP] stock : Improve return mechanism.
When a location is marked as return location,
upon a return it can be put it in the possible return locations,
when it is in the same warehouse or under the same parent location.

The push rules are also applied on returned moves now, but
only when the push rule does not return the return to the original location

The lot in the return line is removed as it does not make sense
(better to change it on the pack operations)
and the views are cleaned

The returned picking is also automatically reserved.
2015-07-29 13:27:41 +02:00
Thibault Delavallée 924c54f24b [FIX] mail: followers computation: working on newId records
can lead to issues when trying to compute followers.

This case appears in the onchange mechanism. Indeed it may
manipulate temporary and/or new records, not having an
ID. In this case the computation of followers is not
necessary anymore.
2015-07-29 12:07:50 +02:00
Thibault Delavallée ed3d6aff81 [IMP] hr_recruitment: have a default stage for newly created jobs
as there is no more column sharing anymore. This ease the use of the
application by having a lightweight data to customize.
2015-07-29 12:07:50 +02:00
pvy 4442efb652 [IMP] account: changed the displayed field of the taxes in the invoice reports, it is now the description, i.e. 'label on invoices'. Based on a request from fp. 2015-07-29 11:11:55 +02:00
qsm-odoo face447e4d [FIX] web: div.o_checkbox compatibility
Add rules so that the enterprise version div.o_checkbox does not
break community layout
2015-07-29 10:45:04 +02:00
Aaron Bohy e56bdb731d [IMP] base_import: ControlPanelMixin and new design compatibility
- Use the ControlPanelMixin in the Import view;
- Adapt the stylesheet to fit with both community and enterprise editions;
- Convert the css into less, use mixins and variables defined in web;
- Return the reload() deferred in the on_reverse_breadcrumb callback so that the
  previous action waits to be properly reloaded before being shown.
2015-07-29 08:41:03 +02:00
Aaron Bohy a21fe28b8d [FIX] base_import: action button 'Import'
Adapt the template according to the refactoring of the parent commit.
2015-07-29 08:41:03 +02:00
Aaron Bohy 71e9de4ecc [REF] web(_tests): list view (editable): action buttons
Refactoring of the DOM structure and classnames of the list view's action
buttons (in the control panel), for new design compatibility. This refactoring
was required as some addons shared between both editions (e.g. base_import)
define their own buttons and extend the ListView.buttons template to insert
them.
2015-07-29 08:41:02 +02:00
Simon Lejeune 4e24b81616 [REF] web: action manager: wrap the client actions in a div
this way we can style the div and use the trick to have the child of a
flex-item filling 100% of its parent (flex item in relative position and
flex child in an absolute position). It is needed to have a consistent
look betwenn Odoo enterprise and Odoo community.
2015-07-29 08:39:38 +02:00
Antony Lesuisse c8b1f0d678 [IMP] hr_recruitment search attachments
code moved from the deprecated hr_recruitment_document
2015-07-29 00:53:23 +02:00
Antony Lesuisse 0ef5453e48 [REM] hr_applicant_document
The feature will be readded in hr_recruitment
2015-07-29 00:20:53 +02:00
Antony Lesuisse 05146e438b [FIX] document: remove some unnecessary deps 2015-07-29 00:20:28 +02:00
Joren Van Onder 86f2cbb967 [IMP] sale: filter multi-company taxes on a sales order
Showing only the taxes from the same company. Beware that multi-company as
adminstrator is not supported, anyawy this mitigate some of the possible errors
if it happens anyway.
2015-07-28 23:10:22 +02:00
Joren Van Onder f23b9b31b5 [IMP] ir_model: don't allow manual creation of invalid one2many fields
Only allow it when there is an inverse many2one. This is meant to try
and prevent users from messing up their database.
2015-07-28 23:06:27 +02:00
Joren Van Onder b7cec33182 [IMP] product: don't allow modification of UOM's from odd views
This is to avoid users accidentally breaking inventory values.
2015-07-28 23:05:08 +02:00
qsm-odoo 9bd09bc233 [FIX] board: use of event variable
The global event variable is magically ok on some browsers
but not on firefox

(Thanks aab)
2015-07-28 16:35:32 +02:00
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