Commit Graph
106670 Commits
Author SHA1 Message Date
Christophe Simonis 10778d4521 [FIX] hr: do not notify user when assigned to employee 2016-12-15 13:23:36 +01:00
Martin Trigaux b792c05cb5 [I18N] refund in fr and fr_BE
Avoir in France
Note de crédit in Belgium
2016-12-15 11:52:46 +01:00
Goffin Simon 49eb6176c2 [FIX] mrp: manufacturing manager can unbuild an order
A manufacturing manager can unbuild an order without being an inventory manager.

The action unbuild only appears when the user is manufacturing manager.

opw:695734
2016-12-15 09:59:31 +01:00
Raphael Collet 7d19661fb6 [FIX] models: allow @constrains on fields with inverse method 2016-12-15 09:53:58 +01:00
David Tran f4cd8af0c8 [FIX] crm: multilingual support for crm planner stages
translation method _t() added into web_planner_crm.js

Closes #12809
2016-12-14 14:47:13 +01:00
Christophe Simonis 1a46fd4968 [MERGE] forward port branch saas-11 up to 995a58cc4b 2016-12-14 14:10:48 +01:00
Christophe Simonis 995a58cc4b [MERGE] forward port branch 9.0 up to a9a7fe15b3 2016-12-14 13:46:11 +01:00
Christophe Simonis a9a7fe15b3 [MERGE] forward port branch saas-6 up to e25629510c 2016-12-14 13:33:32 +01:00
Christophe Simonis e25629510c [MERGE] forward port branch 8.0 up to 73e5c82037 2016-12-14 13:07:24 +01:00
Richard Mathot aaf2e96b0a [FIX] membership: bad forward port of aac0faafb8 in 9.0 2016-12-14 12:23:07 +01:00
Goffin Simon 169b396c3f [FIX] product: Persistant order on product variant
The order of variants(product.product) is (re)defined each time  the attributes
of a product.template are modified. The order of these variants is computed according
to the order defined on "product.product" which is ordered by 'default_code,name_template'
and also the sequence of the product.attribute.value.
But when a new product.attribute is created, the default sequence is the order of creation of your new values.
So if the sequence of the attributes is changed after modifying the product.template, the new sequence will not
have any impact on the order of the variants. The sequence of the attributes must be defined first
before modifying the attributes on a product.template to have an impact on it.

opw:693135
2016-12-14 11:53:34 +01:00
Pere Albujer 73e5c82037 [FIX] point_of_sale: increase total's table size
Was taking the right half of the ticket only and may be too small to display the full amounts (currency symbol cropped in some languages)

Closes #14702
2016-12-14 11:07:56 +01:00
Alexis de Lattre 0df9a6cc2a [FIX] sale,purchase: Add currency symbol in tree view
In invisible to make the 'monetary' widget work.
Makes sense as it is the same behaviour as the form view where the currency is displayed on monetary fields, even if the use has no multicurrency acces.

Closes #14714
2016-12-14 10:42:29 +01:00
Jérome Maes 951d63daf3 [FIX] website_crm_partner_assign: bad jquery binding 2016-12-14 09:12:35 +01:00
Nicolas Lempereur f1973fa0a7 Revert "[FIX] purchase: update order_lines date_planned"
This reverts commit dcf50bf242.

The commit should not have been forward-ported after 9.0 since
Model update method has been @api.multi'ed.

This also introduced an issue since changing the first line would
change the date_planned of the order (which would alter subesquent
updates).

opw-697680
2016-12-14 08:43:46 +01:00
Nicolas Lempereur 2d0ff8afa4 [FIX] purchase: set all dates and not-stored field (9.0 only)
The feature "set all date to all order line" on a purchase order allow
user to update the schedulded date of all order lines.

It was backported in 9.0 with 401a3cfa but in 9.0 date_planned was not
stored, the button would wrongly set the scheduled dates of the lines to
the minimum date.

With this commit the functionality should work as expected, unless
someone use an out-of-date template in which case the functionnality is
disabled.

opw-697680

note: PO date_planned is stored after 9.0 so this commit must not be
forward-ported.
2016-12-14 07:41:01 +01:00
Julien Laloux d543bb3106 [FIX] account_test: add missing _
The translation function `_` was missing while it was present in the content (e.g. account_test_01)

Closes #10403
2016-12-13 16:15:20 +01:00
Thibault Delavallée 03ac47b9d7 [FIX] mail: customers should not follow default internal subtypes
Currently when someone is added as follow to a document default subtypes
are computed if no specific subtypes are given to the subscription. However
if internal subtypes are set as default those are added to all new
followers. It should take into account customers and shared users and avoid
adding them internal subtypes.

Customers and shared users are not notified of messages using an internal
subtype. So currently there is no information leak. However with this fix
we ensure internal subtypes are not followed by external people even if
no notification is created.
2016-12-13 12:57:58 +01:00
Pratima Gupta 8942a73fb3 [FIX]: website_quote: translating quote_description
Steps to reproduce:

-Install website_quote
-Add a language French
-Create a quotation template
-Add a line with a new prodcut
-Translate the field description

Bug: Traceback becasue the field quote_description was not translatable.

opw:697508
2016-12-13 12:32:38 +01:00
Nils Hamerlinck 73b18964ea [FIX] pos_restaurant: Allow more complex URL schemes for printers
For example: https://abc.def:8080
It is already allowed for the printer in main point_of_sale module.
Apply the same schemes in pos_restaurant.

Closes #13769
2016-12-13 12:04:27 +01:00
Moises Lopez - https://www.vauxoo.com/ c349e9a8f8 [FIX] stock: Add missing context to search
Closes #13636
2016-12-13 11:46:47 +01:00
Nils Hamerlinck d1eca511a8 [FIX] stock: keep prefixes of consistency
When renaming a warehouse, the sequence are renamed.
Previous sequences uses slashes while the new one backslashes.
Keep consistency between sequence from origin and new one.

Closes #13774
2016-12-13 11:39:56 +01:00
Juan Carlos del Valle 3ea8958014 [FIX] hr_expenses: add missing tax_ids
* ccd6fc6 already fixed the bug of the account move for expenses with more than 1 taxes but the taxes were not used.
Adding in `_prepare_move_line` to be included in the created move line.

* added Contributor License Agreement

Closes #12849
2016-12-13 11:21:43 +01:00
Lucas Perais (lpe) 438247f1f4 [FIX] account: Nicely warn the user that no sequence is set when refund_sequence is True.
Avoid a traceback when the refund_sequence is not set

Closes #14666
OPW #697292
2016-12-13 10:28:25 +01:00
Goffin Simon ea021ff17a [FIX] account: taxes with analytic account
The account move line created for a tax must have the right account_analytic_id
according CONDITION.

CONDITION(inspired from function compute defined on model "account.invoice.tax")

if the tax is for an "in_invoice" or an "out_invoice" => tax_code = 'tax_code_id'
=> the account_analytic_id of the tax must be set to 'account_analytic_collected_id'

if the tax is for an "out_refund" or an "in_refund" => tax_code = 'ref_tax_code_id'
=> the account_analytic_id of the tax must be set to 'account_analytic_paid_id'

note:forward-port upto saas-6

opw:694821
2016-12-13 10:10:35 +01:00
Olivier Dony 8d09f86c1f [FIX] account: drop view before (re)creating it 2016-12-12 23:34:58 +01:00
Denis Ledoux 487c612f0c [FIX] web, orm: allow 0 as key for selection fields
Before this revision,
using a selection field with as possible keys `0`,
such as `require_payment` in `website_quote`,
resulted to the records field values to be stored
as `NULL` instead of `0` in the database.

This leads to the inability:
 - To distinguish records with this selection field not set
   or set to `0` (as both are stored as `NULL`)
 - To search for records with the field set to `0`
   (as they are considered not set)

For instance, while having `website_quote` installed,
search for sales orders with `Payment` set to
`Not mandatory on website quote validation`: It won't
return any result, even if you have some.

opw-697454
2016-12-12 18:18:51 +01:00
Damien Bouvy 400a152b91 [FIX] website_quote: stop rebrowsing with ctx in an onchange
Rebrowsing the 'self' record during an onchange loses all
the modifications currently being 'onchanged' and
therefore kills the feature.
2016-12-12 17:43:59 +01:00
Alexis de Lattre 5da4df8092 [FIX] mrp,stock: use correct product filter
filter 'products' doesn't exist on product.template, it is named 'consumable'
rename 'search_default_products' to 'search_default_consumable' in actions

Closes #14690
2016-12-12 15:57:29 +01:00
Goffin Simon 731cf476b2 [FIX] account: taxes with analytic account
The account move line created for a tax(with analytic = True) must have
the same account_analytic_id than the account move line created for the
taxed amount.

opw:694821
2016-12-12 15:02:56 +01:00
Martin Trigaux a9b0af7dd5 [FIX] account: incorrect report parameter
self.ids is empty (and is the ids of the report, not the partner)

Fixes #14663
2016-12-12 14:45:58 +01:00
Goffin Simon 03bc8c5f9a [FIX] mrp: Mrp manager can create unbuild orders
A mrp manager has the rights to create unbuild orders.

opw:695734
2016-12-12 09:37:22 +01:00
Kinalem 8ac6670128 [IMP] l10n_hn: update author information
Trigluu don't exist anymore since 2014
Closes #14658
2016-12-12 09:06:35 +01:00
salvatoretrimarchi c7f67cea31 [CLA] signature for salvatorrimarchi
Closes #14659
2016-12-12 09:03:09 +01:00
Christophe Simonis 8094970df1 [FIX] fields: also protect computation of draft record fields 2016-12-11 10:24:29 +01:00
Odoo Translation Bot f5adc1ade0 [I18N] Update translation terms from Transifex 2016-12-11 03:43:27 +01:00
Odoo Translation Bot 72a4229130 [I18N] Update translation terms from Transifex 2016-12-11 02:58:13 +01:00
Odoo Translation Bot 5b39b8b1db [I18N] Update translation terms from Transifex 2016-12-11 00:33:19 +01:00
Denis Ledoux 97e5da5e2a [FIX] website_links: adapt countries pie chart height
With a high number of countries,
the pie chart was partially hidden.

We adapt the svh height according to the number
of country to display.

opw-691941
2016-12-09 17:42:25 +01:00
Christophe Simonis 18456b9d42 [MERGE] forward port branch saas-11 up to 321b7dc 2016-12-09 15:44:01 +01:00
Nicolas Lempereur f8db92e278 [IMP] stock_account: anglo-saxon stock input->expense->default
Before this commit, in anglo-saxon accounting the account of a
vendor's bill line was defined as the stock input account, or the
default account.

With this commit the chain becomes:

- if one: stock input account,
- else if one: expense account,
- else: default account

opw-695167
2016-12-09 15:32:18 +01:00
Christophe Simonis 321b7dc5b6 [MERGE] forward port branch 9.0 up to 9c8422a 2016-12-09 15:09:36 +01:00
Christophe Simonis 9c8422a405 [MERGE] forward port branch saas-6 up to 75e7f0d 2016-12-09 15:07:00 +01:00
Christophe Simonis 75e7f0da10 [MERGE] forward port branch 8.0 up to 5ece76b 2016-12-09 15:04:42 +01:00
Martin Trigaux cb7517f7e5 [CLA] merge duplicated signature file
Case mismatch
2016-12-09 14:43:06 +01:00
Cristian Moncho 5ece76b717 [FIX] project: remove redundant context declaration
Declaring the keyword argument `context` in an API v7 `orm.browse_record` can
lead to mixed API v7/v8 inheritance bugs (`context` will be treated as a
function parameter instead of being injected in `self.env.context`). As the
context is already propagated in line 953, we can safely remove it from line
971.

Closes #13115
2016-12-09 14:37:21 +01:00
sergiov 4792a669d3 [FIX] auth_signup: display full error message
When the user name entered hasn't an email specified the error message wasn't
displayed in the reset view.
The error message was in e.name, not e.message
2016-12-09 14:32:16 +01:00
sergiov 85dc060a06 [CLA] signature for Sergio2409
cf #13960
2016-12-09 14:28:15 +01:00
Eric Antones e191b5af6e [FIX] website_sale: sort by literal not detected for translation
There are literals inside a t tag that should be translated but they are never
exported to the pot file because they are inside a t-value attribute as python
code.

Closes #14344
2016-12-09 14:09:38 +01:00
Nhomar Hernandez 9a0e3a11db [IMP] l10n_mx: Completely refactored Mexican CoA Template. Courtesy of Vauxoo.
* Added accounts provided following the structure provided by the SAT
this accounts are only the minimal necessary ones, with the objective
to set the first easiest engagement to new users and tags will represent the actual information
from the document linked.

* The name of the tag is the concatenation of tag.code + tag.name, because the account.tag
model have not the code field.

Note: we will need more accounts but some of them for special operations
which are not basic at all, then it is better just propose the operational accounts
once we understand a proper closing process.

* Set the proper user-types on accounts in order to be able to use it with the official reports this CoA
for operational purpose.

* Added nature field and data in tags to allow set this value in electronic account report, and
set this value with data pre loaded, we did not use user.type for this due to the fact that the same user type can have different nature (if it grows for credit or debit), I do not know if this field brakes the stable rule we can discuse about that.

* Assign the account tags with in the Mexican CoA template installation, and with an onchange(account.code) when manually modifying/creating accounts.

Rationale: If the code of the accounts follows the pattern 111.00.00 or 111-00-00 then it will
set the tag 111.00 if the tag exists, if not then this will be ignored.

* Generate an account tag by each second level account in SAT catalog, and assign to the corresponding account.
2016-12-09 13:59:09 +01:00