Commit Graph
106913 Commits
Author SHA1 Message Date
qdp-odoo ee2c76a431 [IMP] account: define the m2m relation between bank statement lines and account.move.line instead of account.move
This is needed in order to support use cases where we have several account.move.line on an account_id of internal_type 'bank' inside a single account.move. Indeed, each journal item should be linked to a bank statement line in order to disappear from the bank reconciliation widget and, previously, setting the reference to the second bank statement line was removing the first as both info had to be filled in a single m2o. OPW: 696842
2016-12-20 14:43:03 +01:00
lpe cdcdebc6cb [IMP] point_of_sale: Added on what base price a tax is applied in sale details report
Closes #14358
2016-12-19 08:57:23 +01:00
Fabien Pinckaers 944c13a548 [IMP] project: priority -> starred, search on starred tasks 2016-12-17 14:49:18 +01:00
Dhawal Limbuwala c52350cf21 [REF] hr: typo
"HR" is consistently used in Odoo, instead of "Hr".
2016-12-15 17:05:39 +01:00
Martin Trigaux 4005ceffa7 [FIX] account: bad label
Frenchiglisation of labels
2016-12-15 11:56:44 +01:00
fwi-odoo 7cb865fab8 [IMP] web_editor: avoid loading translation in the backend twice 2016-12-15 11:23:46 +01:00
fwi-odoo 34b7fd833c [IMP] web: allow mentioning people right after inviting them
Before this commit, the list of channel members is fetched once, and never reloaded.
So, when a new member is invited, he cannot be mentionned by the autocompletion.
With this commit, we remove the 'members_deferred' from the channel,
which will cause the member list to be refetched next time it is needed.
2016-12-15 11:15:04 +01:00
Yannick Tivisse 168908656d [MOV] report: move paperformat from account_batch_deposit
It is used in mrp_account, but the module doesn't depend on account_batch_deposit
2016-12-14 16:03:28 +01:00
Raphael Collet 6fa2167247 [IMP] stock: remove _parent_store=True from model stock.quant.package
The model does not actually need this feature, as the hierarchies of packages
are not expected to be deep.  Performance wise, updating columns `parent_left`
and `parent_right` may actually suffer from concurrent updates that require
retrying requests.
2016-12-13 12:59:26 +01:00
cst-odoo 9a777f315e [IMP] resource: Improve time_efficiency help tooltip
Rewrote help tooltip to improve English and clarity.

Closes #14696
2016-12-13 10:04:37 +01:00
Christophe Simonis 5f945a5fc5 Revert "[IMP] product,purchase: Make the vendor price configurable on the variants too."
This reverts commit d5c24abee5 which is
broken since e945b86d5a but hasn't been
noticed due to non-validation of views (fixed by fe02b79a65).
2016-12-12 14:34:35 +01:00
Christophe Simonis 8a808d1703 [MERGE] forward port branch 10.0 up to 8094970 2016-12-11 10:57:39 +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 c292202a47 [MERGE] forward port branch 10.0 up to 18456b9 2016-12-09 15:58:39 +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
David Tran bee407d8d7 [IMP] crm: improve crm opportunity report extendability
split SQL query inside the init method of the model
'crm.opportunity.report' into multiple methods (i.e.
_select, _from, _join, _where, _group_by) to bring ease for other
modules to inherit

Closes #14568
2016-12-09 13:59:00 +01:00
Fabien Pinckaers eff9045741 [iMP] mass_mailing: adding color or kanban views 2016-12-09 13:37:12 +01:00
Fabien Pinckaers b17029cf5d [IMP] mass_mailing: better CSS padding on kanban views 2016-12-09 13:30:11 +01:00
Fabien Pinckaers 5ab390c444 [IMP] mass_mailing: default kanban view non grouped (as there is only 2 columns really used 2016-12-09 13:27:06 +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
Patrik Lermon f61dc8451e [IMP] doc: update guidelines.rst
Typo
Closes #14652
2016-12-09 09:29:42 +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