Commit Graph
107816 Commits
Author SHA1 Message Date
Thibault Delavallée f83e706786 [FIX] website_slides: handle replies to Presentation Published as notes
As the Presentation Published message is posted on a channel every reply
to this message is also posted on the channel. However channels may holds
lot of followers not necessarily interested in being spammed by answers
to that message. We consider now that those replies are notes to avoid
spam. Channel managers can follow the note subtype to be warned about
those messages.
2016-10-14 11:02:15 +02:00
qdp-odoo 9aebcb80d2 [FIX] account: add field include_initial_balance in the account.account.type form view 2016-10-14 09:39:23 +02:00
Nicolas Martinelli c426133fb9 [FIX] account: cash with multiple COA
- Set multi company
- Create 2 new companies
- Set a chart of account for company 1 (ex Belgium)
- Set another chart of account for company 2 (ex UK)

This is because the generation of accounts from templates doesn't
restrict the accounts to the current one.

opw-690796
2016-10-14 08:27:57 +02:00
Thomas Binsfeld (ACSONE) a4143dae1d [FIX] Inheritance of purchase_order_change by preparing data dictionary
Data dictionary filled inside the function purchase_order_change had no possibility of inheritance.

opw:690733
2016-10-13 22:33:28 +02:00
Thomas Binsfeld d0bfcfd41d [FIX] Inheritance of purchase_order_change by preparing data dictionary
Data dictionary filled inside the function purchase_order_change had no possibility
of inheritance.

opw:690733
2016-10-13 22:30:40 +02:00
stefanorigano 39d74a7136 [FIX] web_editor: improve web_editor UI style preservation
* add and use preservation mixins to prevent undesired customizations
made by themes
* remove some style preservation code (and use the mixins instead)
* add UI states' colour variables
2016-10-13 17:01:04 +02:00
stefanorigano 63fdde638b [FIX] website: fix usability/design issues in o_select_media_dialog 2016-10-13 17:01:03 +02:00
Jairo Llopis a2f0dda366 [FIX] website_portal: redirect to login for '/my' controller
Current issue without this patch:
On a bare database, install `website_portal` and go to `/my/home` logged out.
You get to an empty page where you can see Public User's details.

Expected behavior with this patch:
User should be redirected to the login page.

Additional notes:
- Other submodules (`website_portal_sale` and `website_project_issue`) were
  actually implementing this, so that is removed BTW and relies in base
  module's now sensible behavior.

This commit closes #12775
2016-10-13 16:30:03 +02:00
Simon Lejeune 4450495e9e [REF] web_kanban: allow a custom limit defined in the arch
With this commit, it's now possible to set an arbitrary limit on any
kanban view by adding a limit attribut to the root kanban tag in a
kanban definition.

Do not forward-port.

Backport of rev 8a87c382ba
2016-10-13 16:20:30 +02:00
Nicolas Martinelli 1f0a778742 [FIX] stock: reverse picking in several steps
- Activate the receipt in two steps on the warehouse
- Create a PO for a stockable product
- Receive the product in Input zone
- Receive the product in Stock
- Reverse the move to Stock > products are back in Input
- Reverse the move to Input

You can't reserve quantities for this last move (from Input to Vendor).

This is because a picking has been automatically created from the Input
to Stock.

Original move which is reversed: Input -> Stock
When we reverse it, we don't want to send it back to Stock, so we need
to check the destination location of the original move, not its
location.

opw-689206
2016-10-13 16:12:05 +02:00
Devendra Kavthekar c63c225274 [FIX] web: is_false() for reference field widget. (#9335)
In the widget, the value of reference field is a pair `[val1, val2]`.
When the field is blank, its value is `[false,false]`, thus checking `[false,false] === false`
never succeeds, and this breaks the check for required fields.
2016-10-13 16:01:21 +02:00
Simon Lejeune 8a87c382ba [REF] web_kanban: allow a custom limit defined in the arch
With this commit, it's now possible to set an arbitrary limit on any
kanban view by adding a limit attribut to the root kanban tag in a
kanban definition.
2016-10-13 15:59:20 +02:00
Simon Lejeune 5abe76c2d2 [FIX] web: clear_uncommitted_changes on browser's back button
This is done by guarding the `on_hashchange` evant handler with the
`clear_uncommitted_changes` function.

Note that the url has already changed when we are in this handler, so we
make sure to restore the old url when the user chose to continue its
edition.
2016-10-13 15:51:09 +02:00
Jérome Maes 740be5842c [FIX] rating_*: domain on m2o for rating mail template
Rating is implemented for project.issue, but it is
impossible to set a template on the stage since the
domain force the mail.template to be declared on
project.task.

We use the same mecanism as `mail_template_id`
declared on project.stage.task in project
module. The list of available template on the stage
form view will be the ones for issue and task like
mail_template_id.
2016-10-13 14:50:06 +02:00
Simon Lejeune a7b976c704 [FIX] web: browser's back button while in the same action
When you browse through the views of an action and then hit the back button,
the view does not change. For example, go to the customers kanban, click
on a customer, hit back, you're still in the customer form view.

related rev: 46857d267b

`do_load_state` is called when you hit f5 or press the back button on
your browser. The related rev took care of fixing the ugly part that
make the webclient goes trough the multi record view then the mono
record view when you hit f5 on a mono record view.

In this context, it removed the code in view manager's `do_load_state` that
switched the mode of the action if it isn't the same the one the web client
is trying to restore from the state (because now the correct mode is loaded).

However, if you hit the back button while the previous view is in the same
action, it obviously doesn't switch the mode anymore and you're facing
the same view.

The issue is fixed by restoring the switch_mode in the view manager's
`do_load_state` (without its oudated comment).
2016-10-13 14:38:33 +02:00
Yenthe V.G cfe0dc6d34 [FIX] website_sale: remove duplicated method
Added twice during a forward port

Closes #13796
Fixes ##13795
2016-10-13 14:31:18 +02:00
Nicolas Martinelli 89700eb771 [FIX] account: multi-currency reconciliation
Reconcile the following entries :
D                          C
Amount currency
3.655,52€                                                   +3.872,45$
                            3.436,80€                       -3.872,45$

What Odoo does when I reconcile the 2 entries above using the
"Reconcile" button:
D                          C
Amount currency
3.655,52€                                                   +3.872,45$
                            3.436,80€                       -3.872,45$
0€                           218,72€                          -236,61$
0€                                    0€
+236,61$

What Odoo should do :
D                          C
Amount currency
3.655,52€                                                   +3.872,45$
                            3.436,80€                       -3.872,45$
0€                           218,72€                       0$

opw-687481
2016-10-13 13:08:44 +02:00
qdp-odoo 421fe962eb [IMP] account: replace the button to open related account.move.line on bank statement by a button to open the related account.move 2016-10-13 11:42:50 +02:00
Adrien Peiffer (ACSONE) d81258ab8e [FIX] Consider currency rate to compute total amount in expense analysis
Like in Invoices Analysis, the expenses must be expressed in the currency
of the company. In this way, it makes sens to sum them to compute the total.

opw:689760
2016-10-13 11:24:06 +02:00
Richard Möhn cb581bc14f [FIX] api: in todo list, group records to recompute by environment (#11267)
The effect of this change is to trigger the recomputation of fields on larger
recordsets.  This takes advantage of batch computations within compute methods.
2016-10-13 10:13:33 +02:00
Nicolas Martinelli f4d7d04c1d [FIX] l10n_in: taxes tags
There are inconsistencies between the tax tags as defined in the module
and what the reporting expects.

opw-689188
2016-10-13 10:10:13 +02:00
Goffin Simon 6799abb37a [FIX] account_asset: Depreciation Expense Account appears twice
For the field account_depreciation_id in the account.asset.category.form
view, the string "Depreciation Expense Account" was already used for
the field account_depreciation_expense_id.

opw:690297
2016-10-13 09:42:01 +02:00
Goffin Simon 7bcc197531 [FIX] sale: Making a downpayment with a fiscal position
When creating a SO line and an invoice line for a downpayment,
the fiscal position set on the SO must be taken into account
to map the right taxes.

opw:688611
2016-10-13 09:15:48 +02:00
Christophe Simonis 187b32dd91 [FIX] README: change label and color of badges 2016-10-12 18:55:16 +02:00
Christophe Simonis 8cb03824f9 [FIX] README: update links to point to version 10.0 2016-10-12 18:42:12 +02:00
Jeremy Kersten d3609f7f19 [FIX] web,crm: list view, don't fallback on group_operator declared in python
Partial revert of odoo/odoo@633780a
2016-10-12 18:03:51 +02:00
Jeremy Kersten 7fb1b6f30b [FIX] utm: dont try to set cookies if Response is Exception
Also prefetch tracking_fields before the call to super to avoid to use a closed cursor.
See odoo/odoo@6780597

this commit closes #13646
2016-10-12 17:57:24 +02:00
Martin Trigaux 3154b8fefc [IMP] base: clarify view error position
In case of syntax error, show where the error is.
e.message is enmpty for syntax errors

Before:
Can't validate view:

After:
Can't validate view:
SyntaxError('invalid syntax', ('', 1, 51, "{'invisible': [('external_sale', '=', 'internal')]]}"))
2016-10-12 17:31:18 +02:00
Christophe Simonis 0acd63d073 [MERGE] forward port branch saas-12 up to 27dc061 2016-10-12 17:03:55 +02:00
Christophe Simonis 27dc061bf1 [MERGE] forward port branch saas-11 up to a73cd57 2016-10-12 17:00:35 +02:00
Christophe Simonis a73cd57485 [MERGE] forward port branch 9.0 up to 6faf232 2016-10-12 16:56:44 +02:00
Martin Trigaux a357a8135d [FIX] remove empty file
my bad
2016-10-12 16:39:46 +02:00
Christophe Simonis 6faf232b71 [MERGE] forward port branch saas-6 up to ef4efea 2016-10-12 15:33:01 +02:00
Christophe Simonis ef4efeac7c [MERGE] forward port branch 8.0 up to 16430be 2016-10-12 15:27:07 +02:00
Thibault Delavallée aa5051f885 [FIX] sale: fix report name when sending by email, no more lasting _ 2016-10-12 14:38:39 +02:00
Thibault Delavallée 25d27ced8b [FIX] sale: use website address when sending quotation by mail
When the quotation is sent by email it is still in draft state. However right
after sending it will move to sent state. This state allows the customer to see
it in its website portal. Let us then use a convenient context key used when
sending quotations by email to force the use of website address for quotation
link contained in the email.
2016-10-12 14:37:23 +02:00
Damien Bouvy 0c8f3038d1 [IMP] mail: remove deprecated doc 2016-10-12 14:16:22 +02:00
Damien Bouvy e0cbb058e5 [IMP] mail: add basic for update notification (ping)
Ensures no regression on a3509d282d
2016-10-12 14:16:22 +02:00
Goffin Simon a8e1595a12 [FIX] sale: visible cost price in sale order line
The Cost of the product(purchase_price) must be shown in the wizard opened
when changing a SO line.

opw:690180
2016-10-12 14:13:33 +02:00
Danimar Ribeiro 106840c369 [FIX] mass_mailing: allow to quick create a mass_mailing
_rec_name in mass mailing is source_id which is an integer, it does not accept
a char value.
Instead specify the `name` value, which will create a utm.source.

Closes #13765
2016-10-12 14:04:17 +02:00
Martin Trigaux 649823b17e [FIX] doc: packaged Odoo still uses odoo.py 2016-10-12 13:50:35 +02:00
Martin Trigaux 24aba6014c [FIX] base: restrict state selection to the selected country
It was not an issue before as there where only the US states in the data.
Remove onchange as useless since domain restriction.

Fixes #13657
2016-10-12 13:50:23 +02:00
vnsoft 16430be566 [FIX] models: in method read_group(), allow orderby='id desc'
When orderby argument is 'id desc', an error occurs: "read_group order by 'id'
ignored, cannot sort on empty..."
2016-10-12 13:19:37 +02:00
Jeremy Kersten 28103a5f2c [FIX] product: fix duplicated creation variants
Move the code to manage the case of 'adding an attribute with only one value
should not recreate product' before to select the existing variants.

Before this commit,
When you create 1 new product.template, it create 1 variant.
When you add an attribute with only one value, it update the existing and
create a duplicate variant.

After this commit,
Only the existing variant is updated, and there are no more duplicated variant.

The fix:
We update the variant if only one value before to select the existing variant.
Thus, the updated variant is compared with the matrix and not duplicated.

This commit closes #13757
2016-10-12 12:38:38 +02:00
Martin Trigaux e81f186ff8 [FIX] doc: change references to odoo.py to odoo-bin 2016-10-12 12:36:45 +02:00
Alexandre Fayolle 65c685ad24 [FIX] context mutations (#10368)
when extending these methods with the new api, the context is a frozendict
so we need to copy before mutating.

this patch was made by searching for key addition to context and calls to the
update() method on the 8.0 addons, and checking if a copy was made before in
the method.
2016-10-12 12:30:42 +02:00
Raphael Collet 8f6b5fcf9e [FIX] ir_model: in _module_data_uninstall(), unlink the right recordset
The bug was introduced by eb04aa1e (migration to new API).
2016-10-12 11:24:24 +02:00
Damien Bouvy a3509d282d [FIX] mail: use explicit 'active' domain for user count in ping
Before the migration to the new API of this code, the context was
not propagated to the update_notification call.

This is now the case, which is unfortunate since the context of the
cron action has an 'active_test'=False key, which causes the ping
to count user differently when the cron is triggered from the form
view.

This commit adds explicit ('active','=',True) domain to ensure we
only count active users when pinging.
2016-10-12 11:23:34 +02:00
Denis Vermylen (dve) d98e5bb68a [IMP] hr_attendance: improve no-content message
of Attendances view
2016-10-12 11:12:14 +02:00
Denis Vermylen (dve) 6315dd970e [IMP] hr_attendance: add a no-content message
for the employees kanban view in kiosk mode.
2016-10-12 11:11:17 +02:00