Commit Graph
103231 Commits
Author SHA1 Message Date
Olivier Dony 08b7e5ab63 [FIX] res.users: better compatibility of read() override with new API 2016-04-01 20:30:57 +02:00
Olivier Dony a7c2377500 [FIX] res.partner: modifying users requires extra access 2016-04-01 20:30:56 +02:00
Olivier Dony 7546123a6b [FIX] base_import: avoid JS error in callback 2016-04-01 20:28:13 +02:00
Olivier Dony 97a96bc96b [FIX] base: require wizard for passwd change 2016-04-01 20:28:00 +02:00
Olivier Dony 3ab436fb7b [FIX] res.partner: modifying users requires extra access 2016-04-01 20:16:11 +02:00
Christophe Simonis 79976bd779 [MERGE] forward port of branch saas-10 up to 6e95659 2016-04-01 19:10:34 +02:00
Christophe Simonis 6e95659a08 [MERGE] forward port of branch saas-9 up to f4d1adc 2016-04-01 18:51:55 +02:00
Christophe Simonis f4d1adc116 [MERGE] forward port of branch saas-7 up to 1e404b7 2016-04-01 18:49:06 +02:00
Christophe Simonis 1e404b7b69 [MERGE] forward port of branch 9.0 up to de11d84 2016-04-01 18:43:35 +02:00
Christophe Simonis de11d8415a Revert "[FIX] ir.qweb: can't edit t-field content if modified by inherit xpath"
This reverts commit 5ab43773cb.
This commit is not needed anymore since d3557de746.
2016-04-01 18:32:32 +02:00
Christophe Simonis 94af66fe8b [MERGE] forward port of branch saas-6 up to df45a31 2016-04-01 18:31:04 +02:00
Christophe Simonis df45a3128d [MERGE] forward port of branch 8.0 up to 1d0b9da 2016-04-01 18:25:48 +02:00
Olivier Dony d3c93a838b [FIX] website_quote: spellchecking 2016-04-01 17:04:47 +02:00
Christophe Simonis 6c8141a1df [MERGE] forward port of branch saas-10 up to 2483327 2016-04-01 16:15:35 +02:00
Denis Ledoux d26460a96a [MERGE] forward port of branch saas-7 up to 8397003 2016-04-01 15:54:34 +02:00
Denis Ledoux 8397003028 [MERGE] forward port of branch 9.0 up to 895e77a 2016-04-01 15:54:10 +02:00
qdp-odoo 2b039c7643 [MERGE] forward port of branch 'saas-7' into saas-9 up to revision 7853c9c7bb 2016-04-01 14:50:57 +02:00
Denis Ledoux 895e77a336 [FIX] website_quote: utility method to determine the transaction type of an order
The transaction `type` of an order can depend according
to the order.

For instance, if the order leads to recurring payments,
the transaction type became `form_save`
instead of `form`.

This new method allow to easily override this `type` value
for other modules, so the entire button
rendering code does not have to be
copy/pasted.
2016-04-01 14:50:10 +02:00
qdp-odoo 7853c9c7bb [MERGE] Merge branch '9.0' into saas-7 up to revision 8ba922936b76cb0fb9ab8ddda6ae4b2e5f087067 2016-04-01 14:49:16 +02:00
qdp-odoo 845b1bde7b [FIX] purchase: empty the stock interim account in case of purchase in foreign currency with a fluctuating exchange rate 2016-04-01 14:32:24 +02:00
Nicolas Martinelli 5de3900258 [FIX] project_issue: count issues
If an issue is created without default stage, it is not counted in the
total of issues. However, a task without default stage is counted (see
commit 432c01c0).

Fixes #11398
opw-672380
2016-04-01 11:55:18 +02:00
Nicolas Martinelli b3cfec189b [FIX] project_issue: link to issues
On the project dashboard, a user needs to click exactly on the number or
on the label in order to open the issue list. If the user clicks outside
the text (but still inside the box), the project is open instead.

The reason is because the link is specifically defined on the
number/label. The fix defines the link on the box itself.

Fixes #11396
opw-672380
2016-04-01 11:54:42 +02:00
Denis Ledoux 17f4d22594 [MERGE] forward port of branch saas-7 up to 2d2028a 2016-04-01 11:26:27 +02:00
Yannick Tivisse 2e0f55537f [IMP] website_hr_recruitment: valid email address on jobs/apply page
A public user is currenlty able to enter 'georges.pompidou' as email
address which is obviously not valid. We change the input type ffrom
text to email and let the browser manager the email format
validity
2016-04-01 11:18:09 +02:00
Nicolas Martinelli 1d0b9da3f0 [FIX] project_issue: partner email
When a new issue is created, the partner email is not pre-filled.

Fixes #11395
opw-672380
2016-04-01 11:12:39 +02:00
Odoo Translation Bot 6aa601da2a [I18N] Update translation terms from Transifex 2016-04-01 00:28:28 +02:00
Christophe Matthieu d3557de746 [FIX] ir.qweb: branding breaks editing/inheritance
Could not edit t-field content if modified by inherit xpath,
and could not inherit qweb views with non "xpath" nodes with
`position="attributes"`.

Examples:
Can't edit: `<data><xpath expr="div[@t-field='object.test']"
position="replace"><div t-field="object.test"/></xpath></data>`

Inherit doesn't work: `<data><h1 position="replace"/><h1
class="test">tata</h1></data>`

Closes #11561
Closes #11547
2016-03-31 18:11:02 +02:00
Denis Ledoux 2d2028a66c [MERGE] forward port of branch 9.0 up to b44cb82 2016-03-31 17:57:22 +02:00
Nicolas Martinelli 2e4777bb32 [FIX] account, purchase: price_unit as Float
The price unit on the account move line is defined as a monetary field.
However, on a Sales Order or on a Purchase Order, the price unit is
defined as a float with precision 'Product Price'. Therefore, when an
invoice is generated from a SO or a PO, inconsistencies arise if the
product price precision is larger than the currency precision.

opw-673251
2016-03-31 17:08:37 +02:00
Goffin Simon b44cb82c1b [FIX] account, stock: date invoice for a refund
When a a refund is created from an open invoice and a different
date than today is selected as refund date, the invoice date of
this refund must be the selected date.

opw:673369
2016-03-31 14:18:02 +02:00
Goffin Simon 214231fbce [FIX] purchase: _get_price_unit_invoice
If the costing method of the product is "average", the price unit
of the stock move is set in the currency of the field "price_currency_id"
with the function "do_partial" (addons/stock/stock.py).

opw:672552
2016-03-31 14:05:19 +02:00
Nicolas Martinelli 81748478bc [FIX] purchase, purchase_requisition: make_po
When a product is set up to generate a purchase tender instead of a
purchase order, the associated procurement is set in exception.

This is because the result of `make_po` is returned by the method `_run`,
and the result of `_run` is used to determine if the procurement is
running or in exception. Since a purchase tender does not generate the PO,
the method `make_po` returns an empty list, and therefore the procurement
is considered as in exception.

The fix is to return the procurement_id instead if a purchase order or a
purchase tender has been created.

opw-672170
2016-03-31 12:54:49 +02:00
Nicolas Martinelli 41c42e8623 [FIX] stock: run procurement once
The call to the method `run` is executed at the procurement creation if the
key `procurement_autorun_defer` is not in the context. This is not
necessary since the call to `run` is explicitly done afterwards.

opw-672170
2016-03-31 12:54:49 +02:00
Olivier Dony 26b8bf52d0 [FIX] web: typo in 88594416a6 2016-03-31 12:53:25 +02:00
Goffin Simon bbb317c547 [FIX] crm: merge partner
It is not allowed to merge a partner with one of his parent.

opw:673104
2016-03-31 11:54:25 +02:00
Cedric Snauwaert 90650245d0 [FIX] account: update-check should allow aml with debit=credit=0
Problem: if we try to validate an invoice with a line with a discount of 100%,
this will create an aml with debit=credit=0 and reconciled flag as True.
So when trying to cancel invoice, it is not possible because the check tell us
that there is an entry which is reconciled and we can't unreconcile that entry,
so the check should just ignore line with debit-credit=0.
Also add readonly to general_account_id related field on account.analytic.line.
This is to prevent a write while creating the account_move_line in the case of an
invoice with analytic account.
2016-03-31 10:31:29 +02:00
Cyril MORISSE e2234e0389 [ADD] server: optional watchdog timeout for cron workers
Closes #11508
2016-03-30 19:53:24 +02:00
Cyril MORISSE 2c053982e9 [CLA] cmorisse sign 2016-03-30 19:53:24 +02:00
rap-odoo 0ffc61d854 [IMP] base_gengo: Add credentials demo data + UX improvements
On the wizard 'Gengo: Manual Request of Translation' display a warning
if the credentials are missing or unauthorized by gengo via the method
gengo_authentication, with a link to the company form view for the user
to be able to configure it.
2016-03-30 16:31:39 +02:00
Denis Ledoux 6e07ae5a5c [FIX] google_drive: Generate Google Authorization Code URL
When checking `Attach Google documents to any record`
in the general settings, if you are not redirected
to a module, but, instead, the current page is refreshed
(the wizard is reloaded instead of creating a new
configuration wizard),
the default value for `google_drive_uri` was not correctly
loaded, the `client_id` in the URL
remained `False` because the wizard was not being
re-created, but reloaded,
and therefore `default_get` hasn't been re-called,
and the `client_id` changed
(it was added to the system parameters after
the installation of the module)

Therefore, the link did not include the correct
`client_id`, and it leaded to the inabibility
to use the URL:
401. That’s an error.
The OAuth client was not found.

Replacing the simple char fields by a function
field, with the correct store trigger,
force the URL value to be reloaded
when the system parameter is inserted.

opw-673274
2016-03-30 16:15:36 +02:00
xmo-odoo 67dafe33e2 [FIX] stock: no self.env in old-style API methods 2016-03-30 15:35:14 +02:00
Nicolas Martinelli fd8570770d [FIX] website_portal_sale, website_sale_(*): access to orders
When a user tries to access one of his orders, the order is shown empty.
This is due to the domain which is applied as an "access check" attempt
and might filter out the order.

The fix directly checks the access rights of the user regarding the
sales order, and return a '403' code if necessary.

opw-671107
2016-03-30 13:33:33 +02:00
Denis Ledoux 4b6218874a [FIX] account: re-introduce get_formview_id for invoices
`get_formview_id` returns a view id to open
the document with. This method is meant to be
overridden in addons that want to give
specific view ids for example.

A link to an invoice must open a different form view
according if this is a customer or a vendor invoice.

This is handled by overriding `get_formview_id`
and returning the view id that should be used
according to something in the record
(e.g. according to the `type` field).

It was present in 8.0, it was somehow
removed in Odoo 9.0 during the refactoring
of the accounting modules, probably
for a wrong reason.

opw-673246
2016-03-30 13:26:19 +02:00
Denis Ledoux 8bb6704b4b [FIX] rating: rating as public
If the user is not connected with his portal account,
but has the right token to rate,
he should be able to.

opw-673231
2016-03-30 12:06:18 +02:00
Goffin Simon 0ce6e1543a [IMP] website_mail, website_quote: check token before browsing the order
Refactoring
2016-03-30 11:36:04 +02:00
Goffin Simon 1b5c2ced45 [FIX] website_mail: internal mail messages
The portal user and the public user don't have to see the internal mail messages
linked to a quotation.

opw:672373
2016-03-30 11:30:14 +02:00
Yannick Tivisse a3105c3f46 [IMP] doc: Add a section 'Supported Browsers' on setup/deploy doc 2016-03-30 11:26:47 +02:00
Denis Ledoux 69fa2d5662 [MERGE] forward port of branch saas-6 up to 8f1782b 2016-03-30 11:23:18 +02:00
Denis Ledoux 8f1782bd05 [MERGE] forward port of branch 8.0 up to 1d5db336 2016-03-30 11:08:57 +02:00
Denis Ledoux 1d5db33638 [FIX] website_sale: perform onchange as sudo
This revision is related to 9752aedb4e

It looks like in some cases, the user cannot read the
partner associated to his own cart.

This is the case when shopping without being signed in.

opw-673187
2016-03-30 11:06:08 +02:00