Commit Graph
99161 Commits
Author SHA1 Message Date
Martin Trigaux bed409322d [ADD] point_of_sale: rescue sessions for orders on closed sessions
When an order is linked to a closed session, create a new rescue session for
these orphan orders. Orders should not be added to closed session as accounting
entries are already generated.

Add boolean field rescue (readonly and hidden to make sure user can not create
rescue sessions).
Ignore the unicity constraints for the rescue sessions.
2015-05-06 09:18:12 +02:00
Martin Trigaux 9f541d29bf [FIX] point_of_sale: use order creation date
The order should have the date it was created, not the one it was sent to server
(in case of issues, can be delayed of hours or days).
2015-05-06 09:18:11 +02:00
Martin Trigaux 44f9e923c2 [FIX] point_of_sale: set pricelist in create
The pricelist is set by default as the one of the first opened session. It's not
necessary correct (if more than one session) and is not working for rescue
sessions. Always set one.
2015-05-06 09:18:11 +02:00
Martin Trigaux 4801ce405a [FIX] point_of_sale: copy=False on stop_at field
It's set when the session is closed but a copied session is opened
2015-05-06 09:18:10 +02:00
Martin Trigaux 0e301874ba [FIX] point_of_sale: session_id field should always be set
Move required attribute to field instead of view. The orders created from the
pos should also have a specified session.
2015-05-06 09:18:10 +02:00
Raphael Collet 3e497ea35f [FIX] registry: recompute pure_function_fields after every setup
The lazy property `pure_function_fields` was not invalidated upon every setup
of models, and hence could contain old instances of fields.  As every model
setup re-creates instances of fields, the property has to be recomputed.
2015-05-06 09:11:53 +02:00
Jitendra Prajapati f63d2d5135 [ADD] hr_equipment: track employees' equipment and manage its allocation 2015-05-06 08:32:14 +02:00
Christophe Simonis 2260496879 [MERGE] forward port of branch 8.0 up to a939a27 2015-05-05 18:48:34 +02:00
Denis Ledoux a939a272ef [MERGE] forward port of branch saas-3 up to ae634e7 2015-05-05 17:55:25 +02:00
Denis Ledoux ae634e7a04 [MERGE] forward port of branch 7.0 up to 567ade5 2015-05-05 17:51:31 +02:00
Denis Ledoux 567ade56df [FIX] account: import invoices wizard currency amount
Within the 'import invoices' wizard in bank statements
(addons/account/wizard/account_statement_from_invoice.py)

Prevent currency rate differences when the statement
currency is within the company currency (and therefore
the debit/credit fields are already within the currency
of the statement)

opw-631895
Closes #6504
2015-05-05 17:48:18 +02:00
Raphael Collet 0c665edb66 [FIX] models: make sure an environment is available when we access field.digits
Accessing `field.digits` can crash if no environment is available at that
point.  This happens in function `get_pg_type()`, which is called from method
`_auto_init()`.  An environment is simply created in the method's scope to be
available for `field.digits`.
2015-05-05 17:33:16 +02:00
Raphael Collet 071152216f [FIX] fields: when computing digits, use an existing cursor instead of a new one
The computation of property `digits` was creating a new cursor to call the
function that determines digits.  This technique is fragile because the current
cursor may have pending updates that the new cursor will not see.

The issue was discovered by Cécile Tonglet (cto).  She observed an infinite
loop during a database migration, and a traceback inside the loop showed the
presence of the `digits` property.  This change fixes the infinite loop issue.
2015-05-05 17:33:16 +02:00
qdp-odoo 76082c9d9d [IMP] l10n_*: start adapting to accounting v9 - not finished, so all l10n modules are uninstallable for now 2015-05-05 17:28:04 +02:00
qdp-odoo c04065abd8 [IMP] accounting v9. Yeeeeaah 2015-05-05 17:28:04 +02:00
Lionel Sausin 9d7b6aa67f [FIX] mrp: default sequence on bom line
To avoid null sequence
Fixes #6074
2015-05-05 17:25:21 +02:00
Josse Colpaert 28b5d0da0d [IMP] stock, barcode: Add barcode nomenclature in picking type view 2015-05-05 17:14:16 +02:00
Christophe Simonis 94fc45b7e7 [FIX] mass_mailing: create an index on mail_mail_statisctics.mail_mail_id
As deletion of mail.mail records is frequent, we need to have an index
on this column to speed up deletion
2015-05-05 14:40:07 +02:00
Frédéric van der Essen 00236aafcc [FIX] point_of_sale: barcode patterns must match barcode as prefix, (and not anywhere in barcode) 2015-05-05 14:04:39 +02:00
Frédéric van der Essen 19161952cc [FIX] point_of_sale: undeclared variables do not go well with strict mode 2015-05-05 14:04:39 +02:00
Arthur Maniet bb252f201e [FIX] account: bank reconciliation widget: correctly set the 'New' button a new line (continuation of bf9544d7d4) 2015-05-05 12:50:37 +02:00
belkacem77 71c76aebc5 [CLA] sign for belkacem77 2015-05-05 11:36:24 +02:00
Julien Legros 8e6f9be08f [CHG] web: odoo.com account fallback url
The default odoo.com account page is now located at
https://accounts.odoo.com/account.
2015-05-05 11:29:15 +02:00
Jeremy Kersten 9f93a9ae1c [IMP] ir_http: add facebookinternalhit in the list of bot.
Avoid redirect in en_US if lang is installed  when a link is added via Facebook
2015-05-05 10:55:00 +02:00
belkacem77 72cc8b99a9 [ADD] web: Kabyle datejs file
Missing globalisation file for kab_DZ
2015-05-05 10:46:55 +02:00
Arthur Maniet 79904cd316 [IMP] account: bank statement reconciliation: allow to filter account.move.line on their residual amount 2015-05-05 10:44:06 +02:00
Martin Trigaux 7dd2d201a0 [FIX] web: localisation for Lao and Bosnian
The datejs globalisation files are loaded based on the user's language.
If the file is not present, the loading crashed and the user could not access to
the web client.
Adding empty files for lo_LA and renaming bs-BS.js to bs-BA.js for bs_BA (see
65d92da) that were missing.

By the way, this is a 0 bit commit, beat that!
2015-05-05 10:28:17 +02:00
Arthur Maniet 3050d6e275 [IMP] account: bank statement reconciliation: a statement line partner can be removed, not only substituted 2015-05-05 10:21:50 +02:00
Olivier Dony c667eb06b8 [FIX] website: only consider valid languages in URL path
Improves aea358ca67 and avoid spurious
redirects for URLs that do not match a controller but do not
have a valid language.

When the URL does not match any controller, the language
matcher tried to strip the leading path component, treating
it as a language code. For example:
    /fr_BE/page/homepage
would not match any route, so it would be rerouted internally
as  /page/homepage, after setting `request.lang` to fr_BE.

This breaks the magical 404 handler that allows ir.attachment
entries to be mapped to static URLs. Due to the internal rerouting,
the mapping of e.g. /website_mycompany/static/src/image/logo.png
would be rerouted to /static/src/image/logo.png and not match
the mapped URL anymore.

Now the stripping of the path component will only occur if
that path component matches an installed language code.

The consequence is that URLs containing uninstalled language codes
will now lead to 404 errors - an acceptable trade-off (e.g.
when an older version of the website is still indexed by a search
engine)
2015-05-05 10:12:22 +02:00
Arthur Maniet ce32867a90 [FIX] account: bank statement reconciliation:
- ctrl-enter only persist balanced reconciliations
- give a reconciliation proposition only if there's an unambiguous match
- added some missing tanslations
- use default order to display statement lines in reconciliation widget
2015-05-05 09:55:36 +02:00
Yannick Tivisse f09b118659 [IMP] product : change tooltip, m^3 and kg are not used all over the world 2015-05-05 09:29:56 +02:00
Nicolas Martinelli 7feb9c112b [FIX] report,qweb: use non-beaking space between amount and currency
Fixes #6369
opw-633975
2015-05-05 08:27:04 +02:00
Denis Ledoux 90cb409be9 [FIX] stock: procurement set as done of sets bom.
In the case of sets, several stock moves can have
the same procurement.

Therefore, appending procurements in the list `procurement_ids`
without checking if the procurement isn't already in the list
could lead to having several times the same
procurement in that list,
and could therefore lead to the check of the same procurement
over and over, leading to performances issues and the fact you cannot
call `write` on a list having several times the same id.
See models.py 3875

Using a set instead of a list solve this issue

opw-634393
2015-05-04 18:05:17 +02:00
Jérome Maes ea022f0d4a [FIX] website_blog, website_sale, website_quote, website_slide : fix adding comment after mail migration
The commit 4b122ad41d rename the 'type' field of mail.message into 'message_type'. The change was not applied to the adding comment feature of website module. The comments were posted but not displayed.
2015-05-04 17:17:31 +02:00
belkacem77 d377f5690e [ADD] base: Kabyle language
Add a new language: Kabyle language
2015-05-04 16:56:03 +02:00
Jeremy Kersten 19a09ceada [FIX] website: force default lang for edit master option
Since user is redirected automatically in his preferred language, the button edit_master redirect always to
the current lang and so not the master.
2015-05-04 15:26:10 +02:00
Erwin van der Ploeg 782deef905 [FIX] hr_timesheet_invoice: untranslated warning message 2015-05-04 15:07:51 +02:00
Mathieu Le Marec - Pasquet f6a4c932b0 [FIX] auth_ldap: anonymous connection
LDAP allows anonymous authentication with no password. In such case
conf['ldap_password'] is None so converting would fail.
Fixes #5763
2015-05-04 14:43:09 +02:00
Mathieu Le Marec - Pasquet 1593c5c482 [CLA] makinacorpus / kiorky: sign cla 2015-05-04 14:39:03 +02:00
Frédéric van der Essen 8df1c8d2b6 [IMP] pos_loyalty: demo data for the pos_loyalty module. 2015-05-04 14:13:47 +02:00
Frédéric van der Essen dc1e795638 [IMP] pos_restaurant: demo data for the restaurant module 2015-05-04 14:13:47 +02:00
Frédéric van der Essen 855597c47e [IMP] point_of_sale: removing tech products from the pos demo 2015-05-04 14:13:47 +02:00
Frédéric van der Essen 22f22dfa26 [IMP] point_of_sale: simplified pos demo data
Conflicts:
	addons/point_of_sale/point_of_sale_demo.xml
2015-05-04 14:13:47 +02:00
Frédéric van der Essen 623443eee4 [FIX] pos_restaurant: remove useless console.log() 2015-05-04 14:13:46 +02:00
Frédéric van der Essen 815875ac52 [FIX] pos_loyalty: remove useless console.log() 2015-05-04 14:13:46 +02:00
Frédéric van der Essen 49b9e59efd [FIX] point_of_sale: remove useless console.log() 2015-05-04 14:13:46 +02:00
Frédéric van der Essen 17cc9fd52c [IMP] point_of_sale: put the customer's name in the customer change button instead of the order tabs 2015-05-04 14:13:46 +02:00
Frédéric van der Essen e0b91720b0 [FIX] point_of_sale: prevent backspace from performing a 'back' navigation. 2015-05-04 14:13:46 +02:00
Frédéric van der Essen d3c18f583e [IMP] point_of_sale: automatically close the point of sale when open in another tab. 2015-05-04 14:13:45 +02:00
Frédéric van der Essen 5979662ea8 [IMP] point_of_sale: various improvements for failed orders handling
- The POS will retry sending unsent orders before closing the pos.
 - A warning is emitted before closing the POS with unsent orders.
 - Errors message will not be repeated on each order posting.
 - The status widget shows a different icon for offline and server
   crashes.
2015-05-04 14:13:45 +02:00