Commit Graph
103218 Commits
Author SHA1 Message Date
rmu-odoo 18ddbbae1d [IMP] l10n_bo: Added post migration file 2016-02-19 15:03:09 +01:00
rmu-odoo 2274d50d8a [IMP] l10n_bo: created new tag and assing in tax 2016-02-19 15:03:00 +01:00
Alexis de Lattre ccd28977c7 [FIX] l10n_fr: remove old tax codes + some cleanup. Was PR #10625 2016-02-19 14:19:39 +01:00
rmu-odoo e9078aeeb2 [IMP] l10n_at: Added pre and post migration files 2016-02-19 13:51:19 +01:00
rmu-odoo 48fb5d3609 [IMP] l10n_at: Created new tag and assign into taxes 2016-02-19 13:51:03 +01:00
Denis Ledoux 020ae64f16 [FIX] website_portal: currency rounding for "My Orders"
t-field handles better the currency rounding than t-esc.

When setting the currency rounding to 0.05 instead
of 0.01 (e.g. Switzerland), for 600.00:
 - t-esc returns 600.0
 - t-field returns 600.00, as expected.

opw-669945
2016-02-19 13:49:27 +01:00
Daniel Dico 94875a6fb6 [FIX] l10n_ca - fix tax calculation for BC, MB and SK. Was PR #10376 2016-02-19 13:43:29 +01:00
Nicolas Martinelli e5f184fe6d [FIX] web: context/domain in move line tree
DO NOT FORWARD-PORT: the functionality is not used anymore in v9

Commit aaf9badb filters the returned ids by keeping the domain in the
request. However, `this.dataset.domain` might be empty, while
`self.dataset.get_domain()` will retrieve it from the model.

Since `get_domain` is not always defined on the dataset, we keep
`this.dataset.domain` as a fallback. The fix is not great, and a better
solution should be found in master branch when the web refactoring is
done.

opw-666755
2016-02-19 13:21:41 +01:00
Martin Trigaux c51c3254b8 [FIX] models: escape colomn name in read_group
In PostgreSQL, if not double-quoted, the columns are considered as lower case.
http://www.postgresql.org/docs/9.4/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS

Courtesy of Philippe Halbardier, SimplyCIT
2016-02-19 12:13:30 +01:00
cpyou 20b5b8636b [CLA] signature for cpyou
Closes #10494
2016-02-19 12:07:08 +01:00
Massimo Bianchi 7d46ce5fdf [CLA] signature for iceseyes
Closes #10603
2016-02-19 12:06:03 +01:00
root 6634ed0188 [CLA] signature for tstonis
Closes #10487
2016-02-19 12:06:01 +01:00
Javier García-Panach 24158951f3 [CLA] signature for JGarcia-Panach
Closes #10958
2016-02-19 11:57:53 +01:00
Antony Brugger 3e8036a6b8 [CLA] Update CLA Eezee-It
Closes #11010
2016-02-19 11:42:14 +01:00
Andrea Stirpe 3bc172fc26 [CLA] Corporate CLA for Onestein team
Closes #10999, #11000
2016-02-19 11:34:55 +01:00
Goffin Simon 1928ca95c2 [FIX] website_event_sale: registration form without possibilities
When there is no possibilities(no event_ticket_ids) the registration form
doesn't have to be displayed.

opw:668603
2016-02-19 10:17:07 +01:00
Joren Van Onder 406255ac6b [FIX] point_of_sale: export all missing classes from js modules
In the interest of being flexible and customizeable all of the defined
classes in the POS should be exported so people can easily inherit them
and change their behavior. A lot of the time you can get to them even if
they're not exported if you get creative enough, but noone should have
to resort to such ugly methods.

This commit does this for all of the modules except for
point_of_sale.popups. It has been omitted because currently it exports a
single object (PopupWidget). Modifying this to export an object of
objects could potentially break other unofficial modules which we do not
want in a stable release.
2016-02-19 10:04:57 +01:00
Martin Trigaux e701e566f8 [ADD] Github template files for issues and PR 2016-02-19 09:44:32 +01:00
Christophe Simonis ed507e01f1 [FIX] website_sale: Display comments & suggested product toghether.
By shadowing the `product` variable, the suggested products option had
the side effect of showing the comments of the last suggested product
instead of the current product ones.
2016-02-18 16:58:30 +01:00
Joren Van Onder 6d1b2e1a7e [FIX] point_of_sale: load fiscal positions of orders from localStorage
The fiscal position on an order was correctly saved to localStorage but
they where never loaded from localStorage.
2016-02-18 16:12:24 +01:00
Christophe Simonis a6a46b4371 [FIX] mail: ensure we have at least one partner before reading its name 2016-02-18 15:53:23 +01:00
rmu-odoo 50b20e2c7e [IMP] l10n_ar: Added new migration file for tag 2016-02-18 14:55:25 +01:00
rmu-odoo 6a66f9f011 [IMP] l10n_ar: create tag and update old tag for one tag per grid in the tax reports 2016-02-18 14:54:00 +01:00
Denis Ledoux 22830251c7 [FIX] website_sale: avoid to set no shipping address
This is related to the revision e673ee6c62.

The checkout shipping address must be written on the
sale order only if there is one.
2016-02-18 14:42:43 +01:00
Denis Ledoux a04fce47e9 [FIX] account: methods calling reverse_moves expects a list
The methods calling `reverse_moves` expects a list
as returned result.
For instance, in `account_move.py`, `account.partial.reconcile`,
method unlink:
```
reversed_moves = exchange_rate_entries.reverse_moves()
for rev_move in self.env['account.move'].browse(reversed_moves):
```

If there was no reversed moves, the method returned a boolean,
and a list otherwise. It should always return a list, empty
in the above first case.

opw-669790
2016-02-18 13:44:54 +01:00
Nicolas Martinelli 1ed7d16cfa [FIX] point_of_sale: hide debug manager and chatter
When printing a receipt in the PoS, the debug manager and the Livechat
content are displayed in the receipt. That's obviously something we
don't want.

opw-668675
2016-02-18 13:24:06 +01:00
Denis Ledoux e673ee6c62 [FIX] website_sale: checkout change of delivery address
If a customer had several delivery address,
and at checkout, choose another one than the default one,
his choice was applied, the delivery address remained the default
one.

This is a regression in Odoo 9.0 introduced in revision:
0414c9d.

The checkout shipping was applied only when it was a new
delivey address, due to the identation.

Part of the indentation issue was solved in 0f25a8c

opw-669787
2016-02-18 12:23:18 +01:00
Denis Ledoux d73e9efc2e [FIX] uninstall: models no longer in the pool
When attempting to uninstall a module
for which models are no longer in the pool
(the module is no longer is the addons path /
no longer in the current release),

- This isn't possible to drop the constraints,
  as this is no longer possible to know the table
  of the model.
- This is no longer possible to check if the
  model log the accesses (`_log_access`), as
  the model is no longer loaded in the pool.

opw-669130
2016-02-18 11:37:43 +01:00
Goffin Simon a8f4b3fa19 [FIX] mrp: wrong field
The field name on "mrp.bom" model didn't exist.

opw:669698
2016-02-18 10:02:36 +01:00
Goffin Simon 05179389bf [FIX] hr_hollidays: message_follower_ids
When an "hr.holliday" record is created or modified, the employee_id
linked to this record has to be added in the followers.
Inspired from ff1d384

opw:668515
2016-02-18 09:29:02 +01:00
Christophe Simonis d5f28f4a64 [FIX] base: do not force image when creating delivery/invoice partner
Let the default values choose the correct image by setting correct
value in context
2016-02-17 19:20:28 +01:00
Christophe Simonis 27058c4763 [IMP] delivery: Add "Archive" button on carrier view
Also allow to search on archived carriers easily.
2016-02-17 17:44:54 +01:00
Christophe Simonis 32378529e1 [IMP] ir.attachment: do not prefetch content
For textual attachments (like assets), the indexed content is the
content itself. Avoid prefetching this potential huge field.

When deleting attachments, only delete files once.
2016-02-17 16:44:41 +01:00
Christophe Simonis 01d5ddd993 [FIX] ir_qweb: handle duplicated preprocessed assets
Previous implementation was expecting exactly the same number of
attachments than the number of assets in a bundle. However it's
possible that duplicated assets are created due to concurrent first
generation.

This duplication cannot be avoid, but is cleaned upon next bundle
regeneration.

Joint work with @sle-odoo and @odony
2016-02-17 16:44:41 +01:00
Christophe Simonis d1a79ec704 [MERGE] forward port of branch saas-6 up to 9363372 2016-02-17 16:28:56 +01:00
Christophe Simonis 9363372efe [MERGE] forward port of branch 8.0 up to 0f46e6a 2016-02-17 16:20:23 +01:00
Joren Van Onder 207f4df992 [FIX] point_of_sale: expose ClientListScreenWidget
Allow easy modification of ClientListScreenWidget by other modules. If
you get creative you can actually get to it without this, but it's not
clean and needlessly complicated.

opw-669686
2016-02-17 16:06:29 +01:00
Denis Ledoux afb8ae0b69 [FIX] product: pricelist item delete cascade on pricelist deletion
On deletion of a pricelist,
the pricelist items were not deleted.

Meaning, if you deleted a pricelist,
and this pricelist was used in the product pricing,
the line with the pricing remained, but without any
pricelist set. Besides, as the field is required
in the view, this prevented to edit anything without
correcting the pricing line first.

opw-669652
2016-02-17 16:00:38 +01:00
Xavier Morel a4ee8e5723 [IMP] base_import: use mimetype guessing
Rather than trust the user-controlled mimetype or extension of imported
files which may be incorrect (because the user is lying, because the
system is misconfigured, because software is not installed, because
software is registering non-standard mimetypes, etc...), start by trying
to guess the mimetype *then* fallback on trying the type/ext.

Of note: CSV is becoming less and less great as it's nigh impossible to
guess for it.
2016-02-17 15:45:11 +01:00
Xavier Morel 078da0badd [IMP] move guess_mimetype to tools and improve it
* move guess_mimetype from ir_attachment to a misc submodule so it can
  be used outside of attachments (in base_import in this case)
* fix the broken detection of zip and OpenDocument files (would all be
  detected as msword files)
* correctly implement detection of OOXML files (including returning the
  right MIME type)
* attempt to correctly detect OLECF Excel files (.xls)
* add PPT detection (untested)
* remove duplicate patterns in GIF detection
2016-02-17 15:45:11 +01:00
Xavier Morel 97d2b758fe [FIX] catch exception on incorrect mime type
If the user provides a known mimetype which doesn't actually match the
file as far as we're concerned, warn and fallback on extension rather
than blow up.

This comes up when a user installs Excel on Windows: it associates CSV
files with itself and sets their mime type to application/vnd.ms-excel,
which is not correct and leads to us trying to load a CSV with xlrd (an
excel-parsing library).

Fixes #9779
2016-02-17 15:45:11 +01:00
Denis Ledoux b574616203 [FIX] mass_mailing: unsubscribe route without website
The unsubscribe URL is used within the `mass_mailing` module,
e.g. in `_get_unsubscribe_url` & `send_get_email_dict`.

Basically, there is the possibility to add the unsubscription
link in the mass mailings while having only
`mass_mailing` installed.

But, the unsubscription route is defined within
the module `website_mass_mailing`.

Therefore, if you added the unsubscription link
within your mailings while not having
`website_mass_mailing` installed, trying
to follow the unsubscription link leaded to
a `404 Not Found` page.

We therefore define the route within `mass_mailing`
directly, which does the basic stuff (the basic
unsubscribe and confirmation), and override this route
in `website_mass_mailing`, where the advanced stuff is done
(the mailing lists list unsubscription and the better
looking page).

opw-669425
2016-02-17 15:11:05 +01:00
Tanguy Charlier ec1e5c524b [FIX] hr_timesheet_sheet: missing labels in form view. 2016-02-17 14:46:16 +01:00
Géry Debongnie 12d5667830 [FIX] mail: use the domain to determine message to mark as read
The button 'mark all as read' used to mark all messages as read, which
is not usually what the user wants when there is an active filter in the
search view.  This commit make sure that the domain is send to the
server and used correctly.
2016-02-17 14:26:54 +01:00
Géry Debongnie be3f7ea433 [FIX] web: prevent focus issue with autoresize
The copied textarea used in autoresize was a valid target for focus when
using the tab key.  This is a major issue in editable list views,
because when the user leaves a textarea, the list view jumps up, with no
visible focused field.
2016-02-17 14:24:09 +01:00
Alejandro Santana 891ab5bc36 [CLA] Updating signature email for alejandrosantana
Updating the email that will be used now
Closes #10591
2016-02-17 14:19:59 +01:00
Martin Trigaux 1d15a2252a [FIX] doc: sesrver action example
Bad indentation, print is not available
2016-02-17 13:57:23 +01:00
Martin Trigaux d48f43ebff [IMP] doc: better workflow example
- Why is my workflow starting in b?
- It is not, it goes from a to b directly
- But I followed the example of the doc
- It's incomplete
2016-02-17 13:57:13 +01:00
Martin Trigaux d0556808de [FIX] doc: kanban values
The value formats is also available
2016-02-17 13:56:52 +01:00
Martin Trigaux 90fd24b2d3 [FIX] doc: gantt documentation
Tutorial was using gantt view from 8.0
Add documentation in reference section on new attributes
2016-02-17 13:56:04 +01:00