Commit Graph
127612 Commits
Author SHA1 Message Date
Denis Ledoux 060d6927c9 [FIX] website_portal_sale: portal, exclude vendors bills
The vendors bills must not be displayed in the portal invoices.
We shouldn't ask the supplier to pay their own invoices :).

opw-694215
2016-11-29 11:35:13 +01:00
Jérome Maes 32e812a916 [FIX] website_sale: create consumed rating
Otherwise, it is not taken into account when
computing grates in rating mixin.
2016-11-29 09:56:40 +01:00
Jérome Maes 5b6d734f6f [FIX] rating_project: use correct domain
The computed domain to see consumed rating
of task and issue was simply not correct.
2016-11-29 09:56:31 +01:00
Pierre Masereel cb5bfd843d [REF] stock: remove recheck availability
Remove of unused method since rev: https://github.com/odoo/odoo/commit/704d4d59f162d6d0722d79e0f3f90c47389f7e97
2016-11-28 17:02:22 +01:00
Denis Vermylen (dve) a82055c911 [FIX] hr_*: Make button box visible to employees
The employee form view button box should be enabled for employees,
it's up to each button in their respective modules to define
more restrictive groups, and in fact they already do
(see hr_holidays, hr_timesheet_sheet, hr_contract ...)

For example, hr_holidays adds the "Leaves left" smart button
which is supposed to be visible for employees looking at their own profile,
but it was actually hidden because they couldn't see the entire buttonbox.

Also added fixes to buttons that came afterwards and relied on this behavior.

fix for https://github.com/odoo/odoo/pull/14164
2016-11-28 14:50:15 +01:00
Pierre Masereel d77af3ce1e [REF] stock: remove method redirection
Remove redirection of mehod 'action_split_lot' to 'split_lot' introduced in
rev: https://github.com/odoo/odoo/commit/304c81c91
2016-11-28 14:37:28 +01:00
Nicolas Martinelli bdf630f9b8 [FIX] account_analytic_default: invoice from PO
- Create a vendor bill
- Add a PO thanks to the "Add Purchase Order"
- The analytic accounts are not added on the lines

opw-693313
2016-11-28 13:00:34 +01:00
Goffin Simon cadb7e0bfd [FIX] base: writing on is_company field
The commercial_partner_id field on "account.invoice" is a stored related
field to commercial_partner_id on res.partner and this field is recomputed
when changing the is_company field (by the function _commercial_partner_store_triggers).
So when changing the "is_company" field, the commercial_partner_id is recomputed and
a write is made on each account.invoice linked to the commercial_partner_id.

To avoid access rights problem on account.invoice, the write on "is_company"
must be done in SUPERUSER.

opw:694687
2016-11-28 10:39:53 +01:00
Goffin Simon 043aa0b158 [FIX] stock_account: _get_anglo_saxon_price_unit
Backport of ab279d9cea

When getting the price from a account.move.line, the uom set
on the line must be taken into account.

Before the fix:

-Set anglo-saxon accounting
-Create two units of measure Box and Mot where 1Mot = 10Box
-Create a stockable product with Box as unit of reference and set with
real price and perpetual
-Create a SO with a Mot of this product
-Confirm the SO and create the invoice
-Validate the invoice

Bug:
In the journal of entries, only one box was counted for the debit and the credit
instead of 10.

NB: The function _get_anglo_saxon_price_unit must return the price unit of the
product in the unit of measure of the account.invoice.line.

opw:693075
2016-11-28 10:20:38 +01:00
Fabien Pinckaers 6bea172a49 [IMP] hr_attendance: comment for later: code to remove 2016-11-28 09:57:29 +01:00
Fabien Pinckaers c468cfdd69 [IMP] hr_attendance: remove unuseful JS code + clean view 2016-11-28 09:55:05 +01:00
Fabien Pinckaers ec4c37229f [IMP] hr_recruitment: no btn-primary is not currently recruiting; more contrast in dashboard 2016-11-27 14:59:02 +01:00
Odoo Translation Bot 8de795291a [I18N] Update translation terms from Transifex 2016-11-27 03:41:40 +01:00
Odoo Translation Bot 8d724924f7 [I18N] Update translation terms from Transifex 2016-11-27 02:57:09 +01:00
Odoo Translation Bot d2b4f0e786 [I18N] Update translation terms from Transifex 2016-11-27 00:32:17 +01:00
Fabien Pinckaers 7f4b98b540 [IMP] hr_recruitment: huge speed improvement for Job kanban 2016-11-25 17:01:11 +01:00
Olivier Dony 32168400a4 [FIX] account.move.line: restore compatibility with RPC calls
Rev. d6e1d41128 removed old API
compatibility layer, but failed to preserve the ability to
call certain public methods from the RPC layer, when extra
browse_record parameters were required.

In particular the @api.v7 version of
`prepare_move_lines_for_reconciliation_widget` was dropped
and there was no way to call it with a `target_currency` RPC
parameter anymore.
2016-11-25 13:17:32 +01:00
Christophe Simonis 1fbd582b54 [MERGE] forward port branch saas-6 up to b3944ed 2016-11-25 12:57:15 +01:00
Simon Lejeune a720364225 [REF] requirements.txt: downgrade lxml to 3.5.0
In order to circumvent https://bugs.launchpad.net/lxml/+bug/1625506
2016-11-25 12:34:27 +01:00
Christophe Simonis b3944ed0a0 [MERGE] forward port branch 8.0 up to cd44031 2016-11-25 12:23:13 +01:00
Christophe Simonis e2a8f7c61c [FIX] product: ensure at least 1 item when computing price from pricelist 2016-11-25 12:06:54 +01:00
Nicolas Martinelli cd440312ce [FIX] account: partial payment reconciliation
When processing a partial reconciliation in a foreign currency, a
currency exchange difference might be generated during the
reconciliation process (see OPW for a detailed use case).

This prevents the user to process the reconciliation since he will get
the error: 'You have to provide an account for the write off/exchange
difference entry.'

The fix is to use the company-related foreign echange gain and loss
accounts automatically to book this difference.

opw-687975
2016-11-25 10:21:01 +01:00
Jeremy Kersten 4fa39c0e19 [FIX] website_forum: ask reason when refuse a post.
Call was done in ajax to speed up the moderation and don't wait refresh at each accpet/refuse post.
But the problem is that when you refuse a post, you need to be redirected to a new page to ask more
infos about the reason.
The fix is to do the request in ajax only when it is an 'accepted' post.

This commits fixes odoo/odoo@14462
2016-11-25 09:13:33 +01:00
Christophe Simonis 7d4ac39c4c [MERGE] forward port branch saas-12 up to d853d3c 2016-11-24 18:35:42 +01:00
Christophe Simonis d853d3c00e [MERGE] forward port branch saas-11 up to 3f3c88b 2016-11-24 18:29:46 +01:00
Christophe Simonis 3f3c88b4bb [MERGE] forward port branch 9.0 up to aa7d1ab 2016-11-24 18:24:29 +01:00
Pierre Masereel 41b2cf3a27 [FIX] purchase: double validation minimum amount
When we enable in the settings 'Get 2 levels of approvals' with a
'Double validation amount', and then create a request for quotation.
When we confirm it, even if the total amount of the request for
quotation is below the amount set in the settings, the purchase order
needs to be approved.

We excpect that if a purchase order has a total amount below the
validation amount setting, the purchase order is automatically
confirmed.

So to fix it, we compare the amount when the user click on the button
confirm. And immediatly call the function 'button_approve' if the amount
is below the double validation amount set in settings.

Bug introduced in rev: https://github.com/odoo/odoo/commit/9d4efc81a

opw - 694381
2016-11-24 17:17:38 +01:00
Christophe Simonis 440c8cc7c9 [FIX] payment_ogone: process s2s requests as sudo 2016-11-24 16:42:43 +01:00
Zambu 623d61872d [CLA] Corporate signature for Diagram Software
Closes #14409
2016-11-24 16:31:46 +01:00
François Revol ffe3c5a6d1 [CLA] Add ICLA signature by mmu_man
I hereby confirm I have signed the CLA and read the PR guidelines at
www.odoo.com/submit-pr

(yes, github mutilates nicknames with underscores)

Closes #13875
2016-11-24 16:29:18 +01:00
Denis Ledoux 456d7b38f1 [FIX] sale: store triggers for related stored company_id sale orders
When changing the company of a sales order,
the change was not propagated to the related, stored, company field
of its sale order lines

These triggers makes that happen.

opw-694683
2016-11-24 16:14:36 +01:00
Denis Ledoux 295b96c0b3 [FIX] product: store triggers for related stored company_id in pricelists
When changing the company of a pricelist,
the change was not propagated to the related, stored, company fields
of the `product.pricelist.version` and the `product.pricelist.item`

These triggers makes that happen.

opw-694683
2016-11-24 16:08:07 +01:00
Christophe Simonis b57eb754bf [FIX] core: ignore comments when clean html from emails 2016-11-24 14:18:09 +01:00
Nicolas Martinelli 7e7205a7bf [FIX] payment_stripe: make it work
The module `payment_stripe` was apparently not designed to work with
module `website_payment`, althought the payment method is available. For
example:
- Go to '/my/home', select "Pay Now" on an invoice
- Try to pay with Stripe ==> nothing happens

This commit brings the necessary modifications to make it compatible
with `website_payment`. Moreover, it prevents the creation of 2
`payment.transactions`, which was not necessary.

opw-693421
2016-11-24 12:33:55 +01:00
Denis Ledoux cf98d58f88 [FIX] *: fix product.uom._compute_price method calls
During the conversion to the new api,
the method `product.uom`.`_compute_price` has had its signature
changed.

Formerly, it was:
`def _compute_price(self, cr, uid, from_uom_id, price, to_uom_id=False):`
Now, it is:
`def _compute_price(self, price, to_unit):`

Basically:
- the first argument `from_uom_id` is removed, and you now should
call this method from the model record directly
- the last argument is no longer a kwargs

Some calls to this method were still done the former way:
 - Some have been added during forward ports
 - Some are oversights when this method has been converted to the new api

This revision corrects the calls that were still done the former way
to the new way.

opw-694871
2016-11-24 11:33:38 +01:00
qsm-odoo 365f7e9212 [FIX] web: lazy loading the same file multiple times with loadJS
Before this commit, if the loadJS method was called two times with the
same url, the associated script was effectively put in the DOM only one
time. However, the second call returned deferred was immediatly
resolved while the script (added by the first call) might not be fully
loaded yet.

Now, calling loadJS for a same url multiple times will always return
the same deferred, resolved when the associated script is fully loaded.
2016-11-24 10:14:56 +01:00
qsm-odoo 88912f810f [IMP] web_editor: allow lazy loadings in Animation instance
This commit comments the code of the Animation class and allows
for lazy loading of resources before animations' start methods
are called.

This lazy loading can be performed in the willStart method (to use
the same way as in the Widget class).

This commits also removes the "stop" function of the module as it
was not really useful. It was used to restart the animations (by
immediatly calling start again after the stop call). Now the Animation
class contains a restart method and the module "start" function
automatically knows if it has to instanciate an animation or restart
an existing one.
Animation start should only be performed by instanciating an Animation
(thanks to new) or by calling the restart method, to insure the
willStart method is always called. Anyway, the best way to start
animations is to let the system handle them, using the "selector"
attributes in your Animation definitions as before.

See in-code comments for details.
2016-11-24 10:14:56 +01:00
Goffin Simon 46c5db095a [FIX] account_tax_cash_basis: _get_tax_cash_basis_lines
When refunding a supplier invoice with tax cash basis and no cash flow,
a movement for the cash basis tax was created.

Only entries with cash flow must be created for cash basis taxes.

opw:693453
2016-11-24 09:57:09 +01:00
Fabien Pinckaers df037089bc [IMP] hr_recruitment: better pivot view 2016-11-24 08:57:43 +01:00
Sagar Ahirrao 2ffa4eef83 [FIX] account: default value for 'bank_statements_source' field
On a account journal, as no default value is set, the label appears in bold on the form, and the value is not displayed (because equal to False)

Add a default value 'no_feeds' on the selection field
2016-11-23 16:11:07 +01:00
fwi-odoo 96b9d28351 [FIX] mail: add filter to see messages where user is mentioned
We add the filter during the instantiation of the search view by the "Discuss" client action
because we can't access the partner_id in the xml filter definition.
2016-11-23 16:08:16 +01:00
Nicolas Martinelli aa7d1ab9d1 [FIX] account: invoice tracebacks
When the company field is empty on an invoice, tracebacks occur.

Fixes #14410
opw-694476
2016-11-23 16:00:58 +01:00
Damien Bouvy 3321d9c1ca [FIX] payment_ogone: serialize correctly & validate with sudo 2016-11-23 14:59:52 +01:00
Odoo Translation Bot 9ab572fa4c [I18N] Update translation terms from Transifex 2016-11-23 13:50:32 +01:00
Thibault Delavallée b9c79b0a97 [IMP] mail: composer in mass mail mode does not use search domain by default
It now uses active_ids (checked records) by default. Composer allows you to
change and use active_domain (search criterion) instead.
2016-11-23 12:56:18 +01:00
Josse Colpaert a6b41186ca [FIX] stock: fix issue when creating package and computing children quants
children_quant_ids is a computed field that does a search based on current
record id. However this causes a traceback when creating a record as
there is no id. This commit fixes this issue.
2016-11-23 12:49:49 +01:00
Josse Colpaert ba1602ee77 [FIX] stock: fix search and domain on location_id, company_id, owner_id of stock.quant.package
Those fields were stored computed fields before. However store has been
removed while migrating to the new API. We need a search function if we
want to be able to search on those fields and to use domains.

Domains are necessary to take packages from the right source locations.

The computation is done by searching the packages with the
"location/owner/..." domain and by returning a parent-of domain
in order to include all parent packages too.
2016-11-23 12:48:20 +01:00
Yannick Tivisse 2a7299f24c [REM] subscription: Remove module 2016-11-23 11:59:35 +01:00
Yannick Tivisse 98cb4719db [REM] workflow: Remove workflow engine, documentation and tests 2016-11-23 11:52:39 +01:00
Thibault Delavallée 94d2b97da4 [IMP] mail: make res_model of followers model a related on m2o towards ir.model
When uninstalling a module followers stay in the database because there is no
real link between ir.model and followers. Adding a m2o ensure followers are
correctly removed when uninstalling a module.

res_model fields is kept as a stored related field. This allows to keep
compatibility with almost all code using / searching on followers. Only
followers creation is changed a bit. As follower creation is done mainly
through a dedicated method few changes are required. Yey. Mat should be
happier now.

fix test
2016-11-23 11:13:18 +01:00