Commit Graph

94234 Commits

Author SHA1 Message Date
Josse Colpaert fa1842cb1d [FIX] stock: add procurement group for extra moves in picking
When pack operations generate extra moves, they should
take the same procurement group as those of the picking.

That way, when invoicing, they will be put on the same
invoice when there is a different invoice address on the
sale order.
2015-08-06 14:55:44 +02:00
Goffin Simon 5831aca505 [FIX] account_followup: contact with type = "invoice"
In "Payment Follow-up" when clicking on "Send Overdue Email"
if contact with type = "invoice"  and an email exists in the childs then
the email will be send to this contact else the normal behavior
is kept. When the overvue email is sent to a contact who is not the commercial
partner, a message is written in the chatter of the commercial partner to inform him
that the email has been sent to the "invoice" contact.

Closes #7870
opw:646149, 646575
2015-08-06 13:04:49 +02:00
Christophe Simonis d3e9bde738 [MERGE] forward port of branch saas-3 up to 2ab698b 2015-08-06 11:02:24 +02:00
Christophe Simonis 2ab698b4b1 [MERGE] forward port of branch 7.0 up to d2d81ca 2015-08-06 11:01:47 +02:00
Denis Ledoux 5cd1235b06 [FIX] purchase: Purchase invoices stat button group on partner form
The group applied on the purchase invoices stat button
was "Accountant", while "Invoicing & payments" is enough.

That way, the customer and purchase invoices stat buttons
have the same group applied, which makes sense.

opw-646748
2015-08-06 10:05:01 +02:00
Josse Colpaert d789ac7793 [FIX] stock: No rereserve visible if pack operations have been generated already fixes #7725 2015-08-06 09:48:18 +02:00
Olivier Dony d2d81ca9d8 [FIX] crm_partner_assign: search_geo_partner() should not pick deactivated partners 2015-08-06 09:20:24 +02:00
Goffin Simon 4f6eebf698 [FIX] account: tax sign
Division by 0 introduced by c525c6712a
2015-08-05 19:03:15 +02:00
Olivier Dony 5a41a3011a [FIX] ir_translation: undo asymmetric change of set_ids/get_ids
Partial revert of commit 39d17c2580
of PR #4617, that broke translations by introducing a different
set of criterions for filtering translations in `_set_ids()` and
`_get_ids()`, adding the `module` column in `_set_ids`.

This meant `_get_ids` would see translations that `_set_ids`
would never update: the translation interface did not appear to
be working anymore as soon as a translation entry existed with
no `module` value.
This is likely for manual entries and for entries bootstrapped
by `translate_fields()`, as they do not belong to any module.

The situation described in PR #4617 probably requires an extra
fix in the translation import system instead.
2015-08-05 16:29:16 +02:00
Goffin Simon c525c6712a [FIX] account: tax sign
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 16:10:37 +02:00
Goffin Simon 4f91dc371c [FIX] website_sale: transaction error
When an error occurs during the transaction, the customer must receive
a message to inform him.

opw:645705
2015-08-05 15:19:45 +02:00
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