Commit Graph
100808 Commits
Author SHA1 Message Date
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
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
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
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
MORIN Fabien 0f46e6a04c [FIX] l10n_fr_hr_payroll: update plafond_secu to 2016 values
The previous amount was for 2011. New amount is 3218€
https://fr.wikipedia.org/wiki/Plafond_de_la_S%C3%A9curit%C3%A9_sociale#Historique_des_valeurs
2016-02-17 13:51:31 +01:00
MORIN Fabien fab7902924 [CLA] signature for fabienmorin
Closes #10878
2016-02-17 13:49:40 +01:00
Temur Vibliani aefa2cf2c3 [FIX] README with links to 9.0 instead of master
Fixes #10904
2016-02-17 13:43:11 +01:00
Denis Ledoux 876634b1da [FIX] crm: merge of partners twice in the action menu
The link to open the merging partners wizard was duplicated
in the action menu:
 - Once as "Deduplicate Contact",
 - Once as "Merge selected contacts".

This is due to the revision 30a7ef8,
converting the
`<record model="ir.actions.act_window"...`
to an
`<act_window`
which creates an action binding automatically.

No action binding must be created for this window
action, as there is already another one,
the link to this wizard is already in the
partners action menu, thanks to the `act_window`
`action_partner_merge`.

Besides, the `'default_state': 'option'` seems useless,
as this is the default value set in the model directly.
On the opposite, removing the `active_test` (as done in
the revision mentioned above) could be armful. We
therefore re-set it.

opw-669688
2016-02-17 13:00:59 +01:00
Kevin Chappell 9187dc15e5 [FIX] remove --auto-reload from Documentation
Option --auto-reload was removed (and the corresponding feature bound to
--dev), don't document an option which doesn't exist anymore.

closes #10697
2016-02-17 12:45:27 +01:00
Xavier Morel 26a8b438b6 [IMP] provide pg connection information as keywords
When the database_or_uri is not a URI, rather than generate a dsn string
just collect the various psycopg2.connect keyword arguments in a
dictionary, and return that. This way psycopg2/libpq is the one doing
any necessary processing on the various parameters.

Fixes #3865 and fixes #6958 in a more resilient manner than manually
escaping dsn-injected values so database names or passwords containing
spaces or non-ascii characters work correctly.

In case a URI is provided to the dsn() function, return it as the `dsn`
keyword to get the same behaviour as previously.

Since we're checking dsns by equality, a dict should work just as well
as a string.
2016-02-17 12:12:14 +01:00
Olivier Dony 1e729c7c5a [FIX] analytic: name_search with negative operators
The algorithm for matching analytic accounts based
on search term is only meant to be used for
simple, positive operators.
In other cases the results will not be what the user
expects. Falling back to the default name_search
behavior will be more useful.
2016-02-17 10:49:00 +01:00
Josse Colpaert eafebcb308 [FIX] mrp: for the consume move lines, the expected date should also be the planned date of the production order
It was like that for the date field, which is taken into account for the forecast quantity,
but in the view the scheduled date field is shown.  We put the scheduled date equal to the date.
That way it is clear to the user when the products are foreseen to be consumed.
2016-02-17 10:11:57 +01:00
Goffin Simon 598856e1e0 [FIX] account : tax details in invoice report
When a tax with an amount of 0 percent was linked to an invoice line,
this tax didn't appear in the tax details in the bottom of the invoice
report.

opw669162
2016-02-17 09:33:10 +01:00
Denis Ledoux c89e45358e [FIX] purchase: default order date
By calling directly the method `fields.Datetime.now`,
the default order date was the datetime at which
the server is started or the worker created,
while, it should be the current datetime, not
the datetime at which the registry has been
loaded.

opw-668278
2016-02-16 18:19:01 +01:00