Commit Graph
106638 Commits
Author SHA1 Message Date
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
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
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
Aleš Ferlan 331f4c7e1e [FIX] l10n_si: adapt after taxes raise
Taxes in Slovenia were raised from 8.5% to 9.5% and 20% to 22%

Closes #13397
2016-12-09 12:02:31 +01:00
Aleš Ferlan 9b36f3f6ad [CLA] corporate signature for GoOpen
cf #13397
2016-12-09 12:02:31 +01:00
app d6ead3dbe0 [FIX] base: show attachments of archives records
When testing the access rights, attachments associated with
archived/inactive records are inadvertently being hidden due to
the default ORM behavior of search.

Patch simplified while merging.

Closes #14366
2016-12-09 11:51:21 +01:00
Martin Trigaux d29c40e1e1 [FIX] payment_paypal: avoid crash in validation without reference
When `paypal_validate_data` is called without any reference, `tx` is None.
Before the migration, it was catched by a `tx and tx.acquired_id` but it is no
longer the case.

Introduced at f1ac1b12

Fixes #13834
2016-12-09 10:47:51 +01:00
Raphael Collet 5593d2c89b [FIX] fields: detect recursively computed fields when computed together
When several fields are computed together, if one of them depends on another,
all the given fields must be considered recursive.
2016-12-09 09:40:59 +01:00
Raphael Collet a3f2b8937a [FIX] fields: computed fields with some erroneous records
When computing a field on a recordset with erroneous records in the
middle, the field is invalidated for some records of the recordset.

OPW 697059
2016-12-09 09:40:31 +01:00
Nicolas Martinelli b27787c92c [FIX] payment_authorize: reconcile transaction
- Create a SO, link it to a Quotation Template (e.g. "Odoo Monthly" from
  the demo data). Note that the Quotation Template must require a
  payment.
- Click on "Preview", then "Accept & Pay" in the website quote
- Pay with Authorize.net
- In the Subscription linked to the SO, change the invoice date to a
  date in the past (so it will generate an invoice)
- Execute manually the Scheduled Action "Generate Recurring Invoices and
  Payments for Subscription Contracts"

The payment is correctly registered on Authorize (you should receive a
confirmation email), but:
- No invoice is generated
- The next invoice date has not been changed

The issue comes from the fact that:
- `payment_authorize` executes the callback method
  `reconcile_pending_transaction` before changing the status of the
  transaction.
- The method `reconcile_pending_transaction` cancels and unlinks the
  invoice if the transaction is not 'done' or 'authorized'.

In order to solve the issue, two fixes are necessary:
- Switch the status update with the callback (this commit), as it is
  already the case for Ogone and Stripe.
- Do not manually call `reconcile_pending_transaction`, since it is
  already executed as callback. This avoids two increments of the period
  (commit in Enterprise).

opw-694730
2016-12-09 09:14:48 +01:00
Nicolas Martinelli b64ac1f454 [FIX] website_sale, website_portal_sale: SO auto-confirm
1. Setup authorize.net acquirer
     Published on website
     Order Confirmation: capture manually
     Store card: always
2. Buy something on the store => SO gets confirmed
3. Buy again but select the saved card
4. You get a confirmation screen on the website, but the SO is not
   actually confirmed in the backend (but it should)

The issue is that the confirmation of the SO is located in the
`form_feedback` method. When paying with a saved credit card, there is
no form filled in since we use a S2S transaction. Therefore, the method
is never called, and the SO never confirmed.

Fixes #14007
opw-693517
2016-12-09 08:49:36 +01:00
Christophe Simonis f4ad09b30e [FIX] report: correct pot file 2016-12-08 14:52:34 +01:00
Christophe Simonis 70193f23dc [MERGE] forward port branch 9.0 up to 154a125 2016-12-08 13:55:40 +01:00
Christophe Simonis 154a125017 [FIX] crm: Use an address that google knows of.
Needed for geo localisation tests.
2016-12-08 13:08:33 +01:00
Christophe Simonis 1568c81269 [MERGE] forward port branch saas-6 up to da5d628 2016-12-08 12:27:18 +01:00
Christophe Simonis da5d628911 [MERGE] forward port branch 8.0 up to d16d1c6 2016-12-08 12:14:40 +01:00
baimo d16d1c6d9f [FIX] web_gantt: translate "Gantt View" term
Closes #13328
2016-12-08 10:43:28 +01:00
Yenthe V.G 63d230b007 [IMP] Remove old people from license
Closes #14647
2016-12-08 10:20:40 +01:00
Denis Ledoux f5f55b2289 [FIX] barcodes: compatibility of new Event() for IE >= 9.0
Using the constructor `new Event()` is not supported in IE >= 9.0
(tested on IE 11). It raises the below error:
`Object doesn't support this action`

This revision implements the Polyfill `CustomEvent()` suggested
by the MDN here:
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
and uses it if the `new Event()` call fails.

opw-690984
2016-12-07 18:13:43 +01:00
Goffin Simon 25dd22c3a8 [FIX] stock: Customer address in delivery slip report
When printing the delivery slip in dropshipping, the displayed address in the
delivery slip report must be the address of the customer. Inspired from report.picking

opw:695865
2016-12-07 16:46:00 +01:00
Denis Ledoux 82a07d1072 [FIX] sale: fix company_id assignment on order line creation
Due to the following revision:
456d7b38f1

The company on the order line was not assigned
when creating a new line in an existing sale order.

The company was correctly assigned when you created
the order line with the order, and when changing the company
of the order, but not when adding a new line on an existing order.

This new trigger repairs this regression.
2016-12-07 16:33:18 +01:00
Denis Ledoux 36c6edf4bc [FIX] product: fix company_id assignment on pricelist version & items creation
Due to the following revision:
295b96c0b3

The company on the version and items was not assigned
when creating a new pricelist version on an existing
pricelist.

They were if you changed the company of the pricelist,
thanks to the triggers added in the above revision,
but not when they have just been created in the pricelist.

These new triggers repairs this regression. It also handle
changing the `pricelist_id` of a version (this is doable through
the "Sales > Configuration > Pricelists > Pricelist Versions" menu).

Fixes #14631
2016-12-07 16:26:11 +01:00
Jeremy Kersten 7d968116bd [FIX] base_geolocalize, website_crm_partner_assign: geolocalize fallback on city
If the street cannot be localized, we retry with only the city.
2016-12-07 16:03:29 +01:00
Jeremy Kersten d3ea014f56 [FIX] website_crm_partner_assign: avoid double click on button
Disable the button at first click to avoid concurrent update when the
user press several time the same button before the end of the first request.

Replace tab by space indentation
Clean unused variable
2016-12-07 15:48:20 +01:00
jl2035 6eaa8f351f [FIX] l10n_si: update oiutdated taxes
Slovenian law has changed and taxes are now 9.5% and 22% instead of 8.0 and
20%.

Closes #14505
2016-12-08 15:42:48 +01:00
jl2035 e24e72fd38 [CLA] signature for jl2035
cf #14505
2016-12-08 15:42:37 +01:00
Balázs Palcsó 2524f01f0b [REM] l10n_hu: remove accounts not valid since beginning of 2016
Closes #14596
2016-12-08 13:30:52 +01:00
Simon Lejeune e433625cfb [FIX] qweb: render of a primary view
Revisions [1] and [2] broke the rendering of extensions-primary view
because it made the wrong assumption that the `read_template` of an
extension-primary view set the `t-name` attribute to the name of the
extension-primary view.

We now patch the `t-name` in the `read_template` result for this case.
[1] 12e36a66f2
[2] 9dd5bd9349
2016-12-08 11:49:06 +01:00
Raphael Collet b62d078c9d [FIX] models: identify sparse fields with field.sparse 2016-12-08 11:08:01 +01:00
Nicolas Martinelli 41c43cdd37 [FIX] mrp: hide Gantt view
The Gantt view should not be displayed for MO, only for WO.
2016-12-08 10:53:11 +01:00
Géry Debongnie 44c1fa7138 [FIX] web: prevent crash in line chart with 1 record
Since commit 8625242884, the graph view crashed when
displaying a line chart with only one record.  The reason is that the
method display_line can return undefined (if no line chart can be
displayed).  In that case, there is no reasy to try to display its
tooltip.

This commit simply protect against the case where it is undefined.
2016-12-08 10:11:24 +01:00
Nicolas Martinelli 2ab85a0783 [FIX] hr_payroll: hidden lines
The domain on the "Payslip Lines" has several consequences:
- Lines are duplicated every time the user clicks on "Compute Sheet"
- Contribution registers that have data are not computed because they
  are not visible
- Hidden payslip lines don't go onto accounting entry

We remove the domain, since the purpose of it is to hide the lines in
the payslip of the employee, not hide them in the backend.

Closes #13926
Fixes #13925
Fixes #13987
opw-694011
2016-12-08 09:07:53 +01:00
Lucas Perais (lpe) 85160f8da2 [FIX] hr_holidays: This commit corrects the behavior of holidays validation
When allocating holidays to an empty tag (or category), double validation doesn't crash anymore, though it does nothing

Closes #14591
OPW #694748
2016-12-08 08:50:27 +01:00
Alexis de Lattre 6665526ccc [IMP] l10n_fr: add some more accounts as well as a model to be used in the bank reconciliation widget. Courtesy of Alexis de Lattre <alexis.delattre@akretion.com> 2016-12-07 16:50:06 +01:00
Nicolas Martinelli e3ee78c7ef [FIX] mrp: start date
The start date of a manufacturing order is never set. One consequence is
that the Gantt view, which relies on this field, is never populated.

opw-693743
2016-12-07 15:50:31 +01:00