Commit Graph
103913 Commits
Author SHA1 Message Date
Odoo Translation Bot 7a0a649deb [I18N] Update translation terms from Transifex 2015-11-08 03:01:35 +01:00
Odoo Translation Bot 14799a9006 [I18N] Update translation terms from Transifex 2015-11-08 01:32:40 +01:00
Thibault Delavallée 582b16e4d4 [FIX] sale: salesman and analytic tags
Salesman can create analytic account. However they cannot choose any tags to apply
to this account because they miss a read access on tags.
2015-11-06 17:28:17 +01:00
Thibault Delavallée 33c78f1621 [FIX] stock: stock user should be able to create products
Stock user should be able to create products. Indeed when targetting small
businesses, restricting the right to create products limitates the use of
the inventory app. It is possible to further restrict access to the product
model using record rules for big companies that have a lot of users and
managers, and where creating product should be limited.
2015-11-06 17:28:17 +01:00
Denis Ledoux 5cff4dad99 [FIX] portal_sale: quotations access rights for portal users
Several fields are not supposed to be seen by portal users
on the quotation form.

This revision removes the fields that portal users are
not supposed to see on their quotations, or the one
for which they do not have the right access for.

opw-654007
2015-11-06 17:23:07 +01:00
Denis Ledoux 31dc82face [FIX] auth_signup, portal_sale: action_mail_redirect no longer exists
When sending the quotation email,
if the portal is enabled, as well as the signup of external users,
the action `action_mail_redirect` was used to redirect
the user at the right place, on the right form.

This action no longer exists in Odoo 9.0. This has been
replaced by the controller `/mail/view`.

opw-654007
2015-11-06 17:23:07 +01:00
Denis Ledoux 603dc8030c [FIX] auth_signup: use request lang on signup if supported
When a user signs up, when the according option is
enabled in the General Settings
`Allow external users to sign up`
Use the request lang (the partner browser lang) to
sign up only if this language is installed
in the database.

opw-654007
2015-11-06 17:23:07 +01:00
Denis Ledoux 8558ecfdf3 [MERGE] forward port of branch saas-3 up to dd8cbf4 2015-11-06 16:08:30 +01:00
Denis Ledoux dd8cbf49ac [MERGE] forward port of branch 7.0 up to d24fcd1 2015-11-06 16:04:21 +01:00
Nicolas Lempereur 157ce1b6e3 [FIX] web: IE Edge focus bug when delete in list
In the following situation :

 we click on an element inside a row (not the last row) which will:
 -> open an alert, confirm or prompt dialog
 -> remove the row containing the element

IE Edge would enter in a odd state where the focus is not given back to
the page, and clicking doesn't work anymore.

This fix solves this by detecting this situation and then focusing on an
input field which make IE Edge stop being crazy.

opw-653282

jsfiddle showing the issue: http://jsfiddle.net/ts8bsLLg/4/
jsfiddle showing a solution: http://jsfiddle.net/ts8bsLLg/6/

bug report on microsoft:
https://connect.microsoft.com/IE/feedbackdetail/view/1988284

note: applied in 9.0 community, 9.0 enterprise
2015-11-06 15:48:10 +01:00
Nicolas Martinelli 8a05e585d8 [IMP] account: display payment amount in its own currency
The payment widget now displays the payment in its currency, not in the
currency of the invoice.

opw-652747
2015-11-06 14:53:53 +01:00
Yannick Tivisse fac4127470 [IMP] product: Change 'default_code' to a compute field
Goal : Don't display the internal reference from one of the product template
as it was currently the case, because it was a related field to a one2many.
Here, we use the same behavior as for weight,volume or standard price fields.
If only 1 variant, i.e. no variant used, take the default_code from the template
If more than 1 variant, do not display anything.
2015-11-06 14:51:17 +01:00
Yannick Tivisse 7c9d93f0ef [IMP] Add a setting to install sale_layout 2015-11-06 14:45:48 +01:00
Yannick Tivisse 7e394725a8 [IMP] CRM: Done activities : Better chatter message 2015-11-06 14:45:48 +01:00
Yannick Tivisse 2c727cd852 [FIX] stock: 2 minor fixes
- Display scheduler for stock_manager instead of technical features
- Activate group_stock_multiple_locations if group_stock_adv_locations is enabled
2015-11-06 14:39:30 +01:00
Atchuthan, Sodexis 38868d4991 [CLA] Added sodexis corporate cla 2015-11-06 12:54:55 +01:00
Denis Ledoux 384b8d496d [FIX] base_import_module: exception logger for module imports
When importing a module, if an error was raised
during the import, the traceback wasn't displayed
anywhere, making harder the debugging.

While it make sense to not display the entire traceback
to the user, in the web client, this is useful to
diplay the traceback in the logs, for debugging purposes.

opw-653882
2015-11-06 12:03:35 +01:00
Thibault Delavallée 6e4dcf56f6 [FIX] stock: unexisting onchange
Probably coming from a copy-paste. An onchange_quantity does not seem to
exist on stock.quant model since a long time.
2015-11-06 11:34:49 +01:00
Thibault Delavallée ffdb9fa8a5 [FIX] sale_mrp: prepare_procurement_from_move 2015-11-06 11:33:42 +01:00
Géry Debongnie d17f656de4 [IMP] mail: various ui improvements
- less tweaks
- improve default channel name
- clean origin channel names in Inbox and Starred
- reduce fadeout duration in threads
2015-11-06 09:43:49 +01:00
Christophe Simonis 8e56b0114b [FIX] web_settings_dashboard
Error introduced by ed11d79.

Fixes #9439
2015-11-05 23:15:47 +01:00
Christophe Simonis ed11d79bd8 [IMP] web_settings_dashboard: speed up Inviation dashboard
Searching on `log_ids` field is slow when there is a lot of users.
Count the number of active/pending users directly in sql.
Only show the last 10 pending users. Add a link to the full list view.
2015-11-05 17:57:48 +01:00
Denis Ledoux fddbe4076b Revert "[FIX] sale, sale_stock: incoterms configuration"
This partially reverts commit e5d5737dde.

Changes in the database structure is not allowed in stable release.

Therefore, only the display of this configuration should be moved.
2015-11-05 17:24:02 +01:00
Denis Ledoux e5d5737dde [FIX] sale, sale_stock: incoterms configuration
The incoterms features (and group) are available upon the
installation of the `sale_stock` module.

The configuration to enable this feature should therefore
be in the Sales configuration only when this module is installed.

Otherwise, it just has no effect.

opw-653970
2015-11-05 17:20:38 +01:00
Nicolas Lempereur d24fcd1d2e [IMP] base: test for expression distribute_not
Testing the use case of c28a28e, in which distribute_not was refactored
with iteration instead of recursion.
2015-11-05 17:13:55 +01:00
Raphael Collet c28a28e69e [IMP] osv: use iteration for expression negating
The current code when applying negative operator on an expression used
recursion which in extreme case is not best friend with python.

e.g: on instance with a lot of wharehouse, some simple action could lead
to a domain with lot of elements which could easiliy go over the python
maximum recursion limit.

This commit fixes this by replacing recursion with iteration.

We have a stack of negation flags and loop on each token of the domain
as follow :

- when we iterate on a leaf, it consumes the top negation flag,

- after a '!' operator, the top token negation is inversed,

- after an '&' or '|' operator, the top negation flag is duplicated on
  the top of the stack.

closes #9433
opw-653802
2015-11-05 17:13:28 +01:00
Denis Ledoux a23468c845 [FIX] hr_timesheet_sheet: total attendances & timesheets performances
For these function fields, bypassing the ORM, using a SQL query,
improves the execution time by 100 for a set of 80 timesheets
in a database with
 - 250K `hr.analytic.timesheet`
&
 - 250K `hr.attendance`.

These function fields depends on a one2many field which use
the SQL view `hr_timesheet_sheet_sheet_day`.

When performing `sheet.period_ids`, two SQL requests are performed,
 - the first just to know the ids in the sql view matching this sheet
 - the second to read the fields `total_attendance` & `total_timesheet`
and the request is performed on the entire set of lines of this view
(~250K lines in the observed use case)

while, when replaced by this SQL request, only one request is performed,
on a restricted set of lines, speeding up significantly the computation
of these computed fields for smaller sets of sheets.

opw-653447
2015-11-05 16:23:48 +01:00
Thibault Delavallée 39c47f92f3 [FIX] stock: planner: flow, typos, links, wording
Including :

 - sales and purchaes flows did not match the actual sales and purchase
   applications due to last changes in v9. Those have been udpated.
 - typos, wording, use of tense
 - links: from 8.0 to 9.0, internal links
 - and more stuff

Update pot file for stock is included in this commit, as this is a stable version.
2015-11-05 15:28:13 +01:00
Nicolas Martinelli e62a9ee4d8 [FIX] purchase: return domain for product UoM
Commit c1920951e removed the return of the method, but part of it should
be kept since it modifies the product UoM domain.

opw-653763
2015-11-05 13:16:25 +01:00
Nicolas Martinelli ae37c87cc2 [FIX] purchase: no unit price and tax update
If no seller is found, do not update unit price and taxes. Indeed, if the
user changes the quantity, it will reset the unit price and the taxes,
which is confusing.

opw-653094
2015-11-05 13:16:25 +01:00
Christophe Matthieu 1439b9744d [FIX] web_editor: move bootstrap default css value from editor.css to inline.css to don't overwrite backend css values and have css style in html field (iframe) 2015-11-05 12:00:04 +01:00
Nicolas Martinelli ec76f1b3dc [FIX] sale: add missing SO origins
When an invoice gathers multiple SO, only one SO was specified in the
origin.

opw-653598
2015-11-05 11:24:29 +01:00
Raphael Collet 350ff8cfc3 [FIX] sale_stock: make related field product_tmpl_id on sale.order.line readonly
This prevents an access right error when saving a sales order after changing
its delivery method.  The latter updates sale order lines by an onchange, which
causes the unexpected update on the field.
2015-11-05 11:09:06 +01:00
Martin Trigaux 36c05660ee [FIX] morning typo fix 2015-11-05 10:42:12 +01:00
Nicolas Lempereur 4e0821ae9a [FIX] website_sale: attribute selection unreversible
On a list of product, the attribue list (can be activated via the
customize menu) only contains the attribute pertaining to current
filtered product list.

Also, all the values of a the attribute are showed, even if choosing a
value will result in an empty product list.

It could lead to usability issue in some situations.

e.g

1) the current showed products number 2 with an attribute color,
2) we select "Red" which isn't a value these 2 products are declined in,
3) the current show products is now empty, but we can't un-select the
   "Red" color since "Color" is not an attribute of any of those 0
   product.

This commit solves this issue by displaying the currently selected
attributes if no product is displayed.

opw-653594
2015-11-05 10:32:02 +01:00
Thibault Delavallée f376d7495b [FIX] account: billing cannot validate an invoice
Issue: without access on account.partial.reconcile model, a billing user can create
an invoice, but not validate it.
2015-11-04 18:02:59 +01:00
Thibault Delavallée 3e78938aa6 [FIX] account: billing cannot access Invoicing
Issue: account.bank.statement read right is required for the dashboard; added read access
forbilling users
2015-11-04 17:39:13 +01:00
Géry Debongnie 8cd75e630a [FIX] mail: sort messages by id instead of date, clientside
sorting by date was not sufficient, some messages had exactly the same
date, which had some subtle issues in the client interface.
2015-11-04 16:31:44 +01:00
Géry Debongnie 62829ac364 [FIX] mail: avoid duplicate entries in model mail.channel.partner
in some cases, it is possible to call the method
channel_join_and_getinfo when the user is already in the channel.  This
may (and did) cause issues in some unrelated code.  This commit
guarantees that this codepath will avoir creating another entry.

Another way to achieve this result is by adding a constraint on the
model mail.channel.partner, but this is in 9.0, so we must be careful.
2015-11-04 16:31:44 +01:00
Géry Debongnie 8ef69bd9fb [FIX] mail: avoid fetching messages when updating ui
Every time the user updates a message, the js code triggered a rpc to
refetch messages in the current channel.  This is useless, since the new
messages have been fetched anyway by the bus.
2015-11-04 16:31:44 +01:00
Géry Debongnie ff84737054 [IMP] mail: add mark all read feature to inbox 2015-11-04 16:31:44 +01:00
Aaron Bohy de665f4b6d [FIX] mail: mail_message: needaction_partner_ids wording
The 'string' attribute for both needaction_partner_ids and needaction fields
was 'Need Action'. This was problematic for example in the custom filters of the
searchview as it looked like the same field was appearing twice.

Update mail.pot as well.
2015-11-04 16:31:44 +01:00
Aaron Bohy 9c04a9e68b [FIX] mail: needactions: send mentionned partners on message post
When posting a message, the ids of mentionned partners are specified in the
partner_ids array. This has been broken in commit 388f7a7d, my bad.
2015-11-04 16:31:44 +01:00
Nicolas Lempereur dc69248e29 [FIX] web_planner: hide background pn planner destroy
A PlannerDialog does not extend Dialog for historical and graphical
reasons. Thus sometime a logic in Dialog is missed in a PlannerDialog
whilst it is useful.

In this instance, when doing an action from the planner which destroyed
it, the modal backdrop was not removed by bootstrap. Bootstrap does this
when the modal 'hide' function is called.

opw-653734
2015-11-04 16:19:10 +01:00
Christophe Matthieu 7a704aaba6 [FIX] web_editor: don't change the image style when change src 2015-11-04 16:10:44 +01:00
Christophe Matthieu f3ade95862 [FIX] web_editor: use _.bind for rte handler to use 'this' and avoid errors 2015-11-04 16:10:44 +01:00
Christophe Matthieu c7ff7cb491 [FIX] web_editor: remove editor bar flickering when edit a qweb field
Issue: When the user click on a field (like monetary, text...) the editor bar appear and disappear. The undo buton is hidden for this fields.
2015-11-04 16:10:44 +01:00
Christophe Matthieu 7228b29cb2 [FIX] web_editor: edition of monetary value
Issue: if the currency is before the value and we try to add a number at the begin of the value, the number is not saved (because the browser insert the number before the span).
Add a onEnableEditableArea in the rte to change the contenteditable value and the default behavior.
2015-11-04 16:10:44 +01:00
Christophe Matthieu 554bfa7d10 [FIX] web_editor: use history to enable or disable save button 2015-11-04 16:10:44 +01:00
Christophe Matthieu bdb787a18d [FIX] web_editor: value changes of many2one in the website enable the save button 2015-11-04 16:10:44 +01:00