Commit Graph
103231 Commits
Author SHA1 Message Date
Nicolas Lempereur b21382bdd1 [FIX] web_editor: Cannot read property 'left' of undefined
This issue happen for example on a full runbot when clicking with
shift + key pressed on a sale order not in an editable.

We can see that initial_data.rect is only defined in mousedown when the
click target is inside an editable block, hence it could lead to an
issue otherwise.

closes #11527
2016-03-30 09:56:23 +02:00
Nicolas Lempereur 109c529c49 [IMP] web_editor: inline buttons shown over topbar
Before 9.0 web_editor separation in 8c55904, some style would make
inline button be visible over topbar.

This commit reintroduce that and also make the margin over the inline
editor content a little bigger (so the inline buttons on the top of a
content will cover a little less the topbar).

closes #11526
opw-671649
2016-03-30 09:54:05 +02:00
Goffin Simon 0d2d1dbca2 [FIX] website_portal_sale: amount due in Invoices and Payments template
The amount displayed in the website(my account) for the invoices must be
the amount due and clicking on payment button let the customer paying
this amount.

opw:671234
2016-03-30 09:34:52 +02:00
Goffin Simon cfe6716e11 [FIX] hr_payroll_account: onchange_contract
Journal on payslip has to be taken from employee's contract if it is set.

fixes #11188
2016-03-30 09:21:53 +02:00
Kinjal Mehta 1409de5d36 [IMP] Convert UserError into ValidationError when only a message to display
When only a message argument is given to the crash manager, the popup display
"Error while validating constarint" and "None" with the warning message
which does not make any sense for the common user.
2016-03-30 09:17:42 +02:00
Olivier Dony ae015cc9c5 [FIX] pricelist: no early rounding of computed price
The pricelist computation should not immediately
apply the currency rounding to computed prices,
to allow for unit prices with arbitrary precisions.

This way users can use a higher decimal precision
for "Product Price" than what is allowed for their
currency. This is useful e.g. to obtain exact
subtotals prices when combining small prices with
large quantities.

The resulting price will be rounded appropriately
when it gets stored to the destination field anyway.
2016-03-30 03:50:13 +02:00
Olivier Dony 742c7b4c2f [FIX] website_event_track: use image_medium avatar
The default image field is usally too large for use
as a speaker avatar.
The implementation of the field should have been
a simple "related" field too, instead of a custom
computed field.
2016-03-30 03:47:24 +02:00
Olivier Dony 5b5324cb9f [FIX] website_forum: avatar route now uses 128x128 image
Many users upload large images for their avatar
(multi-Mb files). This makes most forum pages
longer to load than necessary, and wastes bandwidth.

128x128 images (`image_medium` field) are sufficient
for displaying avatar pictures on posts and profiles.
2016-03-30 03:47:23 +02:00
Olivier Dony 88594416a6 [FIX] web: CSV export: avoid triggering formulas
When exporting text data in CSV format, values
beginning with '=', '+' or '-' will usually be
mistaken by spreadsheet applications as formulas
upon CSV import.
That will often cause the cell to display an
error message instead of the actual contents,
such as "#NAME?"

Prefixing them with a single quote makes them
pure text cells. The special single quote
character is usually hidden by the spreadsheet
in that case.

Numbers and other types of values are not affected.
2016-03-30 03:43:40 +02:00
Parth Mehta 0eebd3c4ac [IMP] hr_expense: pivot view should be clickable. 2016-03-29 16:15:24 +02:00
Denis Ledoux 461162f3ec [FIX] calendar: display_start and stop are not private
Add `display_start` and `display_stop` to the fields
which are public even if the event is marked as private.

There is no reason it should be public,
especially if `start` and `stop` are. Besides,
this leads to issues in
`get_search_fields`, when doing:
```
sort_fields['sort_start'] = browse_event['display_start'].replace(' ', '').replace('-', '')
```
opw-672997
2016-03-29 16:13:07 +02:00
Nicolas Martinelli 04f896b135 [FIX] warning: onchange_partner_id
When the warning module is installed, `onchange_picking_type` is not
called anymore.

When the method `onchange_picking_type` was introduced, it was not taken
into account that the warning module would change the onchange property
on the `partner_id` field thanks to the method `onchange_partner_id`.

opw-672091
Fixes #11342
2016-03-29 16:00:31 +02:00
Martin Trigaux 2587b6d0ad [FIX] sale: translation of email template
previous commit was translating the wrong template *sigh*
remove the translations in the other languages as an email in English is better
than a non-working link
2016-03-29 15:53:31 +02:00
Mohammed Shekha 0471d57088 [IMP] website_blog: Comment button animation improvement
Purpose:
When I clicked on comment button I will get the comment box, and text will
be moved left side and when I clicked anywhere on screen, I will get text
as it is, But if I clicked on comment sign second time(when there is already
popover is opened) I will not get text as in original view.

What's done:
Strange behavior of move blog content, when user clicks on + sign second time
and popover is already open then move the content back to original position,
also fixed the issue of alignment issue of comment in popover, make popover
bit bigger to show content properly
2016-03-29 15:37:07 +02:00
Martin Trigaux 4b12cce69e [FIX] sale: adapt translation to match new form
The button link was wrong, still linked to previous URL

opw-672920
2016-03-29 15:14:44 +02:00
Nicolas Lempereur 9be7a9535c [IMP] web_calendar: matching pivot and calendar week number
To format Week numbers in the pivot view, babel is used with format
`'W'w YYYY` in the current locale (eg: en_US) which will determine
print the week in the locale week numbering type.

This is inconsistant with the fullcalendar version (1.6.4) in Odoo until
at least version 9.0 where ISO is used by default. This behaviour has
been changed in more recent version of fullcalendar and is now in tune
with pivot view, but updating fullcalendar should be done in master.

This commit customize the week numbering on the old version of
fullcalendar getting the yearned result without updating fullcalendar.

This is only possible in saas-6 since momentjs is only present since
saas-6 and is required for this fix.

closes #11522
opw-653671
opw-668711
2016-03-29 14:23:00 +02:00
Goffin Simon 11d3aaf848 [FIX] purchase: origin field on "procurement.order"
The field origin is not required in "procurement.order" and
trying to concat a string with a boolean raises a Type Error.

opw:670307
2016-03-29 12:21:49 +02:00
Nicolas Martinelli c26fa293c8 [FIX] stock: get quants domain
The call to method `quants_get_preferred_domain` is not correct anymore
after commit 6ef158b63.

opw-672973
2016-03-29 11:49:23 +02:00
César Castillo 36ef20fe52 [FIX] doc: duplicated text in themes.rst
close #11502
2016-03-29 11:32:00 +02:00
Manuel Vázquez Acosta ad979b71a2 [FIX] account: account balances computation
Commits 7b7f3fa and d6c88b8 filter out special periods from the account
balances. However, this filtering is not necessary anymore for a closed
fiscal year. The result is that the opening balance becomes wrong as
soon as the previous fiscal year is closed.

This commit fix this by computing the balance over all fiscal years.

Closes #11515
2016-03-29 11:17:58 +02:00
Xavier Morel bc4d10f48d [IMP] groupby domains & unformated dates
* ensure groupby domains are normalised, that's significantly more
  convenient for subsequent manipulations and combinations (e.g. OR-ing
  domains of multiple groups)
* split off "raw" groupby which provides ISO-8601 date and datetime
  ranges[0] (half-open) as values for grouped date/datetime fields

  for instance when grouping weekwise on a date field, the group
  including May 11th, 1930 would have the following value for
  the (grouped) date field: `("1930-05-05/1930-05-12", "W19 1930")`[1]

  this means callers can access the programmatic date range value
* fix website_mail_channel and website_blog to *not* go and randomly dig
  into the domains assuming a bunch of unspecified stuff about its
  formatting (such as it not being normalized)

[0] https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
[1] actual week number turns out to be locale-dependent...
2016-03-29 10:34:25 +02:00
Xavier Morel 2fea143b06 [FIX] stock: count of reordering rules
* don't dig into context for data we already have
* don't use mutable value as duplicated default
* try to make the method work correctly in case it's ever called with
  multiple product template ids
2016-03-29 10:34:25 +02:00
Odoo Translation Bot 8d9b309f9a [I18N] Update translation terms from Transifex 2016-03-27 03:14:28 +02:00
Odoo Translation Bot f02b8a76df [I18N] Update translation terms from Transifex 2016-03-27 00:32:16 +01:00
pvy 825c02ff58 [FIX] l10n_nl: 2 taxes were forgotten during the taxes tags overhaul 2016-03-25 17:08:32 +01:00
Goffin Simon 2225a1992d [FIX] sale: _get_advance_payment_method
When there is at least one invoice already linked to the SO, the
default advance payment method must be 'Invoiceable lines (deduct down payments)'

opw:672911
2016-03-25 16:54:40 +01:00
Peter Hahn c2abdbbc37 [IMP] Make many2many widgets in listview usable for one2many
Existings many2many widgets in ListView can be used also for one2many if
the supplementary data is provided for the column.

closes #11282
2016-03-25 16:54:32 +01:00
sha-odoo f23daad44b [IMP] product: Add a barcode-search in all products kanban/list views 2016-03-25 16:49:43 +01:00
Denis Ledoux 949da8affa [FIX] crm: re-apply 71b0a4c
It was somehow lost with
e48c50bb10
and
30a7ef804a

opw-672974
2016-03-25 16:49:10 +01:00
dut-odoo dd80649541 [FIX] web: fix unbound variable utils in view search_view.js 2016-03-25 16:25:59 +01:00
Jigar Patel 5228928877 [IMP] hr: Display color tags on employee kanban view
Also change hr demo data to have some colored tags initially
2016-03-25 15:31:07 +01:00
Martin Trigaux eeffda9689 [I18N] website_quote: missing terms in .pot file 2016-03-25 14:45:12 +01:00
Raphael Collet 2483327236 [FIX] res_lang: do not ormcache a method that returns a record
Use the `ormcache` wrapper on a method that returns a record id instead.
2016-03-25 14:44:34 +01:00
Xavier Morel fc40772926 [FIX] scaffolding: packaging
Packaging doesn't include non-imported python file because
redhat. Oblivious, revision 8e81abfeb5
renamed .py.template files to .py thus breaking scaffolding from
packaged odoo.

Revert that specific change.

Fix #11050
2016-03-25 14:42:32 +01:00
Dhaval Panchal e1eaa29994 [IMP] barcode: On barcode nomenclatures, add a handle widget for rules ordering. 2016-03-25 13:49:42 +01:00
Xavier Morel 4a31f85c5a [FIX] base_import: CSV import error from windows
Missing bit from #10374: because the _read_xls function is a generator
it is *entirely* lazy and Python doesn't execute *any* code when it's
initially called, which means the file is actually (tentatively) parsed
when the first line is requested which happens outside of
_read_file (and thus of the fallback mechanism implemented by #10374).

Fix by splitting _read_xls between the opening of the workbook (eager)
and the actual iteration (which remains lazy).
2016-03-25 13:13:23 +01:00
Thibault Delavallée 3b26d1e2fd [FIX] mail: default reply to with multiple alias
When having multiple aliases matching a record, take the first one coming
in the order instead of the last one. This way the defined order is effectively
taken into account.
2016-03-25 12:40:46 +01:00
Thibault Delavallée 554f70f218 [FIX] crm, hr_recruitment, project_issue: responsible
When using the mailgateway, the responsible of the newly created lead / applicant /
issue is explicitely set to False since the original mailgateway commit in 2010.

However this conflicts with some custom behavior that tries to set the responsible
on the same objects. Notably in recruitment the responsible is set to be the
recruitment responsible set on the job, if any.

In this commit we replace the explicit set of user_id=False to using a
default_user_id=False in the context. This way the admin or mailgateway user
will not be responsible of every new records. And this enables custom behavior
to find a responsible.
2016-03-25 12:40:34 +01:00
Nicolas Lempereur 918e1b06bc [FIX] website_blog: .cover_narrow removed when cover removed
opw-668713
2016-03-25 12:21:33 +01:00
David Monjoie 3ce72701f1 [IMP] sale: avoid replace when not in sale_layout group
Last recommendation in order to avoid breaking invoice
customizations for people who doesn't use sale_layout.
2016-03-25 11:54:05 +01:00
David Monjoie 3bb9b09500 [MERGE] sale,website_quote: merged sale_layout feature as a new group
Also applied sale_layout feature to website_quote.
2016-03-25 11:46:12 +01:00
Nicolas Lempereur 85eda0c55f [FIX] web_editor: two editor and image bar buttons
Some image functionalities of the inline summernote would only take the
first of multiple editor into account when selecting the targeted image
of an image button action (image size, image padding, ...).

This commit select the appropriate editor given the current editable.

closes #11474
opw-668861
2016-03-25 11:39:57 +01:00
David Monjoie f280bfe8a1 [IMP] website_quote: use new pagebreak mechanism 2016-03-25 11:34:26 +01:00
David Monjoie ffc5b1058a [IMP] sale: improved pagebreak mechanism 2016-03-25 11:34:26 +01:00
Julien Louette 293c1c06e6 [IMP] website_quote: adding layout categories to website quotations 2016-03-25 11:34:26 +01:00
Julien Louette b391c8d494 [REM] sale_layout: removed 2016-03-25 11:34:25 +01:00
David Monjoie 27fd3ece28 [IMP] sale: removed sale_layout_category separator 2016-03-25 11:34:25 +01:00
Julien Louette a6b240b6bc [ADD] sale: merged sale_layout into sale 2016-03-25 11:34:25 +01:00
Nicolas Martinelli 62792a8ff6 [FIX] purchase: purchase count
After commit cb01be23, the states have changed.

opw-671989
2016-03-25 10:43:33 +01:00
Srushti Patel 91e8de0b05 [ADD] website_quote: Allow reordering of suggested products on quotations
This commit adds a sequence field on suggested products, allowing to arrange the order in which the suggested products will appear on the quotation
2016-03-25 10:26:17 +01:00