Commit Graph
99776 Commits
Author SHA1 Message Date
Martin Trigaux 1c5c255186 [FIX] calendar: translatable date content
The time_display is present in a translatable email template but was not
translated. Added the missing term.

Updated .pot file for a few missing terms.
Removed base_calendar.pot that has no reason to be in 8.0

Fixes #9573
2015-11-25 14:36:55 +01:00
Denis Ledoux 2fd14db574 [FIX] stock: multi-company rule for stock.quant.
`stock.move` & `stock.product` have multi-company rules.
There is therefore no reason why `stock.quant` could not have one.

Besides, this could lead to access rights issues,
when a user went to the `Quants` list,
in Warehouse > Traceability > Quants,
while there were quants for products in a company different
than the user company.

opw-653188
2015-11-25 14:32:46 +01:00
Goffin Simon b2939537d9 [FIX] website_quote: using a quotation template with a fiscal position
When creating a SO with a quotation template, the lines created
with the quotation template must take into account the fiscal position
set on the SO to compute the right taxes.

opw:657015
2015-11-25 14:31:22 +01:00
Christophe Simonis 83f56a30a6 [FIX] website_sale: declare js function in the right module 2015-11-25 13:59:07 +01:00
Christophe Simonis 56a442e205 [MERGE] forward port of branch saas-6 up to dade7e3 2015-11-25 13:26:02 +01:00
Nicolas Lempereur 8d3bdf6b50 [FIX] project: IE11 issue with kanban overflow
In 6fd7fc9 the issue was solved in some instance, but there was still an
issue with the combination of IE11 / Odoo community / Overflowing content.

fixes #9696

related to opw-653477
2015-11-25 12:40:47 +01:00
Denis Ledoux dade7e3c17 [FIX] website_quote: confirmation email at payment.
`website_quote` overrides `payment.transaction`.`form_feedback`
the same way `website_sale` does,
in case `website_quote` is installed without `website_sale`.

Therefore, the revisions
 - 4adb4b8
 - 809e1a6

must be applied there as well.

opw-657432
2015-11-25 11:22:44 +01:00
Christophe Simonis 12d5b4168f [MERGE] forward port of branch 8.0 up to 8e1a5ad 2015-11-25 11:18:21 +01:00
Cedric Snauwaert d31b1ab2a7 [FIX] account: amount_residual_signed should be negative for refunds only 2015-11-25 11:02:32 +01:00
Nicolas Lempereur f5bd1cc922 [FIX] web: local var parent typo
fixes #8516

note: was already solved in enterprise with 7ab5075
2015-11-25 11:00:52 +01:00
Goffin Simon 15ff26c9f7 [FIX] website_quote: onchange_template_id
If a quotation template was used to create a SO, the default customer
taxes set on the product's line were not set on the SO lines.

opw:657015
2015-11-25 10:14:34 +01:00
Goffin Simon 0b52e8a887 [FIX] tools: html_keep_url
If an url is the label of a tag a, the htm_keep_url doesn't have
to treat this url.

opw:656821
2015-11-25 10:09:25 +01:00
Raphael Collet 8e1a5add38 [FIX] api: improve decorator returns to handle special cases, like method search
Add the possibility in the decorator to specify the `upgrade` and `downgrade`
functions that convert values between APIs.  Both function have the same API:

    upgrade(self, value, *args, **kwargs)
    downgrade(self, value, *args, **kwargs)

The arguments ``self``, ``*args`` and ``**kwargs`` are the ones passed to the
method, following its new-API signature.

Fixes #4944, #7830.
2015-11-25 09:59:35 +01:00
Olivier Dony 3b833b2039 [FIX] analytic: optimize name_search for large databases
On databases with a large number of res.partner entries,
the extended name_search of analytic accounts was prohibitively
slow, due to the expensive name_search on res.partner.

Restricting the search to the partner name is extremely
similar business-wise, but makes a huge difference in
terms of speed. E.g. sub-second results vs 10+ minutes
for a database with 30k analytic accounts and 600k partners.
2015-11-24 20:00:58 +01:00
Nicolas Lempereur 6fd7fc9643 [FIX] project: IE11+ issue with flex and overflow
IE11 and IE Edge presented issue in the project kanban view with content
overflowing its container.

On IE Edge it could be solved by "min-width:0" on the left part of a
kanban card, so it was an issue in the computation of widths order.

But on IE11 that wasn't enough so a less elegant fix has been used.

opw-653477

(solution found mainly by qsm)
2015-11-24 17:37:28 +01:00
Martin Trigaux 4250f7beee [FIX] account: error message
The error message on the journal entry for currency was wrong.
The multi-currency view does not exists anymore in 9.0 so is no longer relevant.
To avoid breaking existing translations, create a en translation.
Rename the en_US.po to en.po to be used by _GB and _AU

Will be fixed in saas-7 by the mighty @csnauwaert 📯
2015-11-24 17:27:11 +01:00
Denis Ledoux 13e1f7afac [MERGE] forward port of branch 8.0 up to 3e03cfe 2015-11-24 16:51:45 +01:00
Yenthe 9c690547f8 [IMP] l10n_be: Translations of taxes in Dutch
Closes #9719
2015-11-24 16:12:29 +01:00
Denis Ledoux 3e03cfe7ac [FIX] website: type openerp -> odoo
opw-657169
2015-11-24 16:09:19 +01:00
Nicolas Martinelli 7007cc33d8 [FIX] product, sale*: procurement needed
In v8.0, a procurement is not created by default. Only sale_stock and
sale_service will create procurements, since they are only used for
physical products or task-related services.

In v9.0, the behavior was changed and a procurement was always created.
This is not necessary, since the procurements are still only used for
physical products and task-related services. This behavior will just
lead to the creation of procurements which will fall into exception
(method `_assign` will return False).

This fix switches back to the previous behavior. The other solution was
to prevent the exception, but it will imply that useless procurements
will pile up.

opw-654363
2015-11-24 16:06:42 +01:00
Nicolas Martinelli 40a7c177e7 [FIX] purchase: select suppliers of variant
When a PO is created from a procurement, the field product_id of the
supplierinfo is not taken into account when the possible vendors are
chosen. For example, let's take the following situation:
- A product with 2 variants (color White and Black), route MTO
- Two vendors are created, one for color white, the other for color
  black
- When a SO containing the 2 variants is created, only one PO for the
  same vendor is created for both products.

With this fix, 2 POs will be created, linking the appropriate vendor and
variant.

opw-657362
2015-11-24 15:42:22 +01:00
Joren Van Onder dcda436c8b [FIX] point_of_sale: remove reference to currencies for cash control
The mentioned available currencies are a leftover from the old
account.bank.statement.cashbox which would show a pre-defined list of
'currencies' (eg. .05, .10, .50, 1, 2, 5, 20, 50, ... for Euro). Since
accounting v9 this is no longer how it works, the wizard now just
consists of value, amount pairs that the user has to fill out.

opw-653111
2015-11-24 14:52:33 +01:00
Goffin Simon 131e12b773 [FIX] sale, sale_layout: sale_layout_cat_id field
The field 'sale_layout_cat_id' is installed  by the sale_layout module.
Introduced by bde7f4dad1

opw:656981
Closes #9157
2015-11-24 14:27:38 +01:00
Goffin Simon bde7f4dad1 [FIX] sale: _prepare_invoice_line
When creating an invoice from a SO, the field 'sale_layout_cat_id'
must be passed from each SO line to each invoice line.

opw:656981
Closes #9157
2015-11-24 14:01:48 +01:00
Darshan Kalola bb1958b5ff [FIX] pos_restaurant: show occupation on round tables
On square tables we graphically display how many people are currently on
the table by making part of the table on the floor screen darker. On
round tables we didn't do this.
2015-11-24 13:38:50 +01:00
Nicolas Lempereur 4424f301a6 [FIX] im_livechat: missing dependencies in im_livechat page
The Website Live Chat is supposed to appear following 3 ways outside of
the backend:

- in a singleton page with path /im_livechat/support/{id}

- in a page in which a code code snippet (with two script and a css
  bundle) has been inserted in the head section

- by installing the module "Website Live Support"

In the first both instances, including some less files and bootstrap
default variables is required which this commit do.

In the last instance these file should already be included in the
website and the additional assets required are inserted in the
website.assets_frontend bundle.

opw-654898
2015-11-24 13:02:47 +01:00
Nicolas Martinelli a4b6e3a82a [FIX] hr_timesheet_sheet: select timesheet
Select analytic lines related to timesheet only.

opw-654362
2015-11-24 12:56:32 +01:00
Denis Ledoux 8d305ba9cd [FIX] mass_mailing: /unsubscribe controller must be auth='public'
Rendering a website template with auth='none' has as side-effect
to render the website template as sudo, therefore display "Administrator"
instead of "Sign in" when the user is not signed in in the website
user menu, as well as other issues, e.g. records browsed as sudo
while it's not required.
2015-11-24 11:59:15 +01:00
Thibault Delavallée aaa8d07de0 [FIX] survey: sending emails
Emails are now send once by recipient. If there is a partner_id, use it as
recipient using the correct recipient_ids field, not partner_ids (not the
same meaning, recipients for emails use recipient_ids). Use the email_to
if there is no partner_id. Indeed this method is called with partner_id
and email being the same recipient.

Also added auto delete to generated emails. As partner_ids is not used anymore
the mails are not considered as notifications and stay in the mail_mail table.
There is no need to stock those emails.
2015-11-24 11:36:48 +01:00
Goffin Simon 32c8280a02 [FIX] payment_adyen, payment_authorize, payment_buckaroo, payment_paypal, payment_sips: Disable csrf on callbacks
Inspired from 2099f15d67

opw:653341
2015-11-24 11:35:57 +01:00
Nicolas Martinelli db7ed45a4e [FIX] sale_stock: handles UoM correctly in check availability
A simple browse with `uom=` as parameter does not convert
virtual_available in the requested UoM. Therefore, we need to convert
manually in the standard UoM of the product.

Bonus: is_available depends on self.route_id
2015-11-24 11:33:26 +01:00
Nicolas Martinelli ae3efc0df7 [FIX] sale_stock: properly check routes
For some unknown reason, the salepocalypse project completely screwed up
the availability check of the product. This commit adds back the check
as it used to be.

opw-653991
2015-11-24 11:33:26 +01:00
Denis Ledoux 547bab22c8 [FIX] website_mass_mailing: missing requires
`mass_mailing.unsubscribe` depends on

1. `web.ajax`, as it uses `ajax.jsonRpc`
2. `web_editor.base`, to explicitely wait
   for all dependencies to be loaded,
   so the DOM can contain `o_unsubscribe_form`

opw-654396
2015-11-24 11:13:44 +01:00
Martin Trigaux 2190d5a08a Remove crm as dependency of event_sale
There is no need for CRM to have event management. Introduced at 64d63ffaa6 for probably no reason...
2015-11-24 10:37:20 +01:00
qdp-odoo f8c261c76a [FIX] account: when a payment is processed in the bank interface, it will complete the partner automatically if a single invoice is found with the same reference. As expected for a structured communication for example. Fixes opw 653452 2015-11-24 10:22:16 +01:00
Denis Ledoux fe5183b2a9 [FIX] sale: quotation date_order default value
`fields.Date.context_today` can be used as default value
for Date fields,
but, for Datetime fields, it shouldn't be used, as
this doesn't contain the time, only the date.

`fields.Datetime.now` should be used, as this includes
the date (in UTC, as expected).

opw-657294
2015-11-24 10:16:40 +01:00
Nicolas Martinelli 50db2470f0 [FIX] hr_timesheet: display only timesheet
Display only timesheet related analytic lines.

opw-654362
2015-11-24 10:05:36 +01:00
Cedric Snauwaert cdb0dae247 [FIX] account: default value for journal_id not correctly working when clicking from dashboard
missing journal_id in search view and default value for journal_id when creating a new invoice should
first take value in context if any.
2015-11-24 09:43:42 +01:00
Nicolas Martinelli 3d864c14d8 [FIX] purchase: product name and reference
The product name and reference of the supplier should be used for a PO
line generated automatically.

opw-653848
2015-11-24 08:40:43 +01:00
Denis Ledoux 32fd520d97 [MERGE] forward port of branch 8.0 up to 6f29cbe 2015-11-23 17:40:15 +01:00
Thibault Delavallée 8fa7318178 [FIX] project, issue: change user_id + date_start
project.task: use an onchange to update date_start when changing user_id.
Indeed date_start is automatically updated in the create / write. Without
the onchange, this may lead to errors related to date_start being greater
then date_end.

project.issue: code in create and write now takes into account date_open
values given to the method and avoid erasing them.
In issue however the onchange is not added. Indeed the date_open and
date_closed fields are not visible in the view. They are automatically
computed and used to compute statistics.
2015-11-23 17:36:40 +01:00
Thibault Delavallée af6305722f [FIX] mail: server action: do not send directly email notifications
This is a backport of a fix in 9, revision 890f1302c7.
In this revision a context key is added wshen evaluating server actions.
Notification emails created during a server action will be set in the queue
and not send directly.
2015-11-23 17:36:39 +01:00
Thibault Delavallée e74c12ffe2 [FIX] hr_holidays: mailing deadlock / spam
Some fixes coming from V9 revision 2be1dfc1ed. The
purpose is to avoid to send emails in batch and to limitate automatic
subscription.

 - add a context key to use the email queue for notifications linked
   to allocations created in batch. This way emails will be send asynchronously
   and will not create a deadlock when having a lot of allocations to process.
 - also fixed a missing context in a browse
2015-11-23 17:36:39 +01:00
Denis Ledoux 6f29cbe3ac [FIX] website,ir_qweb: prevent inherit_branding for assets
The attribute `data-oe-*` (`data-oe-id`, `data-oe-model`, ...)
must not be added when rendering the assets, to avoid
having different assets content,
e.g. a different content for the assets_common,
according if the user is signed in or not,
if the user can edit the website or not.

A different content for an assets according to the
users rights or the user being signed in or not means
that the assets are permanently re-written in the filestore,
which is against the point of the assets.

The content of the assets (assets_common) must not be
different from time to time, it must always be the same
(except when installing a new module, obviously).
Adding the `data-oe` attributes was pointless for the assets
anyway, and prevented having an identical content all
the time, therefore rewritting the assets all the time
in the filestore.

opw-657046
2015-11-23 17:01:03 +01:00
Géry Debongnie 3b5e7feb16 [FIX] mail: fix all bugs (in search)
This commit probably fixes all bugs related to the search view
2015-11-23 16:29:37 +01:00
Géry Debongnie 919179b417 [FIX] mail: opening a chatter mark all messages as read
also, send correct notifications in case several channels are concerned.
2015-11-23 16:29:08 +01:00
Aaron Bohy 5616027190 [FIX] im_livechat,mail: unread counter in chat windows
Synchronize the unread counter between chat windows, client action and the
actual value stored in DB. This adds robustness to the counter displayed in
chat window, and allows to synchronize the client action with the chat windows
when marking messages as read.
2015-11-23 16:29:08 +01:00
Aaron Bohy faf5cea948 [FIX] mail: various UI improvements
- emoji are no more clickable in threads (they are only in the popover)
- correctly update channel needaction counter
- don't display 'New message' notification when the channel in detached
- display in the ui channels that send emails and other channels
- prevent notifications in mass mailing channels
- increase bottom padding in client action thread
2015-11-23 16:29:08 +01:00
Thibault Delavallée 00630c5fd7 [FIX] website_event_sale: maximum tickets to buy
Buying a ticket is limited either the number of available seats on the ticket
and on the event. So compute the minimum between those two values to display
the selection.
2015-11-23 14:47:11 +01:00
Thibault Delavallée d035fef657 [FIX] event: do not show canceled events by default
Upcoming filter show events that begin in the future. However it is not
necessary to show canceled events. The filter has been udpated accordingly.
2015-11-23 14:47:11 +01:00