Commit Graph

94123 Commits

Author SHA1 Message Date
Christophe Simonis e8076c3854 [MERGE] forward port of branch saas-3 up to 5c7190c 2015-07-29 12:11:20 +02:00
Christophe Simonis 5c7190c93f [MERGE] forward port of branch 7.0 up to cb29f9e 2015-07-29 12:07:34 +02:00
Christophe Simonis cb29f9efac [FIX] base: reset `latest_version` field when uninstalling a module. 2015-07-29 12:00:15 +02:00
Jusab Sida fd65b57b08 [IMP] sales_team: fix the help message
of the active field. Try not to tell the opposite of the actual
behavior.
2015-07-28 18:30:28 +02:00
Jusab Sida 034f540664 [IMP] crm, base_calendar: help messages on the
active field were misleading. Actually, not really misleading, just
wrong. Because the behavior is the opposite of what the help tells.
2015-07-28 18:27:39 +02:00
Nicolas Lempereur 96f0c28b3d [FIX] point_of_sale: unknown customer translation
The string "Unknown Customer" in the point_of_sale could not be
translated.

opw-645977
2015-07-28 17:17:04 +02:00
Nicolas Lempereur c1cb489ebe [FIX] purchase: uom for PO without product_id
When a purchase order line doesn't have a product_id, the current onchange
method would return False as uom_id since b675ff1, thus introducing an issue
since uom_id is required and the field may be not shown (so not changeable).

closes #7770
opw-646088
2015-07-28 16:50:52 +02:00
Martin Trigaux 5792e4063b [FIX] calendar: bad field label 2015-07-28 14:07:48 +02:00
Martin Trigaux 3114c5cf09 [I18N] product: remove term
lst_price was exported as found in tag
<attribute name="name">lst_price</attribute>
so lst_price was exported

Remove from pot to avoid confusion
2015-07-28 12:30:11 +02:00
Wolfgang Taferner 9d0cb024fd [FIX] website_sale: fix google analytics variable from google snippet 2015-07-27 21:58:33 +02:00
Josse Colpaert 2fddf1729b [FIX] product_margin: product template should be the correct one and make group bys work
The fact that it uses the correct template id now, fixes #6860

The read_group calculates the sum for every group for the non-stored fields  as it is not possible
anymore to add it in the xml, fixes #6638

The read_group simply searches for all products in the group and sums the totals of the fields for these
products.
2015-07-27 14:48:37 +02:00
Christophe Simonis 5e6ec89659 [MERGE] forward port of branch saas-3 up to 43235e2 2015-07-27 14:09:57 +02:00
Christophe Simonis 43235e2d1d [MERGE] forward port of branch 7.0 up to 0e151f7 2015-07-27 14:08:38 +02:00
Olivier Dony 2d83656c0f [FIX] analytic: multi-path name_search should properly handle `limit`
Due to commit 1576bc9891,
when name_search() is called on analytic accounts with
multiple path components (e.g. A/B/C), the intermediary
searches are done without the extra domain criterions,
because they should only apply to the leaf.

However because the limit was applied for each step
of the multi-path search, it was quite likely that
no valid results were found in the final filtering,
returning no result at all.

In fact the intermediary steps should not apply the
limit at all, because the leaves we're looking for
may actually be located under parents that are not
found when the limit is applied on each step.

This commits removes the limit (hopefully without
too much of an extra penalty for large databases)

It also introduces a better fallback in case the
multi-path search did not produce any result,
for example if the name of the lead really contains
a '/', and it was not meant to be a path separator.
2015-07-27 12:58:48 +02:00
Aristobulo Meneses b2193e6734 [ADD] payment_sips
contains acquirer definition to support Atos Wordline online payments
Courtesy of Eezee-It

Closes #6684
2015-07-24 18:10:57 +02:00
Christophe Simonis 799fff6897 FIX] mail: ignore parent message for forwarded private messages. 2015-07-24 17:56:30 +02:00
Martin Trigaux 71b0a4cb6c [FIX] crm: next action date display condition
The next action date (date_action) should be red if in the past, not if the
deadline date is in the past.
Introduced at 9f68a37
Courtesy of @sve-odoo 🎅
2015-07-24 16:01:59 +02:00
Goffin Simon 52cba1b563 [FIX] mrp: BOM state button from product.product
When clicking on the BOM state button from product.product, and clicking
on create afterward, it must open mrp.bom view with the product and product variant
already set(as with product.template).

opw:645045
2015-07-24 15:56:07 +02:00
Goffin Simon fe12c3453b [FIX] product: access rights pricelist
If the price in a price list line is based on "Supplier Prices on the product form",
the model "product.supplierinfo" and "pricelist.partnerinfo" must be readable by the
public user.

opw:645709
2015-07-24 15:12:16 +02:00
Goffin Simon 8a2ff461db [FIX] point of sale: create account move line
The method "_create_account_move_line" must take into account the rounding
method when computing the taxes for each line.

closes #7683
opw:645516
2015-07-24 15:05:26 +02:00
Christophe Simonis af9393d505 [FIX] orm: access error due to prefetch of indirectly referenced records.
The new-api record prefetching algorithm attempts
to load data for all known records from the requested
model (i.e. all IDs present in the environment cache),
regardless of how indirectly/remotely they were
referenced. An indirect parent record may therefore
be prefetched along with its directly browsed children,
possibly crossing company boundaries involuntarily.

This patch implements a fallback mechanism when
the prefetching failed due to what looks like an
ACL restriction.

The implementation of `_read_from_database` handle
ACL directly and set an `AccessError` as cache value
for restricted records.

If a model (like `mail.message`) overwrites `read` to
implements its own ACL checks and raises an `AccessError`
before calling `super()` (which will then call
`_read_from_database`), the cache will be not fill,
leading to an unexpected exception.

If this commit messae looks familiar to you, that's
simply because this is the new-api counterpart of
b7865502e4
2015-07-24 14:01:09 +02:00
Ondřej Kuzník ee145347a3 [FIX] crm_claim: visibility of field
Display claim_count and claim_count_out only to salesman and contact creation
group members as it requires these access rights to be computed.
Fixes #2458, Closes #7734
2015-07-24 12:33:17 +02:00
Julien Legros a8c6e666fa [FIX] point_of_sale: load disabled uoms
this is needed when selling products with a disabled uom
2015-07-24 12:05:42 +02:00
Nicolas Lempereur 6e090f5d5b [FIX] survey: improve printing
Don't use select element when printing a non-filled survey, and small
appearances improvements.

opw-645011
2015-07-24 09:35:02 +02:00
Nicolas Lempereur eb427f64d6 [FIX] crm_claim: unused date closed displayed
The state of a crm claim has been removed in f14eddb.

Thus, it is not possible to know the closure date and this commit hides
the field in the view.

opw-645826
2015-07-24 08:45:53 +02:00
Nicolas Lempereur c9461b316f [FIX] crm_helpdesk: typo for closing date
The value associated to the the "Closed" is done and not close.

opw-645808
2015-07-24 08:42:53 +02:00
Nicolas Lempereur 0e151f7f32 [FIX] web_view_editor: javascript errors
A jquery selector $('td[id^=]') may have been valid once uppon a time,
but it cause error on current jquery versions.

Also in some case when we want to add a field on a view, there may be
a mess to detect the parent.

opw-645557
2015-07-23 15:48:53 +02:00
Martin Trigaux ab54722e78 [IMP] base_action_rule: allow to use time in domain
Unlink typical domain evaluation (ir.rule, filters,...), the evaluated domain
for automated actions did not included time in the context so it was not
possible to make time based conditions in domain.

This should be used with care as filters 'Based on Timed Condition' are still
possible and will probably be enough (and safer) in most cases.
2015-07-23 15:33:15 +02:00
Goffin Simon 7f5f945dcf [FIX] sale: _sales_count
The field "state" in "sale.report" model must consider the state used
by "sale.order.line" to be consistent with the view created in this model.

The function _sale_count in 'product.product' model must return
the number of product included in a "confirmed" or "done" sale order line.

opw:644200
2015-07-23 15:28:36 +02:00
Nicolas Lempereur 21f2e7b467 [FIX] website_sale: get right variant image if list of variant
If the variants are displayed by list of attributes, the image of a
product displayed would be updated to the image of the first variant.

But this was not done when using the customizing option "List View of
Variants".

opw-645729
2015-07-23 14:02:32 +02:00
Nicolas Lempereur c0bf28534e [FIX] crm_claim: wrong many2one on claims report
The field used for the report was different than the field used on the
model the report is based uppon.

As analyzed by jle.

opw-645582
2015-07-23 11:04:13 +02:00
Nicolas Lempereur 4914e07718 [FIX] doc: xpath invalid for 8.0
The current xpath was the one for saas-6 or future 9.0 but didn't work
in version 8.

closes #7715
opw-645555

note: this commit should not be forward ported after 8.0
2015-07-23 10:12:49 +02:00
Nicolas Lempereur 3835a1e344 [FIX] doc: typos in themes tutorial
closes #7715
opw-645555
2015-07-23 09:43:01 +02:00
Martin Trigaux 9905261108 [FIX] crm: permissions on computed field
Accessing the phonecall and the lead do not require the same permissions so
should not be computed in the same method.
The effect of the multi was already lost as the phonecall_count was already
computed in another loop.
Add the phonecall_count button in a second view to make the computation only if
the user has the requried access rights.

Fixes #2458
2015-07-22 15:39:26 +01:00
Nicolas Lempereur 74e52a9ce6 [FIX] im_livechat: hide livechat button when printing
related to opw-645011
2015-07-22 15:33:36 +02:00
Martin Trigaux 9abf868948 [FIX] google_calendar: missing part of caac19c1
Modify all references of google_attendee['email']
2015-07-22 12:22:35 +01:00
Nicolas Lempereur c0e24fc9ce [FIX] event_sale, website_event_sale: treat edge case of 0 seats_max
When the max seats available is set to 0, there should not be a limit to
the seats available.

Previously this was not taken into account in the frontend event ticket
sale, so an event would appear to be sold out.

fixes #6999
opw-645542
2015-07-22 12:32:15 +02:00
Martin Trigaux caac19c102 [FIX] google_calendar: attendee's email is not required
You may get a google_attendee without email from Google, cf #3853
2015-07-22 10:37:50 +01:00
Martin Trigaux 4ac9bfb619 [I18N] website: missing terms
The content of website.layout_footer_copyright is modified in several modules
but the terms were missing in .pot file.
2015-07-22 09:40:32 +01:00
Martin Trigaux 0fb1b6a856 [FIX] point_of_sale: method expects id
The method add_payment expects to recieve the id of a journal, not a browse
record. Introduced at 4b548d9
Courtesy of bluesoft83
2015-07-22 08:54:21 +02:00
Goffin Simon aa3ce8b594 [FIX] crm: Company name in crm lead
The onchange on partner field must not fill the company name if
the partner is not a company or not in a company. If the partner
is not a company, the contact name field must be filled with the
partner name.

opw:644878
2015-07-20 16:30:41 +02:00
Goffin Simon e0ceab9efd [FIX] calendar: group_by with calendar
Delete the code introduced by 656f8241d5
Group by didn't work in calendar tree view, group of records showed (0)
as number of related records for each group.

closes #7602
opw:644735
2015-07-20 15:41:47 +02:00
Odoo Translation Bot 0871f423a3 [I18N] Update translation terms from Transifex 2015-07-19 02:01:00 +02:00
Jos De Graeve 38281c2c9c [CLA] Update CLA from apertoso
add new team member Jean-Paul
fix email adres Maarten
2015-07-17 16:45:00 +02:00
Valentin Chemiere 3033790ef1 [FIX] sale: use updated context instead of new one
Keep the existing information in the context for the price_get call instead of
creating a new one.
Closes #7646
2015-07-17 16:40:35 +02:00
E.R. Spada II 707db0399e [FIX] product_extended: BOM Correct total cost
When calculating the cost, quantity did not take the product efficiency into
account when calculating the cost. The quantities on the MO order were correct,
but not the cost that needs to be increased to compensent efficiency.

Closes #5927
Closes #7648
2015-07-17 15:13:11 +02:00
Nicolas Lempereur 00c2a9980e [FIX] google_spreadsheet: use new spreadsheet id
When doing a copy of a google drive spreadsheet (in google_drive.py's
copy_doc method, using the following google API call
https://developers.google.com/drive/v2/reference/files/copy).  Google
server return an error if we used the old spreadsheet KeyId.

The new FileId is available in the AlternateLink and this commit updates
it.

closes #7660
opw-644889
2015-07-17 14:57:17 +02:00
Goffin Simon 569d051f0b [FIX] point of sale: tax fixed
In backend, the method "_unit_compute" doesn't round the fixed tax amount
before adding to "cur_price_unit" in the case "tax.include_base_amount".

opw:644421
2015-07-17 14:09:02 +02:00
xmo-odoo d4cc447427 Merge pull request #7651 from fhe-odoo/patch-12
Fix typo in install doc
2015-07-17 11:36:34 +02:00
Goffin Simon 1cedcf6abb [FIX] sale: Sale Order Line Onchange
Changing the product quantity must not change Product UOM.

opw:644542
2015-07-17 09:48:42 +02:00