Commit Graph
115108 Commits
Author SHA1 Message Date
Aaron Bohy cf6697dfbd [FIX] web: ActionManager: honor action's groupBy
Before this rev., the group_by specified in the action context was
completely overridden by the group_by specified in the search view,
even if it was []. In other words, it was completely ignored.

Moreover, it was only took into account (before being overridden)
at the first load of a view, not at reload.
2018-01-22 20:00:53 +01:00
Christophe Simonis e8fa9428e8 [FIX] hr_timesheet: add missing import (bis) 2018-01-22 19:34:14 +01:00
Christophe Simonis 1d394bbee3 [FIX] web: adapt test 2018-01-22 19:19:59 +01:00
Christophe Simonis 4b68a7b30a [FIX] hr_timesheet: add missing import 2018-01-22 19:08:57 +01:00
Christophe Simonis a98b46b8f5 [MERGE] forward port branch saas-11.1 up to fa1f2132e7 2018-01-22 18:44:05 +01:00
Christophe Simonis fa1f2132e7 [MERGE] forward port branch 11.0 up to 950d9b2369 2018-01-22 17:47:32 +01:00
Christophe Simonis 950d9b2369 [MERGE] forward port branch saas-16 up to dfe7f00e78 2018-01-22 16:38:01 +01:00
tbe-odoo dfe7f00e78 [FIX] stripe: Fix when no access token set
- When no access token is set, the stripe implementation uses a the access token the string 'undefined'.
2018-01-22 15:03:19 +01:00
Christophe Simonis a3d3e5e7fe [MERGE] forward port branch saas-15 up to 50d87ae81b 2018-01-22 14:42:09 +01:00
Christophe Simonis 50d87ae81b [MERGE] forward port branch saas-14 up to 3d673b5900 2018-01-22 13:33:58 +01:00
Martin Geubelle 8b5440c2b4 [FIX] mass_mailing: open duplicate in edit mode
Since the new views, the flag `initial_view` on an action has been removed.

There were in fact multiple ways to do the same thing (open a form view in edit
mode directly with an action) (the supported option is `form_view_initial_mode`
in the context) ; the options have been cleaned up a little bit.

This was the only remaining recurrence.

Closes #22353
2018-01-22 13:14:44 +01:00
Christophe Simonis 3d673b5900 [MERGE] forward port branch 10.0 up to aac9cd4ca8 2018-01-22 12:32:40 +01:00
Christophe Simonis aac9cd4ca8 [MERGE] forward port branch 9.0 up to 216edc206c 2018-01-22 11:18:14 +01:00
Florent de Labarre c5586134a3 [FIX] purchase: keep context
Modify the existing context instead of replacing it.

Closes #22400
opw-806661
2018-01-22 08:43:45 +01:00
Aaron Bohy ca323c51b2 [FIX] web: Kanban: quick create in folded column
With attribute 'on_create="quick_create"' on the arch's root node,
kanban views open the quick create widget in the first column when
the user clicks on 'Create' (in the control panel), if the view
is grouped and if there is at least one column. However, this
column may be folded.

Before this rev., the quick create was inserted into the folded
column, which didn't look amazing. This rev. first toggles the
column before inserting the quick create.
2018-01-22 08:32:57 +01:00
Priyanka Kakadiya 33d43c5af1 [FIX] web: traceback when exporting from list view
Former code of list controller used the searchView of its parent,
which was the ViewManager. However, this has been changed by rev.
32b8cec53, where the ViewManager was removed, and the list
controller now has the reference of the searchView, so this code
had to be adapted. Tests have been adapted accordingly as well.
2018-01-22 08:28:44 +01:00
Nicolas Martinelli c4b9c51abf [FIX] account: configuration bar
- Create a new company
- Connect your user to this company
- Do not choose a chart of accounts
- Go in accounting
- Select a step in the config bar (Fiscal Year, Chart of Accounts,
  Initial balances)

A warning message is raised : "No miscellaneous journal could be found.
Please create one before proceeding."

However, we should be able to enter fiscal year step. Moreover, the
error message is unclear.

opw-804760
2018-01-22 08:21:24 +01:00
Nicolas Martinelli 8c3fb9316f [FIX] website_sale_delivery: update total
Changing the delivery method doesn't update the total of the order.

opw-804374
2018-01-22 08:20:51 +01:00
Nicolas Martinelli e014ee9a96 [FIX] payment: missing support
The `website_payment` route has not been implmented following the
payment refactoring. Deactive it for now.

opw-787897
2018-01-22 08:20:51 +01:00
Odoo Translation Bot db27489fe7 [I18N] Update translation terms from Transifex 2018-01-21 07:04:08 +01:00
Odoo Translation Bot c5749ef2e3 [I18N] Update translation terms from Transifex 2018-01-21 04:24:31 +01:00
Odoo Translation Bot ae6037e17a [I18N] Update translation terms from Transifex 2018-01-21 00:42:13 +01:00
Christophe Simonis f98470e6cf [IMP] project: read project.task related fields using current user
This avoid copying the cache during computatio
2018-01-19 17:26:25 +01:00
qdp-odoo 6c211376f0 [IMP] account: include only posted entries in the GL balance of bank/cash journals
special request from Gustavo Valverde. Was github issue #22383.
2018-01-19 16:13:54 +01:00
jem-odoo 2cd74cdd0d [FIX] hr_expense: don't display confusing button
When adding line from expense sheet, you don't want to see
the header with action button, nor the stat buttons.

Closes #16996
2018-01-19 15:37:05 +01:00
Yannick Tivisse 628406156b [FIX] l10n_be_hr_payroll: Add missing field dependency on compute method 2018-01-19 15:20:01 +01:00
Aaron Bohy 4399bb5555 [FIX] web: Calendar: traceback when creating first event
The Calendar controller made the assumption that the Dialog widget
opens synchronously, which isn't the case (for the first instance
actually), as it has to load its xml template. So it crashed as
the controller tried to focus the input inside the dialog, before
it was actually rendered.
2018-01-19 14:31:05 +01:00
Mohammed Shekha 7faecb6fe4 [FIX] web: WebClient: notify the ActionManager it's in the DOM
Before this rev., on_attach_callback of the ActionManager wasn't
called at init, because the WebClient didn't use the append
function of dom_utils.
2018-01-19 14:31:05 +01:00
Aaron Bohy a4a54ab838 [FIX] web: change a param of a client action in the url
Before this rev., an error occurred when the user changed a param
of the url when being in a client action. For instance, open
Discuss, go to 'Starred', then click on the 'Back' arrow of the
browser.

The error occurred because the code made the assumption that the
current action was an ir.actions.act_window.
2018-01-19 14:31:05 +01:00
Nicolas Lempereur f3449fa0db [FIX] account: nbsp entity wish for bad translation
` ` was translated erroneously several times in arabic,
turkish and chinese (in module account, account_reports, ...).

This is solved on transifex and will be available on next translation
updates.

This commit disable the translation of it in the location it was most an
issue.

opw-803248
closes #22373
2018-01-19 14:13:35 +01:00
qsm-odoo 216edc206c [FIX] web_editor: properly evaluate if a range is an image
The previous implementation apparently came from an old version
of summernote (see https://github.com/odoo/odoo/commit/d33086c03fc1a0882be38ae62989b7f72df20d3b).

This commits should improve it to handle all known cases.

See https://github.com/odoo/odoo/issues/20877
2018-01-19 14:02:24 +01:00
Mitali Patel 4681915db2 [FIX] hr_expense: muti currency case expense currency other than company currency at that time user post journal entry 2018-01-19 13:56:16 +01:00
Christophe Simonis bd3869bd3a [FIX] core,google_drive: python3 compatibility 2018-01-19 13:42:26 +01:00
jem-odoo 088b6c3857 [FIX] project_timesheet_holidays: correctly remove timesheet
When validating a leaves from a leaves type "generate timesheet", some
timesheets are generated by the system. When refusing the holidays, we
want the timesheet to be deleted. It does not seem to be the case before
this commit.
Also, generated timesheet has a label containing 'False' if the holiday
description is not set.

Closes #22140
2018-01-19 13:14:59 +01:00
Simon Lejeune b95cabef0b [FIX] stock: cancel moves before creating the extra ones
- enable the sublocations
- create an immediate transfer
- add a move of product 1
- save
- add a move line on the move
- create a new move of product 1 without adding any move line to it
- validate
- traceback (record has been deleted)

This is caused by the fact that we loop on `moves` and the
`_create_extra_move` can trigger a merge of move contained by `moves` ;
according to the order of the record in the recordset, we can try to
access a field on a now unlinked move.

Fixes #22356
2018-01-19 13:00:55 +01:00
Christophe Simonis 2f95cfb8ed [MERGE] forward port branch saas-16 up to f99c4f2b48 2018-01-19 12:43:58 +01:00
Xavier-Do 5d04c4c5ee [REV] Miss push
This reverts commit 935e4f6a25.
2018-01-19 11:37:51 +01:00
Christophe Simonis f99c4f2b48 [MERGE] forward port branch saas-15 up to 0c54862cbf 2018-01-19 11:30:35 +01:00
Lucas Perais (lpe) 56052dee60 [FIX] web,board: a kanban button action should trigger that action
Before this commit, when having a kanban within a dashboard and clicking on an action button,
the action was not triggered, instead, the board form view triggered 'save' on the board model
leading to a server side traceback

After this commit, the action button triggers the demanded one and only this one.

OPW 805707

closes #22191
closes #22371
2018-01-19 11:26:52 +01:00
Nicolas Martinelli fdb585caf5 [FIX] hr_timesheet: access to analytic lines
- Create an invoice with an analytic account on a line
- Validate it

A read access error occurs.

The rule is too restrictive: reading should be allowed for users.

opw-805533
2018-01-19 10:31:45 +01:00
Xavier-Do 935e4f6a25 Task: [mail] clean chatter.
Remove "always" tracking support
Change greay background logic
2018-01-19 10:06:42 +01:00
Aaron Bohy ac0e452890 [FIX] web: Kanban: create several records on slow network
Before this rev., it crashed when the user used the quick create
to create several records (very quickly, or on a slow network),
e.g. on crm.lead (there must be a date field on the kanban record
to reproduce the crash).

The crash occurred when the 'read' RPCs for the created records
return misordered. For instance:
  1) 'name_create' record 1 (called and returned)
  2) call 'read' for record 1
  3) 'name_create' record 2 (called and returned)
  4) call 'read' for record 2
  5) 'read' for record 2 returns
  6) 'read' for record 1 returns

At step 5, the kanban column was updated with the new state, but
this state already contained record 1, which wasn't fetched yet.

This rev. ensures that the created records are added to the state
once they are fetched and ready to be displayed, not before.
2018-01-19 09:57:41 +01:00
Christophe Matthieu 4a82e3d4c6 [REM] mass_mailing/website_crm_partner_assign: remove duplicate code 2018-01-19 09:57:20 +01:00
Christophe Matthieu cf209210db [REF] tests_new_api:remove duplicate test 2018-01-19 09:57:20 +01:00
Christophe Matthieu 87eb269d93 [REF] qweb: remove deprecated attributes 2018-01-19 09:57:20 +01:00
Christophe Monniez 48b967fde0 [FIX] web,website,tests: fix typo in test tags
This typo prevented two tests to run.
2018-01-19 09:06:09 +01:00
Alexandre Kühn a87d761fdb [IMP] core: menu tip ux/ui improvement
We would like to make the "no item found" screens more appealing.

Before this commit, it shows a small help tip in the top-left
corner of the screen, just below the "Create" button.

With this commit, these help tips have been replaced by onboarding
screens, which consist of a picture and some text below, both of which
are horizontally centered.

The texts have been slightly changed, so that they are shorter and clearer.

Considered modules:

(A)
    account,
    account_asset,
    account_budget,
    account_test,
    account_voucher,
    analytic
(B)
    barcodes,
    base,
    base_automation,
    board
(C)
    calendar,
    contacts,
    crm
(D)
    delivery
(E)
    event
(F)
    fleet
(G)
    gamification,
    google_drive
(H)
    hr,
    hr_attendance,
    hr_contract,
    hr_expense,
    hr_gamification,
    hr_holidays,
    hr_payroll,
    hr_recruitment,
    hr_timesheet
(I)
    im_livechat
(L)
    l10n_fr_sale_closing,
    link_tracker,
    lunch
(M)
    mail,
    maintenance,
    mass_mailing,
    membership,
    mrp
(N)
    note
(P)
    payment,
    point_of_sale,
    post_mercury,
    pos_restaurant,
    product,
    project,
    purchase,
    purchase_requisition
(R)
    rating,
    repair,
    resource
(S)
    sale,
    sale_timesheet,
    sales_team,
    stock,
    stock_account,
    stock_landed_costs,
    stock_picking_batch,
    survey
(U)
    utm
(W)
    web,
    website,
    website_blog,
    website_customer,
    website_event_track,
    website_forum,
    website_quote,
    website_sale,
    website_sale_digital,
    website_slides
2018-01-18 21:43:29 +01:00
stefanorigano 1f1c5f62c7 [ADD] web: empty_states, add pictures
Add 3 pictures to illustrate empty states across several modules.
Width 120px,  variable height.
2018-01-18 19:17:17 +01:00
Christophe Simonis 0c54862cbf [FIX] mail: move and adapt test
Move tests to TestCase where records are created (group_pigs)
2018-01-18 19:09:49 +01:00
Christophe Simonis 3e197bf000 [MERGE] forward port branch saas-14 up to 4887a75e2c 2018-01-18 16:27:43 +01:00