Commit Graph
106440 Commits
Author SHA1 Message Date
Yannick Tivisse d72ef63057 [MIG] im_livechat: Migrate 2 old API init() methods 2016-08-09 10:29:06 +02:00
Yannick Tivisse 1f75156bd3 [FIX] hr_timesheet_sheet: linting issue 2016-08-09 10:29:06 +02:00
Yannick Tivisse 1903a33278 [FIX] hr: Remove old_api default value 2016-08-09 10:29:06 +02:00
Yannick Tivisse 9a479e6572 [MIG] product_margin: Migrate to new API 2016-08-09 10:29:06 +02:00
Yannick Tivisse 9c377d37d2 [FIX] account: type mismatch in account_invoice_demo.yml 2016-08-09 10:29:06 +02:00
Yannick Tivisse 04039a1061 [MOV] product_margin: move and rename files according to guidelines 2016-08-09 10:29:06 +02:00
Thibault Delavallée 90a5079d01 [FIX] various: fix fields index parameter in new API still called select 2016-08-09 10:26:53 +02:00
Raphael Collet 95206ff323 [MIG] test_impex: convert to the new API 2016-08-09 10:08:55 +02:00
Jérome Maes 51431bc0cf [MIG] google_cal: migration to new API 2016-08-08 17:12:56 +02:00
Mohammed Shekha 9b39275d85 [MIG] google_calendar: migrate to new api
No behaviour changes, only migrate code and add
some docstring.
2016-08-08 16:27:06 +02:00
Jérome Maes 996d6de620 [MOV] google_calendar: split files per models 2016-08-08 16:07:07 +02:00
Mohammed Shekha d624fdd250 [MOV] google_calendar: moved models and data file in to models and data directory 2016-08-08 16:07:07 +02:00
Christophe Simonis cd613fd768 [FIX] website_sale: compare selection field against values in selection 2016-08-08 16:05:26 +02:00
Christophe Simonis 456d3d1e1e [FIX] mrp: drop (sql) view before recreating it 2016-08-08 16:04:48 +02:00
Jérome Maes 29796b58dd [IMP] calendar: notification route should be in auth
The 2 calendar notification routes were in auth
`none`. This causes no problem, but since they are
reimplementing the auth user mecanism, it is better
to set them directly in auth `user`. Moreover, they
are only called from webclient, when the user is
logged.

This commit also migrate them to new API (we forgot
them ....)
2016-08-08 15:46:03 +02:00
Jérome Maes 4b8de95d29 [FIX] calendar: bad method name called 2016-08-08 13:52:13 +02:00
Jérome Maes 26ccf212d8 [FIX] calendar: force computation of for calendar.event 2016-08-08 13:52:02 +02:00
Yannick Tivisse d6e1d41128 [MIG] account: Migrate remaining old API chuncks of code 2016-08-08 12:24:40 +02:00
Danimar Ribeiro 5177186f43 [ADD] base: add the brazilian state 'Acre'
Closes #13054
2016-08-08 12:08:47 +02:00
Martin Trigaux b5d550d7b0 [FIX] hr: do not translate contrains at load time
The _constaints definition is done at server load, not when a user is triggering
the check. The constrains are already translated, no need to try translating it
again.
2016-08-08 12:01:56 +02:00
Martin Trigaux a1fbb3d389 [FIX] base: translate _constraint message
While the error content is automatically translatable, the header was not.

Fixes #5645
2016-08-08 11:54:32 +02:00
qsm-odoo fd7f019533 [FIX] web: properly position invisible elements in editable listview in modals
When positioning an element in an editable list view, that element is
temporarily forced to display: block thanks to the class o_temp_visible

The rule is written in LESS thanks to:
.o_list_editable .o_temp_visible { display: block!important; }

which is ok for normal invisible form fields because it is written as
.o_form_view .o_form_invisible { display: none!important; }
which has the same priority but is defined before the o_temp_visible
rule, so the display is properly forced to block.

However, for some reason, there also is the rule:
.modal .modal-dialog .o_form_invisible { display: none!important; }
which has a higher priority than the o_temp_visible rule.
This is why appearing invisible fields in editable list view in modals
are at a wrong position.

The solution introduced by this commit is the safest: adding a new
rule to force display block!important on the selector:
.o_list_editable .o_temp_visible.o_form_invisible
2016-08-08 11:03:29 +02:00
Yannick Tivisse 9f00eddb85 [FIX] stock_account: Fix stock_account_data_post_install.yml remaining old api calls 2016-08-08 10:27:29 +02:00
Nicolas Martinelli 4f037210c2 [FIX] account: dashboard traceback
In the dashboard view, it's possible to use the "Group By" feature.
However, when clicking on a link on any dashboard, a traceback might
show up.

This is because the context key `group_by` is kept when clicking on an
action. If the destination view is a list/kanban, and the destination
model doesn't have the field, the system will try to make a grouping by
a field which doesn't exist.

The solution is to remove the `group_by` key from the context, since it
doesn't make sense to send it the the destination model.

opw-684568
2016-08-08 08:24:57 +02:00
Odoo Translation Bot 0606247a8b [I18N] Update translation terms from Transifex 2016-08-07 03:07:40 +02:00
Odoo Translation Bot 8a3a620404 [I18N] Update translation terms from Transifex 2016-08-07 00:38:49 +02:00
Simon Lejeune d6683c4c80 [FIX] report: get_action: name the action
This is useful now that we show the report in the action manager thanks
to the report client action. Also remove the duplication of the context
key.
2016-08-05 17:04:32 +02:00
Thibault Delavallée 59753d51b3 [FIX] point_of_sale: fix digits_compute attribute changed to digits in new API 2016-08-05 17:00:50 +02:00
Martin Trigaux d56b03465f [I18N] Update translation terms from Transifex
Last one before dropping a few non-active languages
2016-08-05 16:12:06 +02:00
Thibault Delavallée 1eac2bbec1 [MERGE] website_quote: migration to new API 2016-08-05 15:28:21 +02:00
Denis Vermylen (dve) f39628ae49 [IMP] website_quote: perform some code cleaning
* Remove dead code
* Clean variable assignation to a record set and use a dedicated variable to
  hold the result instead of setting a property on records
2016-08-05 15:25:26 +02:00
Denis Vermylen (dve) 232eea36ab [MIG] website_quote: migrate to new api 2016-08-05 15:25:26 +02:00
Denis Vermylen (dve) 1fe106ef7a [MOV] website_quote: reorganize addon and split models according to guidelines 2016-08-05 15:25:26 +02:00
Thibault Delavallée 4c8a5b164a [FIX][REF] website_quote: remove broken call to an old onchange
website_quote still calls sale_order_line.product_id_change() in old API,
giving arguments that are not supported anymore. It does not crash because
'reasons'. However the new onchange does not return values since v9. The
call is therefore not necessary anymore and the computation has been adapted
accordingly.
2016-08-05 15:24:36 +02:00
qsm-odoo def300996c [FIX] web_editor: adapt the forgotten rendering of updated contact fields
The frontend allow the rendering of fields thanks to converters and
their value_to_html and record_to_html methods. These methods were
changed with https://github.com/odoo/odoo/commit/3407fb70e4a5b16174234d10d97710572b6f808c#diff-d5a9a5d91bd3171e30e7facd628bdf5cL411.

The problem is that the web_editor also contains code which relies on
these methods and it was not adapted.
2016-08-05 15:13:54 +02:00
qsm-odoo 57c09e8a8e [FIX] web_editor: properly handle many2one fields
The many2one fields and their search bar were not working anymore since
the loss of some functionnalities with commit b309f3ab54.

* The dropdown which regroups a snippet options list is hidden if it
does not contain any option. This was not the case anymore because it
now always contains a dropdown title. This is fixed by simply removing
this title if it is alone in the dropdown.

* Snippet options attached to an element whose parent is not editable
cannot be moved/deleted/duplicated as it is supposed to remain where
it is. This is often the case for many2one fields and the feature was
simply lost in the refactoring.
2016-08-05 15:13:54 +02:00
Yannick Tivisse ca530e7a40 [MERGE] purchase: Migrate to new API 2016-08-05 14:18:35 +02:00
Denis Vermylen (dve) bd3f501c84 [FIX] purchase: correct singleton error
Write in models/account_invoice.py didn't handle multiple records.
Now fixed.
2016-08-05 14:04:38 +02:00
Denis Vermylen (dve) 5146add3b7 [REF] purchase: remove unnecessary code 2016-08-05 14:04:38 +02:00
Denis Vermylen (dve) ba3d3582bc [MIG] purchase: Migrate to new API 2016-08-05 14:04:37 +02:00
Fabien Meghazi 0a3cd5b0a7 [IMP] force attachment storage for some binary fields 2016-08-05 13:45:51 +02:00
Denis Vermylen (dve) 197c410557 [MOV] purchase/data: add purchase_sequence to data 2016-08-05 12:52:49 +02:00
Denis Vermylen (dve) 05b265de9a [MOV] purchase: move and rename files according to guidelines 2016-08-05 12:52:49 +02:00
Jeremy Kersten 7f6c669530 [FIX] website: /website/info use website.info xmlid
When a user try to create a new page info, he is redirected
to the /page/info because the xmlid already exists...

The problem is that this view need to be rendered via the
controller /website/info which gives some extra values (version, ...)

The fix for v8 is to redirect /page/info to /website/info.

In V9, the behavior is changed and one page info-1 will be created.
But this fix is also required for direct access to /page/info.

To do in master: maybe use another xml_id that this basic name 'info'?

This commit fix issue #8022
2016-08-05 12:05:24 +02:00
qsm-odoo a8ee18e172 [FIX] web_editor: make save/discard btns visible when too many options
The editor bar is sometimes filled with too many options, and these
hide the save and discard buttons on small screens. To solve the
problem, the description option (which take a lot of space) has now
a max-width and the save and discard buttons are always on top.
2016-08-05 11:55:00 +02:00
Yannick Tivisse 64b48d705d [MERGE] account_asset: Migrate to new API 2016-08-05 11:09:26 +02:00
Thibault Delavallée 5a859b8d38 [FIX][IMP] account_asset: method_time / prorata thingy
- on account.asset.asset form view, field method_time, in 'Depreciation Information'
  page: use radio widget instead (without it, you couldn't change the field)

- on account.asset.category form view: prorata field hidden when required, and set
  to false when method_time is on 'Ending Date'. (It was previously possible for
  the prorata to be true while the method_time was 'Ending Date', which is invalid)
2016-08-05 11:05:35 +02:00
Denis Vermylen (dve) 62a1c97d37 [MIG] account_asset: Migrate to new API 2016-08-05 11:05:35 +02:00
Thibault Delavallée d43cdd696c [SPL] account_asset: split files according to modelsé 2016-08-05 11:04:02 +02:00
Denis Vermylen (dve) 0b2127c25f [MOV] account_asset: reorganise module directory 2016-08-05 11:04:01 +02:00