Commit Graph

94123 Commits

Author SHA1 Message Date
Raphael Collet 9699f510e4 [FIX] res_users: fix wrong index when parsing m2m commands 2015-08-05 14:35:42 +02:00
Denis Ledoux 91417516ae [FIX] web_calendar: use of selection fields as color filters
Using a selection field as color filters in a calendar view
had as effect to display the second letter of the state name
(The state name string, index 1)
as filter, instead of the full state name.

Besides, the colors of the filters did not match.

e.g., Sales > Sales > Sales Orders > Calendar View

opw-646486
2015-08-05 14:25:45 +02:00
Nicolas Martinelli f26b94fd7d [FIX] sale: filter taxes to keep the ones applying to the partner company
The problem originally arises in the frontend (eCommerce). In this case, it is
necessary to switch the user id to the SUPERUSER_ID in order to be allowed to
create a SO. This is done in the method sale_get_order in the module
website_sale. The consequence is that in a multicompany configuration, all taxes
of the product will be retrieved and applied in the frontend.

This fix filters the taxes retrieved to keep only the ones which apply to the
company of the partner, when the user id is SUPERUSER_ID.

opw-645258
opw-645915
2015-08-05 10:39:56 +02:00
Goffin Simon 663be8118f [FIX] account: tax sign in supplier invoice
When changing manually the the amount of tax in supplier invoice,
the tax sign of the tax must be kept.

opw:645691
2015-08-05 10:30:11 +02:00
Nicolas Martinelli 6f355623f0 [IMP] account_cancel: better handling of bank statement cancellation
Before this addition, cancelling a bank statement line was allowed even if the
bank statement was confirmed. However, when the bank statement is confirmed, it
is not possible to reconcile it afterwards. The consequence is that is was not
possible to reconcile this bank statement line without cancelling the whole
bank statement, and therefore forcing the user to do the complete
reconciliation process again.

With this addition, it is not possible to cancel a bank statement line if the
corresponding bank statement is confirmed. However, we offer the user the
possibility to reset the bank statement to draft through a new button. This new
button will only change the state of the bank statement, and will not modify
the state of the associated bank statement lines. The consequence is that the
user will be able to first set the bank statement to draft, then cancel the
bank statement lines he wants, and finally launch the reconciliation process
only on the lines which were cancelled.

opw-645903
2015-08-05 08:18:21 +02:00
Denis Ledoux 4d9cef5412 [FIX] google_calendar: Google doesn't allow wrong attendee emails
Odoo allows bad formatted emails for partners (and attendees).
Google doesn't.
Therefore, upon sync, if the email is wrong, we do
not send it to Google, to avoid Google being mad at us.

opw-646369
2015-08-04 18:54:58 +02:00
Denis Ledoux dd500b34b7 [FIX] google_calendar: log google bad requests reason
For debugging easyness.
For instance, when trying to sync an event with an attendee
with a wrong email, google failed, it's wasn't easy
to know why from the logs

It is now a bit easier.

opw-646369
2015-08-04 18:54:58 +02:00
Laetitia Gangloff a56319c390 [FIX] l10n_be_coda: Add date_invoice in demo data
To be sure than the invoice is integrated into the create fiscal year in demo data
Closes #7723
2015-08-04 17:18:38 +02:00
Ronak Baxi f8efc8a6c3 [FIX] payment: typo in track_visibility 2015-08-04 17:03:51 +02:00
Olivier Dony c96174da5f [MERGE] Forward-port of latest bugfixes from saas-3 up to 733cb3e76f 2015-08-04 15:22:49 +02:00
Denis Ledoux be98d30e79 [FIX] website_mail: advanced email features button snippet colors
Due to the fact the background color was hardcoded, it
wasn't possible to edit the colors of the button link
with the website editor wysiwyg

opw-646655
2015-08-04 15:18:18 +02:00
Olivier Dony 733cb3e76f [MERGE] Forward-port from 7.0 up to 8b3d69a0d7 2015-08-04 15:17:51 +02:00
Daniel Reis 8b3d69a0d7 [FIX] orm: performance of regex to check search `order` spec
This regex is used for a quick sanity check of
the order_spec in `search(order=<order_spec>)`.
Because it was build on the repetition of a
group ending with a series of optional patterns,
it could cause expensive backtracking when the
order spec did not actually match the regex
(the regex engine was trying all possible ways
to split the groups)

Forcing the repeating group to either end
with a comma or the end of the string prevents
prohibitive backtracking, while being even
more restrictive with regard to the syntax of
the order spec.

Closes #7755
2015-08-04 11:45:01 +02:00
Olivier Dony df002518ee [FIX] models: access error due to prefetch of indirectly referenced records
Complements commit af9393d505
in light of commit 62b0d99cfe,
to really have the correct effect.

When the prefetching failed due to the presence of
extra records in the cache (for which the access is denied),
the `read` operation was indeed retried. However the
result was not stored in the cache because the cache
already held a FailedValue (automatically added when the
prefetch failed).
2015-08-04 00:00:31 +02:00
Kiril Vangelovski d1d4688521 [FIX] analytic_user_function: hr.timesheet user onchange
Make additional argument to on_change_user_id in analytic_user_function
optional so that it wont break other modules.
2015-08-03 23:30:43 +02:00
Pedro M. Baeza 4fdd99588c [FIX] board: Put keyword argument on fields_view_get super call 2015-08-03 19:04:13 +02:00
Denis Ledoux 28f89db7b7 [FIX] stock: call to `create` of ir.sequence using args=
By default, the argument to pass the record values is `vals`,
not `values`.
Besides, it's not mandatory to provide the argument name
when it's not optional.

opw-646374
2015-08-03 18:04:57 +02:00
Martin Trigaux 180b2e7746 [I18N] Transifex project URL
Thank you Transifex to change the URL scheme from time to time, that's cool.
cf https://www.transifex.com/blog/2015/new-url-schema/
2015-08-03 17:25:44 +02:00
Nicolas Martinelli 6d882973f7 [I18N] account: add missing term TIN
Introduced in commit 7ddc9846a2
Fixes #5757
2015-08-03 14:40:17 +02:00
Daniel Dico c230bf89b5 [FIX] hr_timesheet_invoice: bad identation during refactoring
Introduced at 55f9cbf, bad indentation was skipping a block of code when no
customer was specified.

Closes #7813
2015-08-03 11:39:45 +02:00
Nicolas Martinelli 9b1ab76eb2 [IMP] purchase: invoice state of PO line calculated from invoice state of move
Before this fix, a PO line was set as invoiced if all associated invoices were
validated. This is an issue if the invoice_method of a PO is set on 'picking',
and that only a partial quantity is received and invoiced. Indeed, in this case
it was never possible to meet the condition, and the PO could not be set to
'done'.

After this fix, the PO line invoice state is calculated from the invoice state
of the related moves, if the invoice_method of a PO is set on 'picking'. This
is more logical, and moreover this makes possible to set a PO line as invoiced
as soon as all the related moves are done or cancelled.

opw-644399
2015-08-03 09:04:43 +02:00
Goffin Simon a6831546c1 [FIX] stock_account: VAT issue
In the case of a move from an out_invoice not linked to a sale order, the customer taxes set on
the product of this move must be taken into account to create the customer invoice line.

opw:645879
2015-08-03 09:01:17 +02:00
Nicolas Martinelli bac0c395ae [IMP] account: do not hide Journal and Period in Journal Items
The Journal field is not hidden anymore when filtering on the 'journal_id'. The
reason is that the filter might correspond to several journals. Therefore it is
not possible to know what is the journal corresponding to a given journal item.

The same is applied to the Period.

Fixes #7793
opw-646292
2015-08-03 08:16:37 +02:00
Nicolas Martinelli f0cfc7c01e [FIX] delivery: price_unit converted in the invoice currency
When the invoice is created from the picking, the delivery charges needs to be
converted into the invoice currency. Indeed, there is no currency on a delivery
pricelist.

opw-646148
2015-08-03 08:16:31 +02:00
Nicolas Martinelli 282fc4a850 [FIX] openerp: export empty string instead of None
xmlrpc 1.0 does not support None/null, so commit f3e4d0a will break xmlrpc api.
Therefore, we export an empty string if the field is empty, instead of False or
None. For integers and floats, zero is exported.

opw-643966
2015-08-03 08:16:23 +02:00
Antony Lesuisse b4f7288193 [REM] test: phantom_jsfile method
deprecate phantom_jsfile method, keeping only phantom_js, phantom_js takes a
code argument to run client side only.

Removing phantom_jsfile will allow to switch from phantom to any other engine
such as running google chrome or firefox directly. The only use of
phantom_jsfile was an example.
2015-08-02 14:37:19 +02:00
Odoo Translation Bot 389252dd95 [I18N] Update translation terms from Transifex 2015-08-02 08:30:05 +02:00
Odoo Translation Bot 218ffc1a5a [I18N] Update translation terms from Transifex 2015-08-02 01:59:36 +02:00
Matthieu Dietrich 54a477d797 [FIX] fetchmail: socket timeout
Add a 60s timeout to fetchmail connections.

Closes #7790
2015-08-01 17:31:49 +02:00
Olivier Dony 53794135d9 [FIX] l10n_be: tax names should be in French, Dutch translations in i18n_extra (part 2)
Closes #7741
opw:645846
2015-07-31 18:22:50 +02:00
Goffin Simon 43c98fe42b [FIX] l10n_be: tax names should be in French, Dutch translations in i18n_extra
Closes #7741
opw:645846
2015-07-31 13:27:01 +02:00
Nicolas Lempereur e7e9eb987b [FIX] website: copy paste from website
Pasting from the website to the website could for example copy
t-field="..." which then would easily add an error if e.g a field
is copied to an area where it is not available.

This fix strip the data-oe-... attributes of nodes added to the DOM
when pasting.

closes #7653
opw-644968
2015-07-31 13:17:11 +02:00
Adrien Peiffer (ACSONE) c838a27dea [REF] purchase: Move make_invoice_by_partner method out of makeInvoices method
Closes #5783
opw-645036
2015-07-31 12:47:35 +02:00
Olivier Dony 154ffa0c1a [FIX] website_sale_delivery: make error message translatable when no method matches + better wording 2015-07-31 11:36:16 +02:00
Goffin Simon b654a33a13 [FIX] website_sale: previous with adyen
When clicking on previous in Adyen payment, the customer will be
redirected in the shop and not in the confirmation page.

opw:645705
2015-07-31 10:20:45 +02:00
Goffin Simon f10c03ac68 [FIX] sale: onchange task_work
The unticked option in Sales settings "Prepare invoices based on task's activities"  doesn't
have to uninstall the options "Record timesheet lines per tasks" and "Generate tasks from sale orders"
in Project settings.
When "Prepare invoices based on task's activities" is unticked, this fix avoid to uninstall these options each
time we go to Sales settings because "onchange_task_work" is triggered each time we go to Sales settings.

opw:645833
2015-07-31 08:48:12 +02:00
Nicolas Lempereur 2d407de5d4 [FIX] mrp_byproduct: remove bom uos when calculating byproduct
In commit 43977deb7 a mrp.bom was transformed from a recursive model
which may contains BoMs containing BoMs and so on, to a simpler model
containing a line of products (mrp.bom containing mrp.bom.line).

mrp_byproduct wasn't changed to reflect on this change which caused an
error.

Since there is no product Unit of Sale on a byproduct, the current
behaviour causing the error of trying to multiply based on the Unit of
Sale of the BoM product has been removed.

closes #7806
opw-645639
opw-645640
2015-07-30 17:23:50 +02:00
Manuel Vázquez Acosta d49c16e99a [FIX] mail: Typo in mail.js. 2015-07-30 14:50:57 +02:00
Anthony Ruhier 75092f0a14 [FIX] doc: typo in backend tutorial 2015-07-30 14:49:44 +02:00
Anthony Ruhier c337b389b6 [CLA] Add anthony25 in individuals CLA 2015-07-30 14:49:34 +02:00
Martin Trigaux 2f8a6bc228 [I18N] cleaning of .pot
Remove terms that should not have been in .pot file.
For most of the terms, it is due to the content of <attribute/> tag and fixed
at rev 4e572e351eb in master
Other terms are in translate=off tag so woll no longer be present a next export.
2015-07-30 14:11:09 +02:00
Nicolas Lempereur 030b157895 [I18N] point_of_sale: update unknwon customer
related to opw-645977
2015-07-29 15:18:17 +02:00
Nicolas Lempereur b8f9ca4027 [IMP] website_sale: clear promo pricelist when cart empty
opw-646221
2015-07-29 14:38:23 +02:00
Olivier Dony bb2c051d25 [MERGE] Forward-port of latest bugfixes from saas-3 up to cc5860fbcf 2015-07-29 14:01:17 +02:00
Olivier Dony cc5860fbcf [MERGE] Forward port latest bugfixes from 7.0 up to b4de311 2015-07-29 13:54:41 +02:00
Olivier Dony b4de311b0c [FIX] auth_crypt: use system random number generator
Switch to system random as number generator instead of the
default PRNG, which is not recommended for generating
security-related values such as unique tokens.

(Complements parent commit)

Closes #7761
2015-07-29 13:49:11 +02:00
Colin Newell 93f5f86afd [FIX] auth_signup, event_moodle, pad, share, survey: use system random number generator
Switch to system random as number generator instead of the
default PRNG, which is not recommended for generating
security-related values such as unique tokens.

Closes #7761
2015-07-29 12:40:31 +02:00
Christophe Simonis ecfaf213c4 [FIX] module loading: pre/post_init_hook execution
New installation was detected using the `installed_version` attribute
(`latest_version` in `ir_module_module` table), but this field wasn't
reset at module uninstallation (now fixed by cb29f9e) avoiding
execution of hooks.

Same logic was applied for migration scripts at 8ff7230.

Fixes #7708
2015-07-29 12:30:14 +02:00
Wolfgang Taferner 52edf789c2 [FIX] auth_crypt: safer import of base module
Commit 856bc6f2b1
may cause an issue if the auth_crypt module
is loaded before the base module. That should never
happen in normal circumstances, but forcing an
explicit import does not hurt and makes it safer.

Closes #6742
2015-07-29 12:19:55 +02:00
Commandant Custo a2fe8e18d6 [IMP] stock: moved quants from the stock move view
Display the moved quants in the stock move form view for more efficient WMS
maintenance and traceability.
Closes #6093
2015-07-29 12:16:43 +02:00