Commit Graph
101649 Commits
Author SHA1 Message Date
Christophe Simonis eb443410ff [MERGE] forward port of branch 9.0 up to afba8ce 2016-04-12 11:12:57 +02:00
Goffin Simon afba8cec23 [FIX] account: partner_id field in account.move
From 94ed4ce8c8

The original issue is the following:
- Go to the journal item creation
- Choose a partner
- Add a line => the partner on the journal item is removed

This is because `partner_id` on the account move is a related to
`partner_id` on the account move lines. This is likely to cause errors
during the manual encoding of a journal item, since the relation will
link the partner of the account move to the partner of the first account
move line only.

opw:672354
2016-04-12 10:54:37 +02:00
Goffin Simon 0dbdbf136e [FIX] website_quote: onchange for product with sale.quote.option
The on_change_product_id defined for sale.quote.option has been removed
in the form view.

opw:673285
2016-04-12 10:38:31 +02:00
qdp-odoo 67c444bb38 [FIX] account: Don't create journals several times with hierarchical account charts. Courtesy of pedrobaeza. PR #11491 2016-04-11 18:18:12 +02:00
qdp-odoo b2a321a878 [FIX] account: Find correctly taxes when using hierarchical charts of accounts. Courtesy of pedrobaeza. PR #11493 2016-04-11 18:18:12 +02:00
qdp-odoo 9807ff8a91 [FIX] account: Financial Report not sorted the right way. Courtesy of be-cloud-js. PR #11485 2016-04-11 18:18:12 +02:00
Denis Ledoux 5089cb8599 [FIX] hr_timesheet_sheet: exclude unactive accounts in weekly timesheets
This is related to revision f6d6762dc7

opw-674296
2016-04-11 18:09:10 +02:00
qsm-odoo b338ae0153 [FIX] web: do not wrap numbers on multiple lines
In languages where the thousands separator is a space, numbers could
be wrapped over multiple lines.
2016-04-11 15:54:50 +02:00
Christophe Simonis 87d160a742 [FIX] models: partial loading of manual fields
Related and function manual fields may not be loadable during initial
setup (partial=True) due to dependencies being not loaded. Ignore
theses fields during partial loading.
2016-04-11 14:52:42 +02:00
Olivier Dony a445fc996b [MERGE] Forward-port saas-6 up to edf81b54b5 2016-04-11 14:38:53 +02:00
Olivier Dony edf81b54b5 [MERGE] Forward-port 8.0 up to bf163700e4 2016-04-11 14:35:49 +02:00
Olivier Dony bf163700e4 [MERGE] Forward-port 7.0 up to 38905d686f 2016-04-11 14:23:02 +02:00
Olivier Dony 38905d686f [FIX] res.partner: relax condition in 3ab436fb7b
Users may sometimes need to edit their own partner records directly,
although indirect access by writing on `res.users` directly works
fine in most cases.
2016-04-11 13:33:49 +02:00
Denis Ledoux 7f571f0852 [FIX] crm_partner_assign: avoid report view deletion
The SQL view `crm_partner_report_assign`
makes a join on `account_invoice_report`

A column is added to
`account_invoice_report` in the module
`sale` (`section_id` is added to the view),
making the SQL view `account_invoice_report`
replaced automatically at the install/update
of the `sale` module, which leads
to the automatic deletion of the SQL
view `crm_partner_report_assign`,
because the SQL view `account_invoice_report` is
altered.

Therefore, after the install/update of the `sale`
module, the view `crm_partner_report_assign` was
deleted, and the "partnership anaylsis" unusable.

This revision makes sure to init the
`crm.partner.report.assign` report after
every init of the `account.invoice.report`.

opw-674177
2016-04-11 13:05:03 +02:00
Virbhadrasinh Gohil 282538cbfe [FIX] auth_signup: don't crash on user copy
Altering a frozen dict is not allowed

Backport from 7c513773e9
2016-04-11 12:24:59 +02:00
Thibault Delavallée d18d6259ae [FIX] mrp: context propagation 2016-04-11 10:11:10 +02:00
Thibault Delavallée 620d9f2e60 [FIX] mrp: wrong return in override of action_scrap 2016-04-11 10:11:09 +02:00
Goffin Simon 2954df9e68 [FIX] stock: invisible field picking_type_id
The field picking_type_id is a required field, this is why it cannot
be invisible in the form view.

opw:673258
2016-04-11 09:50:03 +02:00
Odoo Translation Bot 05223f558d [I18N] Update translation terms from Transifex 2016-04-10 02:59:08 +02:00
Odoo Translation Bot d4672389f7 [I18N] Update translation terms from Transifex 2016-04-10 00:32:08 +02:00
qdp-odoo 20381eb33d [FIX] account: get rid of 'cannot create unbalanced entry' on bank reconciliation using a tax on manual entry created. Was ticket 673358 2016-04-08 16:54:54 +02:00
Géry Debongnie f652d384a2 [FIX] web: graph_view now actually supports 'stacked' attribute
For some reason, it was lost.  Probably in the graph view/pivot view split.
This commit simply accepts the attribute, but default to true, so nothing
changes unless you have explicitely set it to false.

Also, fixes en error introduced by a forward port (the use of
openerp.web.format_value)
2016-04-08 15:21:17 +02:00
Yannick Tivisse 1c9f7f9890 [FIX] crm: Do not show leads without next activities on NA menu
If nothing is planned for this lead, don't show it on the
Next Activities menuitem
2016-04-08 11:09:59 +02:00
Nicolas Martinelli 653221e5a4 [FIX] mrp_repair: tax calculation and subtotal
Following commit 5b380e13, the the taxes on the fees are not calculated
correctly. Moreover, setting the subtotal in the onchange is misleading
since it will be set to zero if the line is not invoiced. We just set
the price to zero by default, and the click on 'update' will set it
correctly afterwards.

opw-673984
2016-04-08 08:35:54 +02:00
Nicolas Lempereur 2948acfa56 [FIX] mail: typo get id of mentionned channel/partner
opw-673962
2016-04-07 18:00:27 +02:00
qdp-odoo bf8bff19c9 [FIX] account_full_reconcile: fixed bad identation on migration script 2016-04-07 15:31:46 +02:00
Nicolas Martinelli 5b380e13ca [FIX] mrp_repair: tax computation
This solved two issues. First, the price subtotal should contain the
price with taxes excluded, as it is the case in other modules.
Otherwise, the tax will be computed twice. Then, when an invoice is
generated, the taxes should be calculated...

This is an oversight of commit fe2b5f35a4.

opw-673984
2016-04-07 14:49:14 +02:00
Géry Debongnie 6859c8dacb [FIX] web_kanban: fix race condition in do_search
The do_search method still had a race condition because the
read_slice method of datasets alter ids.  So, what could happen is
this: a long search is started, then a shorter search is started and
ended before the first search is completed.  The ui is rendered
properly, but then the long search ends and alter the dataset.  As
a result, the Kanban view is broken (cannot open a record anymore
because the dataset has the wrong ids).

This commit fixes the issue by doing basically what the read_slice
method did, except the ids altering part.  However, it introduced
a new problem for x2many kanban views: these kanban view don't have
the same dataset, they have a datasetstatic. The naive substitution
does not work, so I had to reintroduce the old method in X2ManyKanbanView.
2016-04-07 14:16:04 +02:00
Christophe Simonis a658b9030a [FIX] l10n_fr: force no account on some tax template
These taxes used to have a (now deleted) linked account in 8.0.
Helps migration by forcing the reset of these fields.
2016-04-07 12:43:08 +02:00
Nicolas Lempereur 70ba0e94b3 [FIX] crm: remove Lost filter on Activities Analysis
The two fields used in the filter are not available on the
crm.activity.report model.

It is not possible to do a Lost filter until the fields are added (and
this can only be done in master).

opw-673533

note: should not be forward-ported over saas-10
2016-04-07 10:15:50 +02:00
Nicolas Martinelli 50143ff729 [FIX] base: traceback
Commit 9523d59 avoids to have the _logger.info at each print. However,
`lang_eval` is not defined.

@JKE-be: you might want to review this more thoroughly.

opw-673972
2016-04-07 10:03:15 +02:00
Jeremy Kersten d3dd4161ad [FIX] crm_partner_assign: allow to pass several ids to assign_partner
In previous code, for each lead, that allocate the saleman for all the leads (ids).

So n^n, 100 leads = 10000 allocation/write in db
2016-04-06 17:16:26 +02:00
Nicolas Lempereur 0c9355a8fb [FIX] website: prefer to get exact language
request.website.get_languages returns a list of tuple in the form:

        (`language code`, `language name`)

With this commit the code first check if there is a language exactly
matching, and only if failed check if there is a match on the short
form.

closes #11613
opw-672412
2016-04-06 15:31:58 +02:00
Jeremy Kersten ab489b1d73 [FIX] website_hr_recruitment: don't display offices from others countries. 2016-04-06 15:16:58 +02:00
Jeremy Kersten d24b5038a0 [FIX] utm: ignore utm for saleman.
When a saleman create a lead or a sale after clicking on a link to test their own campaign, they don't want to be linked to this campaign
2016-04-06 15:16:58 +02:00
Jos De Graeve b6386a0a7e [FIX] doc: configuration file destination
db_name instead of dbname

Closes #11603
2016-04-06 14:40:03 +02:00
Martin Trigaux 8c029e230e [FIX] website_sale: do not force user's language
When adding a product to the cart via _website_product_id_change, some
information are set in the context to mimic `product_id_change` from sale.

In the context of a sale.order redacted in backend, using the language of the
`partner_id` makes sense as the quotation should be in the language of the
customer and not the user writing it.
In the ecommerce scenario, this is not the case. The language is set in the URL
and can be passed as an argument.

Scenario to fix:
Add a product to the cart when visiting the website in a different language.
The product name and description were in English (or language of public user if
different) instead of the language of the website when adding it to cart.
2016-04-06 14:34:10 +02:00
Nicolas Lempereur 29851b74aa [FIX] sale_crm: if no company on lead use user currency
When displaying the `sale_amount_total` of an opportunity, the amount of
the related order are summed up in the opportunity company's currency.

But when creating a lead, we can leave the company empty which warranted
this commit adding in that instance a fall back on the current user
company currency.

closes #11611
opw-673167
2016-04-06 13:11:48 +02:00
Géry Debongnie c4e0562144 [FIX] web: editable list view waits for record to be loaded
The editable list view method 'edit' is supposed to wait for the
record to be completely loaded.  But when loading the defaults values,
it ignored the actual loading and completed too early.  This commit
chains the deferred with the form record.
2016-04-06 12:30:30 +02:00
Denis Ledoux 6e6e8ea185 [FIX] hr: mention suggestions for employees with disabled user
This is related to revision 84b45515bd

It's actually the user on which the `active` field  should be checked,
as this is possible to disable a user without disabling his partner,
but it should no longer be possible to mention him as soon
as the user is disabled.

opw-673719
2016-04-06 11:48:38 +02:00
Nicolas Martinelli 076b837e36 [FIX] mail: duplicate translations 2016-04-06 11:32:23 +02:00
qdp-odoo a7639c7acc [ADD] account_tax_adjustments: new module to deal with miscellaneous operations you make for adjustments on the VAT report
[IMP] l10n_be: added adjustment taxes for grid 61 and 62
2016-04-06 11:28:01 +02:00
Nicolas Martinelli 20ea4edabe [FIX] mail: translate static channels
The name of the static channels ('Inbox', 'Starred') are not translated
in the breadcrumb. The reason is that at intialization of the chat
manager, the translation are not yet loaded.

The fix is to use the lazy translate functionality, which applies the
translation when the string is displayed.

Courtesy of @aab-odoo

opw-673856
2016-04-06 10:46:33 +02:00
Géry Debongnie dac37163d1 [FIX] web: fieldmany2manytag issue
I recently removed some rpc from init fieldmany2manytag (it was in a
mutex) and moved it to the willStart method (without mutex).  The
fieldmany2many tag widget needs this information before it can be
rendered.  However, in editable list views, the rendering engine does
not wait for the fields to be ready before completing its initialization
process.  As a result, the field many2many tag was rendered before it
was ready, which broke various things, including its position.

This commit attempts to bring sanity to this issue by making sure that
the rendering engine waits for its fields to be ready.  Also, the
editable list view should detect correctly when the form is loaded.

If this commit introduces new issues with the editable list view and
onchanges, I will not be pleased.  You don't want to bring me this sad
news without at least something to buy my good will.
2016-04-06 09:55:06 +02:00
Nicolas Martinelli d4eebd7f22 [FIX] mail: fix translation
Missing translations and typo.

Closes #11604
opw-673853
2016-04-06 08:29:23 +02:00
Christophe Simonis 549daaaba4 [MERGE] forward port of branch saas-7 up to 3e639f4 2016-04-05 19:08:01 +02:00
Christophe Simonis 3e639f4bea [MERGE] forward port of branch 9.0 up to 9e2de9b 2016-04-05 19:06:25 +02:00
Christophe Simonis 9e2de9b1ae [MERGE] forward port of branch saas-6 up to 7f5ca1d 2016-04-05 19:04:36 +02:00
Christophe Simonis 7f5ca1d94a [MERGE] forward port of branch 8.0 up to ceb87b7 2016-04-05 18:59:00 +02:00
Julien Legros ec444bf091 [FIX] calendar: mail_thread overrides
Since calendar_event overrides read to handle virtual ids, we need to do
the same for mail_thread _get_message_unread and _get_message_needaction
methods. Otherwise virtual ids may end up in the cache and browsing them
would fail.
2016-04-05 18:19:52 +02:00