Commit Graph
101887 Commits
Author SHA1 Message Date
Khwunchai J a9ea4e7cab [FIX] web_settings_dashboard: Incorrected plural form of "Active Users"
Odoo add the extra letter "s" to the translated word "Active User".
This is caused by adding "s" at the end of the word directly from the template,
which makes no sense in many language.
This prohibits translators from translating the plural form in any language.
The plural form and singular form of "Active User" should be translate
separately.

Fixes #12469
Closes #12470
2016-06-17 10:18:41 +02:00
Nicolas Martinelli 4bb5110926 [FIX] website_livechat: prevent traceback
If no image is defined for the channel, the template rendering will
crash since it will concatenate a string and a boolean.

opw-680938
2016-06-17 10:05:44 +02:00
Ramon Bartl 46867bbbce [CLA] Corporate signature for RIDING BYTES
Closes #11888
2016-06-17 09:36:39 +02:00
Jarmo Kortetjärvi 41da40d49c [CLA] Signature for jarmokortetjarvi
Closes #10997
2016-06-17 09:33:58 +02:00
Telnet Data 4beb1a9f7e [CLA] Corporate signature for Telnet Servizi Srl
Closes #11070
2016-06-17 09:33:58 +02:00
Sharjeel Ali Shaukat 9a20889fd2 [CLA] signature for salishaukat
Closes #11940
2016-06-17 09:33:58 +02:00
Ross Golder 8ca505d6f6 [CLA] Signature for rossigee
Closes #11488
2016-06-17 09:33:58 +02:00
Goffin Simon 225023f1d1 [FIX] account: Wrong "amount_currency" in account move line after reconciliation
Use case:
-enable multi currency (use UDS as company currency and EUR as secondary currency)
-create account account in a different currency (EUR)
-create journal for the bank account in EUR
-create a new tax included tax
-create a new bank statement in EUR journal and add one line
-reconcile
-Choose a counterpart with the included tax and click on reconcile

Before the fix:
After reconciliation the amount_currency for tax and expense were wrong.
You could check this in the journal items linked to the bank statement.

Video:https://youtu.be/678rFb4OE2Q

opw:680693
2016-06-17 09:18:39 +02:00
Damien Bouvy 9c007ac375 [IMP] db_manager: better uuid management
* Always change the uuid of a duplicate database by default
* Clearer message when restoring a backup
2016-06-16 17:29:41 +02:00
Cedric Snauwaert b350ee65a4 [FIX] account: speed optimization of dashboard
when there are too many unreconciled entries, showing dashboard is really slow, switch the computation of unreconciled entries to SQL
2016-06-16 16:44:30 +02:00
Cedric Snauwaert 6b1bff4ee9 [FIX] account: fix condition to create exchange_rate_entries, in some case we don't want to create one
Typically when sum(debit) = sum(credit) and sum(amount_currency) = 0
2016-06-16 16:12:45 +02:00
Nicolas Lempereur f7ec48b6df [FIX] crm: needed _order for group by crm.stage
When grouping result the BaseModel method _read_group_fill_results add
the possible groups which had no result.

But, if the order of the group is not consistent, we can get really
wrong results. The code logic is expecting that the grouped result
gotten and the list of groups (returned by _read_group_stage_ids of
crm.lead) is in the same order.

If the _order attribute of the model is not enough specific (as was the
case in crm.stage) the inconsistent order would kill aggregation values
(displaying 0 instead of what should have been present).

opw-680952
2016-06-16 15:38:27 +02:00
qdp-odoo a59703e652 [FIX] account: on opening of bank statement reconciliation widget, don't make automatic reconciliation if we have only one open invoice but also an unreconciled payment line (blue line) with the same amount 2016-06-16 14:30:20 +02:00
qdp-odoo 26dfe8944d [FIX] account: in bank statement reconciliation widget, searching on a given amount now also return blue lines with that amount (previously it was only looking on payable/receivable lines) 2016-06-16 14:26:46 +02:00
Denis Ledoux 9114d36414 [FIX] account: statement_id write on multiple journal items
Before this revision, this was not possible to write
`statment_id` on multiple journal items at a time,
as the condition:
`if 'statement_id' in vals and self.payment_id:`

required `self` to contains only one record
2016-06-16 12:22:42 +02:00
Goffin Simon 87b46450ec [FIX] account_extra_reports: date format in Partner Ledger
The dates in the Partner Ledger have to be in the date format language
used by the user.

opw:678575
2016-06-16 11:31:06 +02:00
Denis Ledoux fad2dc8ac4 [FIX] account: statement line reconciliation cancel
On the cancelation of a bank statement line
reconciled with journal items created
by the registering a payment, in addition to unbind
the move with the statement line, the statement must be
unbind from the move, and the payment must be reset
to posted.

opw-680128
2016-06-16 10:27:23 +02:00
Nicolas Martinelli ef5dbac529 [FIX] sale: SO name
In v8, the field "Order Reference" was part of the "Import-Compatible
Export" fields. This is not the case anymore in v9 since the field is
always read-only.

The fix uses the same logic than v8: dedine the field as non-readonly
for state "Draft" in the model, but always set it to readonly in the
view.

opw-676095
2016-06-16 09:30:33 +02:00
Stephane Le Cornec ff95ea976d [CLA] Microcom.ca CCLA: Microcom Informatique Inc., Montreal
Closes #12398
2016-06-15 20:24:32 +02:00
Jeremy Kersten 72d03e8fce [FIX] website_portal: check optional field 2016-06-15 17:45:24 +02:00
Nicolas Martinelli 0d19ee989d [FIX] barcodes: manage several barcode widgets
In some cases, several barcode widgets can be found on the same page.
This is for example the case of the stock picking: there is a widget on
the `stock.picking` model (main view) itself, and a widget on the
`stock.pack.operation` model (modal view).

In this case, when the focus is not set directly on the field which
needs to be filled in, both widgets will trigger a `barcode_scanned`
scanned event. This will call the `on_barcode_scanned` Python method
which can lead to errors/warning. For example, the `on_barcode_scanned`
method on the `stock.picking` model raises a warning in case the barcode
scanned does not match any product/package.

The fix is to make sure that the event target is located in the correct
DOM element.

opw-677506
2016-06-15 15:11:41 +02:00
Abhishek Kumar Singh 972efbc0d1 [FIX] doc: typo in install document
Closes #12402
2016-06-15 11:45:03 +02:00
Abhishek Kumar Singh 24b161d816 [CLA] signature for toanant
From #12402
2016-06-15 11:44:10 +02:00
Goffin Simon b7970130e5 [FIX] account_asset: ordered posted depreciation lines
To recompute the depreciation board the last depreciation date must be
taken.

opw:679212
2016-06-15 11:09:45 +02:00
Martin Trigaux 9eac70db35 [FIX] product: do not display state field
The field was removed from the form view at af9d21b3 during a refactoring but
was forgotten in the tree view.
It makes no sense to display a field that the user can not change.

The same field was already invisible on the product.product tree view since
43977de.

Make it invisible instead of removing it to avoid breaking potential xpaths.

Fixes #12418
2016-06-15 09:53:38 +02:00
Christophe Simonis bfbe2d6e6d [MERGE] forward port of branch saas-6 up to df95b1f
The changes in `l10n_es` [1] have been ignored. They will be ported to
the new accouting later.

[1] See 730890f369 and e3e5cfe82c
2016-06-14 19:22:21 +02:00
Christophe Simonis df95b1fc9d [MERGE] forward port of branch 8.0 up to baa4cc0
# Conflicts:
#	addons/account/i18n/bs.po
#	addons/account_analytic_default/i18n/lo.po
#	addons/account_analytic_plans/i18n/lo.po
#	addons/account_bank_statement_extensions/i18n/zh_CN.po
#	addons/account_cancel/i18n/ca.po
#	addons/account_check_writing/i18n/zh_CN.po
#	addons/account_payment/i18n/bs.po
#	addons/account_test/i18n/zh_CN.po
#	addons/analytic/i18n/te.po
#	addons/auth_ldap/i18n/pl.po
#	addons/auth_oauth/i18n/bs.po
#	addons/auth_oauth/i18n/pl.po
#	addons/base_geolocalize/i18n/uk.po
#	addons/base_import/i18n/pl.po
#	addons/base_import_module/i18n/pl.po
#	addons/base_setup/i18n/bs.po
#	addons/claim_from_delivery/i18n/zh_CN.po
#	addons/crm_claim/i18n/zh_CN.po
#	addons/crm_helpdesk/i18n/zh_CN.po
#	addons/crm_partner_assign/i18n/pl.po
#	addons/crm_profiling/i18n/zh_CN.po
#	addons/crm_project_issue/i18n/ca.po
#	addons/email_template/i18n/ca.po
#	addons/email_template/i18n/zh_CN.po
#	addons/event/i18n/da.po
#	addons/event_sale/i18n/da.po
#	addons/google_calendar/i18n/bs.po
#	addons/google_drive/i18n/bs.po
#	addons/hr/i18n/cs.po
#	addons/hr_expense/i18n/sv.po
#	addons/hr_holidays/i18n/pl.po
#	addons/hr_payroll_account/i18n/zh_CN.po
#	addons/hr_recruitment/i18n/ja.po
#	addons/hr_timesheet/i18n/tlh.po
#	addons/hr_timesheet_sheet/i18n/fr.po
#	addons/im_chat/i18n/bs.po
#	addons/im_chat/i18n/da.po
#	addons/im_livechat/i18n/bs.po
#	addons/l10n_be/i18n/pl.po
#	addons/l10n_be_intrastat/i18n/es_DO.po
#	addons/l10n_be_intrastat/i18n/lo.po
#	addons/l10n_be_invoice_bba/i18n/ca.po
#	addons/l10n_be_invoice_bba/i18n/lo.po
#	addons/l10n_eu_service/i18n/mk.po
#	addons/l10n_in_hr_payroll/i18n/zh_CN.po
#	addons/l10n_multilang/i18n/zh_CN.po
#	addons/l10n_th/i18n/zh_CN.po
#	addons/lunch/i18n/bs.po
#	addons/lunch/i18n/pl.po
#	addons/lunch/i18n/sv.po
#	addons/lunch/i18n/th.po
#	addons/marketing/i18n/te.po
#	addons/marketing_campaign/i18n/zh_CN.po
#	addons/marketing_campaign_crm_demo/i18n/pl.po
#	addons/membership/i18n/zh_CN.po
#	addons/mrp_byproduct/i18n/ab.po
#	addons/mrp_repair/i18n/pl.po
#	addons/mrp_repair/i18n/sv.po
#	addons/note/i18n/zh_CN.po
#	addons/pad/i18n/pl.po
#	addons/payment_buckaroo/i18n/pl.po
#	addons/payment_ogone/i18n/pl.po
#	addons/point_of_sale/i18n/bs.po
#	addons/pos_discount/i18n/bs.po
#	addons/pos_restaurant/i18n/bs.po
#	addons/procurement/i18n/ja.po
#	addons/procurement/i18n/sv.po
#	addons/product/i18n/bs.po
#	addons/product_expiry/i18n/hr.po
#	addons/product_expiry/i18n/sv.po
#	addons/product_extended/i18n/sv.po
#	addons/project/i18n/ja.po
#	addons/project_issue/i18n/ja.po
#	addons/project_issue/i18n/zh_CN.po
#	addons/project_issue_sheet/i18n/zh_CN.po
#	addons/purchase/i18n/bs.po
#	addons/purchase/i18n/ja.po
#	addons/purchase/i18n/nb.po
#	addons/purchase/i18n/sv.po
#	addons/report/i18n/fr.po
#	addons/report/i18n/pt_BR.po
#	addons/report_intrastat/i18n/sv.po
#	addons/sale/i18n/bs.po
#	addons/sale/i18n/ja.po
#	addons/sale_crm/i18n/fa.po
#	addons/sale_layout/i18n/zh_CN.po
#	addons/sale_service/i18n/lo.po
#	addons/sales_team/i18n/zh_CN.po
#	addons/stock_account/i18n/ja.po
#	addons/stock_account/i18n/sv.po
#	addons/stock_picking_wave/i18n/lo.po
#	addons/subscription/i18n/zh_CN.po
#	addons/survey/i18n/mk.po
#	addons/survey/i18n/pt_BR.po
#	addons/warning/i18n/lo.po
#	addons/web/i18n/lo.po
#	addons/website_blog/i18n/bs.po
#	addons/website_blog/i18n/ja.po
#	addons/website_crm_partner_assign/i18n/pl.po
#	addons/website_crm_partner_assign/i18n/zh_CN.po
#	addons/website_event/i18n/da.po
#	addons/website_event/i18n/zh_CN.po
#	addons/website_event_sale/i18n/da.po
#	addons/website_event_track/i18n/da.po
#	addons/website_event_track/i18n/ja.po
#	addons/website_event_track/i18n/zh_CN.po
#	addons/website_forum_doc/i18n/zh_CN.po
#	addons/website_hr_recruitment/i18n/da.po
#	addons/website_hr_recruitment/i18n/ja.po
#	addons/website_mail/i18n/fr.po
#	addons/website_mail/i18n/ja.po
#	addons/website_mail_group/i18n/zh_CN.po
#	addons/website_quote/i18n/bs.po
#	addons/website_sale/controllers/main.py
#	addons/website_sale/i18n/bs.po
#	addons/website_sale/i18n/fa.po
#	addons/website_sale_delivery/i18n/zh_CN.po
#	addons/website_sale_options/i18n/lo.po
#	openerp/addons/base/i18n/bs.po
#	openerp/addons/base/i18n/ka.po
2016-06-14 18:53:27 +02:00
Christophe Simonis 66dabf9ba9 [FIX] website_version: register the Tour once the website is read 2016-06-14 18:36:44 +02:00
Simon Lejeune c12c097655 [REV] Packaging: remove "openerp-gevent" from script
This reverts commit a0eb172cab and thus
allow to actually use the longpolling feature.

The commit was made originally to better follow the debian packaging
guidelines.

A better solution will be implemented for v10: removing the `openerp-gevent`
script to replace it with a special argument in `odoo.py`.

There is still a dependency issue as we need psycogreen but this dependency
is not met in debian wheezy. This will be made a hard dependency for v10 as
it is available in debian jessie.

opw 678334
2016-06-14 18:22:18 +02:00
Denis Ledoux 5d774f4221 [FIX] account: statement line reconciliation cancel
Cancelling a statement line should not remove the
according journal items if they are associated
to an `account.payment`.

In this case, this should simply remove
the `statement_id` of the move lines,
and unmark the `account.payment` as
reconciled.

opw-674896
2016-06-14 17:54:13 +02:00
Simon Leblanc baa4cc0e97 Backport of ec005af5 to 8.0
[FIX] anonymization: default anonymization fields

res_partner.name was twice : remove one
res_users.name doesn't exist (now, it use the partner name) : remove
remove training.* fields that do not exists

Closes #11806
2016-06-14 15:52:18 +02:00
Simon Leblanc 7db7b2dd6a Backport of 45483b96 to 8.0
[FIX] anonymization: allow anonymization on HTML fields

Was missing in the (old) list of fields
2016-06-14 15:51:46 +02:00
Simon Leblanc dedbcce762 Backport of 42aa79d6 to 8.0
[CLA] Sign CLA of leblanc-simon

Done at #11806
2016-06-14 15:51:08 +02:00
Goffin Simon ff1845bf86 [FIX] website_sale: price_tax and amount_tax in confirmation page
All the information about the taxes must be displayed in the  confirmation page.

opw:679316
2016-06-14 15:36:31 +02:00
Patrik Lermon 01a81b975b [FIX] base: position of SEK currency after amount
Source: http://lh.2xlibre.net/locale/sv_SE/ (p_cs_precedes)

Closes #12414, related to #12350
2016-06-14 14:23:30 +02:00
Richard Mathot 54cf8d0ce7 [FIX] account_voucher: allow the web client to catch the warning instead of returning the whole traceback
Actually, it was a Python ``Warning`` exception that was returned, and
not an ``openerp.exceptions.Warning``, that is an alias of ``openerp.exceptions.UserError``.
2016-06-14 14:12:37 +02:00
Martin Trigaux 0ec664d1a7 [FIX] web: close popup after backup
All actions of the database manager redirect the user after an action except the
backup option which returns an octet stream.
Close the modal after form submission to mimic the same behaviour.

Do not close the modal for other actions than database manager to avoid waiting
time for create that may be long to process.

Add message to warn the user about backup waiting time after cliking on submit
to be less confusing for big databases that may take a lot of time to be ready.

Fixes #10803
2016-06-14 13:42:14 +02:00
Nicolas Martinelli e0c4ec54ca [FIX] web: new record on editable list
On an editable list view, an issue occurs with the following procedure:
- Click "Add an item", write something
- Press "Enter" key --> a new item is added, write something
- Click outside of the list, then click on the last item created
- Press "Enter" key --> the cursor is set at the beginning of the list

This is an issue for two reasons. First, the behavior is not the same if
we have clicked outside of the list before pressing "Enter", which is
not logical. Then, in some undetermined cases, the focus can be lost
then retrieved on the last record. It means that suddenly, the cursor
goes back at the beginning of the list without notice.

The latter issue is problematic when batch-encoding data, for example
encoding the lot numbers of incoming products thanks to a scanner.

opw-680758
2016-06-14 12:39:11 +02:00
Olivier Dony 285deb9a14 [FIX] base_import: handle other cases of wrong CVS mime types
Improves 8049d1e855 for other detected
cases, e.g. on Firefox + OSX.

opw-680347
2016-06-14 12:35:59 +02:00
Denis Ledoux 811771d3f8 [FIX] account_voucher: get_product_accounts expects a browse record
The method `get_products_accounts` obviously requires
a fiscal position browse record for its `fiscal_pos` parameter:

```
    @api.multi
    def get_product_accounts(self, fiscal_pos=None):
        accounts = self._get_product_accounts()
        if not fiscal_pos:
            fiscal_pos = self.env['account.fiscal.position']
        return fiscal_pos.map_accounts(accounts)
```

But the method `product_id_change` called it with a fiscal
position id, through its own class method `_get_account`

This probably happened during the merge at revision
75d7bbb46e

which has not been correctly rebased on the acounting 9.0
revision
c04065abd8

opw-678735
2016-06-14 12:21:27 +02:00
Damien Bouvy 87717509c0 [FIX] website_payment: fetch default provider + render issue
* Fixes a bug that prevented the system to fetch the default provider
because the default_get call was wrong (wrong model + missing
company_id kwarg)
* Displays the amount as a monetary widget (to do that, the amount
must be sent as a float in the controller)
* Display the acquirer 'pre_msg' field to display eventual fees
2016-06-14 08:53:41 +02:00
Olivier Dony 0f5f960c60 [FIX] payment: render acquirer form values even if partner is missing
When no `partner_id` was passed to `render()` and the acquirer
had a fees computation method, (e.g. Paypal), it would crash.
Could happen when coming through the /website_payment/pay
controller, for instance.
2016-06-13 19:21:02 +02:00
Denis Ledoux c95e46eedb [FIX] account: invoice reset to draft when the default report is removed
When the report `account.report_invoice` was being deleted,
it was no longer possible to reset an invoice to draft.

This is related to revision
291561a197
2016-06-13 19:00:03 +02:00
Denis Ledoux 2d47ea2563 [FIX] link_tracker: page title encoding
When tracking a page with special characters
in the title (e.g. `Ä`), the title
of the page in the tracked links was
badly encoded, because the
encoding was not handled correctly
when parsing the given website page.

opw-679993
2016-06-13 17:30:59 +02:00
Denis Ledoux 3b4560cf42 [FIX] account: multiple journal items to fix in full batch reconciling
In a batch reconciliation of journal items,
it could happen that multiple journal items
in a foreign currency required the creation
of an exchange entry
`aml_to_balance_currency |= aml`

But the statement `aml.matched_debit_ids[0] or aml.matched_credit_ids[0]`
requires a single browse record (singleton) to work

The partial  reconciliation is supposed to be the same for all
the journal items to fix, we can therefore safely do
`aml = aml_to_balance_currency[0]` to overcome this issue.

In addition, in this condition, the full reconcile must be
skipped to avoid passing multiple times in the `create_exchange_rate_entry`
method (which is called in the method `create` of `account.partial.reconcile`

This has been reviewed by qdp.

opw-680044
2016-06-13 17:20:48 +02:00
Simon Leblanc ec005af5b9 [FIX] anonymization: default anonymization fields
res_partner.name was twice : remove one
res_users.name doesn't exist (now, it use the partner name) : remove
remove training.* fields that do not exists

Closes #11806
2016-06-13 17:09:02 +02:00
Simon Leblanc 45483b963e [FIX] anonymization: allow anonymization on HTML fields
Was missing in the (old) list of fields
2016-06-13 17:09:02 +02:00
Simon Leblanc 42aa79d63f [CLA] Sign CLA of leblanc-simon
Done at #11806
2016-06-13 17:09:02 +02:00
Goffin Simon 96621a3427 [FIX] account: deleting a default tax(ir.values)
When a chart of account is created, ir.values for the fields taxes_id
and supplier_taxes_id in the model 'product.template' are created.
But if one of this two taxes are deleted, there was a crash when
creating a new product template because the default tax was missing.

opw:680576
2016-06-13 17:00:16 +02:00
Goffin Simon 67a9ea20d8 [FIX] crm: force view_id in window action
When clicking on "Your Pipeline" in Sale app and clicking afterwards
on an opportunity, the form view "crm.crm_case_form_view_oppor".
But if you refreshed, the form view of a lead was used.

opw:677962
2016-06-13 15:45:59 +02:00