Commit Graph

93480 Commits

Author SHA1 Message Date
Christophe Simonis 5e7f143c21 [MERGE] forward port of branch saas-3 up to ed76b2a 2015-06-11 13:00:49 +02:00
Christophe Simonis ed76b2a782 [MERGE] forward port of branch 7.0 up to e470385 2015-06-11 12:46:06 +02:00
Stéphane Bidoul d291aba4b5 [FIX] server: graceful shutdown must send SIGINT instead of SIGTERM to workers
Workers do not specifically handle SIGTERM so it can be used to
force quit them, but the graceful shutdown is triggered by SIGINT.

Closes #6738
2015-06-11 12:00:57 +02:00
Goffin Simon e208fe51db [FIX] point_of_sale: precision
Regression introduced by 5a10903.
2015-06-11 08:45:17 +02:00
Nicolas Martinelli 7360a30b27 [FIX] crm: create logged calls from tree view registers mobile phone
When a logged call is created from the tree view, the mobile phone of the
partner is not filled in automatically, while it is in the form view.

opw-640549
2015-06-10 09:27:25 +02:00
Martin Trigaux 87d48b0859 [FIX] web: do not crash when select wrong db
When a user tries to log into a postgresql database with no view web.login (this
happens if the database is not an odoo database or using a previous version of
odoo), the rendering failed, producing a 500 error (with no detail for the user)
Instead, redirect to the database selector with an informative message.
Fixes #3443

The database selector page is a jinja template with no access to database
required so should be able to be displayed on any database.

Future improvement could verify the version of base module for even more precise
verification before login (but need to make sure it's always accurate).
2015-06-09 15:05:57 +02:00
Goffin Simon 4d7671a4c3 [IMP] website_sale: Skip overload with requests
Until the request to get the unit price is not finished, no request is sent to the server.

issue #4298
2015-06-09 12:06:18 +02:00
Jean-Baptiste Quenot 78420d1cf2 [CLA] sign for Jean-Baptiste Quenot 2015-06-09 11:44:45 +02:00
Jeremy Kersten 31301bb31a [FIX] website_sale: reset sale order from session if status is no more in draft
When a sale order has in state != draft, we raise a error message since commit
f6c65a3d9e.

But if we don't reset the sale order id from the session, the user cannot
continue to navigate on website because the user will have the error each time.
2015-06-09 11:13:20 +02:00
Raphael Collet 4a5e2fe99e Merge pull request #5618 from acsone/8.0-fix-5616-ir_model_fields-from-fields
[FIX] model: use self._fields instead of self._columns to populate ir.model.fields
2015-06-09 09:51:49 +02:00
Goffin Simon fb57514cf0 [FIX]account_anglo_saxon: price unit of a move
The price unit of a move must be computed with the product_uom of
this move.

opw:640454
2015-06-09 09:30:54 +02:00
Nicolas Martinelli 4a281754db [FIX] purchase: add transition invoice_end to cancel in the workflow
If the state of the PO is 'approved', there is no transition foreseen in
order to cancel the PO.

The user might be blocked in the following situation:
- Create a purchase order with invoicing set as Based on incoming shipment
- Validate the purchase order, create the shipment
- Then, cancel it (the shipment)
- Return back in the purchase order, the PO should be in shipping exception
- Hit the "manually corrected"
- Then, try to cancel the PO: nothing happens.

opw-641014
2015-06-09 08:20:10 +02:00
Nicolas Martinelli e470385d55 [FIX] account_voucher: select the right credit/debit account for the payment
If different debit/credit accounts are configured for a journal, the
appropriate account must be selected.

opw-640745
2015-06-09 08:13:16 +02:00
Leonardo Pistone a3e4a1f39f [FIX] stock: propagate owner when generating extra move 2015-06-08 18:23:31 +02:00
Guewen Baconnier c315377d00 [IMP] purchase: Ignore canceled purchase lines
Canceled lines must be excluded from most of the operations done on a purchases orders.
The check has been done in some places but some of the loops on the order lines do not do it.
This commit correct them.
2015-06-08 18:19:38 +02:00
Guewen Baconnier 96b53126a2 [IMP] purchase: Purchase report uses the state of lines instead of purchases
So canceled lines of not-canceled orders are correctly represented in the
analysis.
2015-06-08 18:19:20 +02:00
Odoo Translation Bot d9e8c3ade4 [I18N] Update translation terms from Transifex 2015-06-08 17:22:46 +02:00
Odoo Translation Bot e2c9699cfc [I18N] Update translation terms from Transifex 2015-06-08 14:03:50 +02:00
Wolfgang Taferner 2f5d681135 [FIX] product_extended: cost price computation from BOM
having lines with products using a different UOM for
sales and purchases

If a product does have a (different) purchase uom, we should first
take it as a base for calculating prices as the standard price relates
to it and not the sale (normal) uom.

Closes #6829
opw-640616
2015-06-08 11:13:05 +02:00
steveferry 852b1f17ea [IMP] doc: list of linux -dev dependencies incomplete
I had to install libldap2-dev because of this error: lber.h no such file
or directory.  After this package's installation, the requirements
installation works with no errors.  So I guess it's needed too.

closes #6971
2015-06-08 08:30:03 +02:00
Alexis de Lattre 96135fa785 [FIX] http: correct authentication via JSON-RPC.
Since 31d817e, we rotate then session at login/logout.
Unfortunatly, `openerpframework.js` does not support session id change
at authentication and keep old one.

In order to keep compatibility with existing js clients (including 7.0
ones), we do not rotate the session at authentication.

Fixes #6948
Closes #6949
2015-06-05 12:38:39 +02:00
Jean-Baptiste Quenot 3d35a5d42b [FIX] mail: Strip In-Reply-To header
For emails sent via Office 365, reply-to header could contains additional spaces
or get multiline header.
e.g.:
In-Reply-To:
	<4ba8f246904b4fedb49fbab7945a7f82@AM3PR06MB433.eurprd06.prod.outl$$k.com>

The message lookup fails if header is not stripped
2015-06-03 19:12:12 +02:00
SauliusZ 2948ed954b [FIX[ base: Currencies changed for Latvia and Lithuania
Latvia changed its currency to Euro from 2014 and Lithuania from 2015. It is not
possible to buy in old currencies anymore.
2015-06-03 19:03:45 +02:00
Lionel Sausin 08fabb1d64 [FIX] product: Don't force arbitrary precision on weights
The product view forces the decimal accuracy to 3 digits on weight and
weight_net, but the accuracy can actually be set using the 'Decimal Acuracy'
feature so it must not be forced here.
2015-06-03 17:49:04 +02:00
Denis Ledoux 815f91b951 [FIX] google_calendar: remove event in google while being only attendee
If User A created an event In Odoo, inviting User B,
Then, if User A sync his calendar with Google,
user B have an invitation to this event in Google,
if user B refuses the event AND remove it from his Google calendar
and then syncs his calendar to Odoo,
the event was removed from the Odoo calendar, of all attendees.

opw-641356
2015-06-02 15:04:00 +02:00
Yannick Vaucher 37f3d08c18 [IMP] Add a way to bypass check on dropshipping with both invoice policies on delivery. This improve #6824 as it procures no way to implement the missed feature and bypass the check. 2015-06-02 13:46:04 +02:00
Goffin Simon eabf7df5f9 [FIX] website_event: format event periode
The format period defined by the start_date and end_date of an event
can be set according to the language.

opw:640011
2015-06-02 10:42:46 +02:00
Denis Ledoux a9e3d74713 [FIX] google_calendar: event duplication during sync to google
With User A <a@gmail.com> and user B <b@gmail.com> both syncing
their calendar with Google.
If User a created an event X, adding as attendee himself and user B,
and then synced his calendar to Google, a new event was
created in User B Google Agenda automatically, representing the
invitation.
At this stage, X appears only once, in the four calendars
(Odoo cal for A, Odoo cal for B, Google Cal for A, Google Cal for B)

If user B then synced his calendar to Odoo, the event X was
duplicated in three of the calendars (Odoo cal for A and B, Google cal for B)

If then user A synced again his calendar with Google, the event X
was duplicated in the four calendars.

From then, a duplicate loop began, at each sync of the both user calendars.

opw-639419
2015-06-01 18:14:50 +02:00
Nicolas Martinelli e26bfd9d13 [FIX] hr_payroll: add copy=True to worked_days_line_ids
Method refund_sheet relies on the fact that on 7.0, copy=True was the default
behavior for one2many fields.

Bonus: remove the call to compute_sheet since that what is done by
self.signal_workflow(cr, uid, [id_copy], 'hr_verify_sheet')

opw-640348
2015-06-01 16:16:35 +02:00
Nicolas Lempereur 69f87cd34c [FIX] account: get uom at account invoice creation
For commit c63230d0d if there is no uom, it should not fail.

closes #6920
2015-06-01 16:03:46 +02:00
Nicolas Lempereur c63230d0d0 [FIX] account: force uom from product category
When we change a product line of an account invoice, a current unit with
a invalid unit category was not dropped which should be since:

- it is different from a sale.order,,
- there is a domain on the unit of measure only allowing units from the product's unit category.

This fixes drop the current unit of mesure in this case.

opw-640985
2015-06-01 15:27:58 +02:00
Nicolas Lempereur c3464e958e [FIX] membership: free_member get free when paid is dropped
When a paid membership is finished, a free_member partner should get a
free membership_state.

related to opw-640440
2015-06-01 14:54:12 +02:00
Goffin Simon 6792376f39 [FIX] hr_applicant_document: resume and letters
When an ir.attachment is created from the ir.action.window "Resumes and Letters"
then the res.model must be set by default with 'hr.applicant'.

opw:641070
2015-06-01 13:36:09 +02:00
Nicolas Martinelli 9ce57d55e7 [FIX] purchase: add a trigger to minimum_date_planned
This triggers allows the minimum_date_planned to be calculated when PO are
merged.

opw-640541
2015-06-01 11:22:23 +02:00
Jeremy Kersten daa69fb838 [FIX] http: avoid that request.not_found crash
return request.not_found crash with a internal error, because get_response
takes a environment as param.

Werkzeug Documentation:
Keep in mind that you have to pass an environment to get_response() because
some errors fetch additional information from the WSGI environment.
2015-06-01 10:30:16 +02:00
Goffin Simon 7f8cd01431 [FIX] product: Product field
"product.product" model inherits from "product.template"  model then
all the float fields in "product.product" include those from "product.template".
A list is used to conserve the order of the fields.

Fixes #2067
opw:639766
2015-06-01 09:11:22 +02:00
Jeremy Kersten 1bc328317a [FIX] website: display 'Show Sign In' option
Commit 4ff1af4 moves the groups attributes on the ir ui view/template.
So the option is no more available in customize menu if user is logged.
No luck, because when your are not logged you don't have the menu.

Groups on template are the best practice to hide the content of a view
to a group of poeple, except in this case where a customize_show is set
to True.

Maybe that customize_show should ignore groups on ir ui view in a future
version ?
2015-05-30 16:00:28 +02:00
Martin Trigaux 7def86fcc7 [I18N] spring cleaning of untranslated languages
Remove languages that were not translated fro, the list of installable languages.
Installing languages with no translations (en_CA) has no effect and having a too
long list is misleading. Sorry Klingon.

Adding languages that were translated but not installable (fr_CA, en_AU)
2015-05-29 23:40:40 +02:00
Martin Trigaux 4528ccf148 [I18N] First sync of translations from Transifex
Translation is that which transforms everything so that nothing changes.
 -- Grass Günter
2015-05-29 21:58:20 +02:00
Martin Trigaux 409ca3e009 [I18N] Update translations from Transifex
Now I am become Death, the destroyer of worlds
2015-05-29 18:28:10 +02:00
Goffin Simon 50182d0dfe [FIX] website_event: month in local events
The month inside the local events snippet must be in the user language.
Inspired from def _read_group_format_result in models.py

opw:640011
2015-05-29 16:56:14 +02:00
Frédéric van der Essen 19eda68547 [IMP] web, point_of_sale: basic implementation of the cordova integration.
This time without a new js file
2015-05-29 15:33:13 +02:00
Nicolas Martinelli 46eb9e2639 [FIX] product: cut date to keep format '%Y-%m-%d'
Ensures the date format is '%Y-%m-%d', since it is the format of
pricelist.version_id.date_start/date_end.

opw-640436
2015-05-29 13:58:53 +02:00
Nicolas Martinelli 3274f8c94c [FIX] point_of_sale: remove deprecated field account_receivable
property_account_receivable should be configured by default.

opw-639766
2015-05-29 13:39:29 +02:00
Nicolas Lempereur 27834a6e9b [FIX] web_calendar: keep default name if event name empty
The name of an event is the name a created record will get.

If the event name of a new event is left empty, the edited record will
also be empty which could be less user friendly.

closes #6896
fixes #6869
opw-640921
2015-05-29 13:18:09 +02:00
Olivier Dony b17c7d66c7 [I18N] Final sync + cleanup of Launchpad Translations, moving to Transifex
See https://github.com/odoo/odoo/wiki/Translations
2015-05-29 11:22:32 +02:00
Olivier Dony 1cea0dc4e9 [I18N] Final sync + cleanup of Launchpad Translations, moving to Transifex
See https://github.com/odoo/odoo/wiki/Translations
2015-05-29 10:55:06 +02:00
oalca ad36836e3c [CLA] Oscar Alcala, Vauxoo 2015-05-29 00:13:40 +02:00
oalca db4056026e [I18N] website_sale: Translation to es_PA Spanish (Panama)
Closes #6732
2015-05-29 00:12:38 +02:00
Nicolas Lempereur 52aee9a8e7 [FIX] stock_landed_costs: splitting and decimals
When splitting landed costs against the picking line, the decimal
precision was not taken into account.

For example: with a landed cost of 5.01 split equally over two lines,
the cost for each line is 2.505 which is rounded to 2.51 with a decimal
precision of the fractional part of 2. Hence the total was wrongly of
5.02 (which is an issue when wanted to validate the landed costs).

With this commit, the split landed costs are restrained to stay under
the whole landed cost price.

closes #6882
fixes #5568
opw-639503
2015-05-28 16:37:07 +02:00