Commit Graph
100753 Commits
Author SHA1 Message Date
qdp-odoo f862467ff2 [FIX] account: when a currency difference is reversed, we need to match together the origin currency line on the partner account and its newly created reversal otherwise they don't cancel each other completly since they still both appear on reports, followups... 2016-02-16 17:38:19 +01:00
qdp-odoo 11cdd5b841 [FIX] account: put the partner_id on the currency difference line otherwise the receivable account of the partner won't be equal to 0 2016-02-16 17:38:19 +01:00
Christophe Simonis 19551aec2e [FIX] sale: missing oldname of team_id fields
These attributes have been forgotten during rewrite in new-api.
2016-02-16 16:29:54 +01:00
Goffin Simon 8e78f0e841 [FIX] purchase: PO without picking
When an order is created without any picking, the button
"RECEIVE PRODUCTS" can be hidden.

opw:669081
2016-02-16 14:24:08 +01:00
Damien Bouvy a5e8f22701 [FIX] payment_ogone: s2s response should generate payment method
Ogone responses comes from direct s2s calls or form feedback;
not necessarily in that order. The behaviour of the system should
be the same in both cases. This commit add payment_methode creation
when a s2s response contains the necessary information, juste like
the form feedback methods.

Ideally these methods should be merged to share the same code,
this will be done in master (v10).
2016-02-16 11:29:08 +01:00
Damien Bouvy 36e681cbe5 [FIX] website_quote: sales order do not use workflow any longer
+ old message_post call with wrong kwargs.
2016-02-16 11:29:08 +01:00
Aaron Bohy b87b6cc613 [FIX] mail: allow to extend make_message() and make_channel()
to load and display more fields of the corresponding model.
2016-02-16 11:27:11 +01:00
Goffin Simon 851992cdd6 [FIX] product_visible_discount: lst_price
In a SO line, the price unit is taken from function "_product_price"
set on the product(model: "product.product"), this is why the variable
new_list_price has to be taken on the product too. In this way, the right
discount can be computed. Before the fix, new_list_price was equal to
the price set on the product template(list_price) then if the product template had
several variants with several sale price, the discount was wrongly computed.

opw:668636
2016-02-16 10:37:54 +01:00
Martin Trigaux c40070fb02 [I18N] web_planner: remove outdated terms
Have been removed at bcca4a44c
2016-02-15 16:35:54 +01:00
Denis Ledoux 52b394861b [FIX] link_tracker: use werkzeug url_encode instead of urllib
`Werkzeug.url_encode` can handle unicode,
while `urllib.urlencode` cannot.

opw-669541
Fixes #10928
2016-02-15 16:31:42 +01:00
Denis Ledoux 755415189a [FIX] stock_landed_costs: additional costs with multiple UoMs
When making a landed costs with pickings using
unit of measures different than the default products unit of measure,
the additional costs added to the quants inventory value were wrong.

This is due to the fact the quants unit of measure is always
the quants product unit of measure, while the quantity
in the adjustment lines were assumed in the stock moves
unit of measure.

As there is no unit of measure field on the adjusment lines,
it makes sense to assume the quantity within the product
unit of measure, to display the quantity within the unit
of measure the user uses the most, which is, normally,
the product unit of measure.

Thanks to this, the additional costs added to the quants
inventory value is now correct.

opw-668374
2016-02-15 16:16:16 +01:00
Richard Mathot e78e57ac82 [FIX] packaging: include *.xsd and *.wsdl files when necessary 2016-02-15 16:13:29 +01:00
Jeremy Kersten 55aa065a40 [FIX] website_crm_partner_assign: return 404 if not partners found
SEO : Avoid to have Soft 404
2016-02-15 15:48:43 +01:00
Jeremy Kersten 36602305dd [FIX] website_slide: add domain on model converter
Avoid to index 403 pages
2016-02-15 15:48:43 +01:00
Jeremy Kersten 7f7c31aa89 [FIX] website_slide: promote is for employees only.
Avoid to be in sitemap.
Anyway, it is show only if group user and no permission for public user.
2016-02-15 15:48:43 +01:00
Jeremy Kersten 682342667e [FIX] website: confusing name and domain_name
To match the current website, we should compare the request http_host to the domain and not
to the website name. That was working luckily because name and domain in demo was the same.

close #10870
2016-02-15 15:48:43 +01:00
Martin Trigaux 9c4c3809fd [FIX] web: missing space in translations
Translated text is stripped of starting and ending spaces on Transifex which
makes the result text look bad (as translators do not put spaces in their
translation either).
Add explicitely a space to be sure it's present in the translation.
Will have no effect on English as it's HTML
2016-02-15 15:31:45 +01:00
Nicolas Martinelli cf62fdb44b [FIX] product: default pricelist item
By default, a pricelist can be created without pricelist item. However,
if a user does not have the rights to manage the pricelist items (or
simply does not want to manage them), the feature is unusable. Indeed,
the user will create a new pricelist (for example, in a new currency),
but this pricelist will not have any item. Therefore, the pricelist will
not apply to anything.

The fix creates a pricelist item by default. The pricelist item is the
most generic possible: it applies to all products and uses the list
price as a base price.

opw-667607
2016-02-15 14:57:45 +01:00
Christophe Simonis a6cf37e930 [MERGE] forward port of branch saas-6 up to 0a1362a 2016-02-15 14:46:27 +01:00
Christophe Simonis 0a1362a19b [FIX] website: video snippet size detection 2016-02-15 14:37:44 +01:00
Martin Trigaux 37969e4b76 [FIX] account,stock: reference to removed menu
Help menu "?" has been removed at bcca4a44, remove the sentence from the planner.
Can not adapt the text as would break the translations.
opw 669462
2016-02-15 14:01:29 +01:00
Aaron Bohy 2f58e95a8d [FIX] mail: composer: correctly erase mentions
The problem was that mentions weren't correctly erased with DELETE key (in some
conditions), or when replacing mention text. When this happened, the mention
didn't appear in the message, but the message was even tough sent to the erased
mentioned people.

With this rev., we don't try to detect erasing on the fly anymore, but we
rather validate mentions before sending the message with the content of the
input.

opw 669362
2016-02-15 12:18:44 +01:00
Cedric Snauwaert cc319c0c08 [FIX] account: field code does not exist anymore on account_account_type 2016-02-15 12:01:51 +01:00
Denis Ledoux 2db5fc9f37 [FIX] im_livechat: group by code insttead of session name
In the report model `im_livechat.report.channel`,
The `session_name` field no longer exists. It has been
replaced by `technical_name` instead, labelled
`code`.

opw-669443
2016-02-15 11:55:57 +01:00
Denis Ledoux fcd10521e9 [MERGE] forward port of branch 8.0 up to 5401345 2016-02-15 11:37:27 +01:00
Denis Ledoux 5401345ce2 [MERGE] forward port of branch 7.0 up to ce38582 2016-02-15 11:36:02 +01:00
Denis Ledoux ce38582907 [FIX] mrp: update production quantity wizard factor
Use the same factor than the one used when
computing the products to consume at confirm.

Before, the quantity of products to consume was wrong
when using a different unit of measure in the BOM
than in the production order.

e.g.
 - BoM defined as:
   - 1 dozen of milk
   - BoM lines: 1 cow
 - Production order:
   - 1 unit of milk
   - BoM: The above one
At confirm, the quantity to consume is 0,083 cow (1 cow / 12, this is correct)
But, when updating the quantity to 2.0,
it updated the quantity of cow to 24.0, instead of 0,16.

opw-669447
2016-02-15 11:34:16 +01:00
Goffin Simon 62587f1842 [FIX] base: _get_default_image
When a shipping/invoice contact is created, the picture with the truck/dollar must
be used. Inspired from 66d4de7
2016-02-15 10:59:08 +01:00
Goffin Simon b6cbc36f9a [FIX] product, stock_account: volume, weight, standard price in product template
When a product template has several variants, the fields volume, weight and
standard price don't have be displayed in the prodcut template form view.

opw:669240
2016-02-15 09:51:42 +01:00
Jeremy Kersten e45edc1912 [FIX] website_mail_channel: Impossible to subscribe to forum_post
Missing from previous commit 503824184c
2016-02-14 16:12:30 +01:00
Odoo Translation Bot f35fd798f1 [I18N] Update translation terms from Transifex 2016-02-14 02:59:46 +01:00
Odoo Translation Bot ee42be5921 [I18N] Update translation terms from Transifex 2016-02-14 00:34:15 +01:00
Goffin Simon 1f081bed9f [FIX] sale: Ordered Qty=0 in a SO line
A SO line with an ordered qty less or equal to the sum of all the quantity
linked to its procurement must be ignored. In this way, when a SO line has
an Ordered Qty equal to 0 in a SO, all the other lines can be processed like
in 8.0

opw:669200
2016-02-12 15:06:51 +01:00
Denis Ledoux 4c7e33fd93 [FIX] event_sale: event tickets domain in sale order line
From saas-6, setting `0` as maximum available seats
means there is an unlimited amount of tickts that
can be sold, as stated in the help message of the field:
```
Define the number of available tickets. If you have too much registrations you will
not BE able to sell tickets anymore. Set 0 to ignore this rule set as unlimited.
```

This domain is the same domain used than in
the QWeb views of `website_event_sale`.

opw-669355
2016-02-12 14:21:49 +01:00
Denis Ledoux 26d6e83881 [FIX] mail: specific message subscribe
`write` expects a `dict` for the `values` argument,
`part[record.id]` is a list of commands to add new
followers.

See the returned variable `specific` of the method
`_add_follower_command` in `mail_followers.py`.

Surrounding `part[record.id]` with a `dict` with
`message_follower_ids` has probably been
forgotten by oversight.

`gen` and `part[record.id]` have actualy the same
syntax, and the `write` done with these variables
should therefore be called the same way.

opw-669376
2016-02-12 13:54:05 +01:00
Aaron Bohy 26f1d75606 [FIX] mail: followers: can't access res.partner case
When the user can't read the model res.partner, former code tried to determine
whether or not the user was follower of the document. This was wrong for three
reasons.

First, it performed an RPC to get the partner_id of the current user, but this
info is already stored in the session so the RPC was useless.
Second, the partner_id isn't helpful to know if the user is a follower because
everything we have is the follower_ids, which aren't ids of the res_partner
model, but ids of the mail_follower model (compare apples and oranges...).
Third, we anyway didn't use that information at all as the button indicating
whether or not the user is a follower wasn't displayed.

This rev. simply removes that useless RPC and only displays the count of
followers as previously.
2016-02-12 12:10:08 +01:00
Denis Ledoux 24315867bf [FIX] crm: email link in opportunities help message
The email link in the opportunities help message
was built as:
`<a href="mailto:info">odoo.com</a>`
instead of:
`<a href="mailto:info@odoo.com">info@odoo.com</a>`

opw-669361
2016-02-12 11:58:07 +01:00
Nicolas Lempereur c1784a4d28 Revert "[IMP] calendar: enable change recurrence start/stop"
This reverts commit 33755f1882.

note: revert for now since some scenarios were not taken into account,
detached event could have been moved to another day.
2016-02-11 18:43:32 +01:00
Nicolas Lempereur 924c2dee21 [FIX] {web_,}calendar: order contact sidebar
In 22051dc, the sidebar contacts of the calendar were ordered, this does
it in another way to solve several issues when selecting filters.
2016-02-11 16:34:33 +01:00
Nicolas Lempereur fb7bb95a11 [FIX] web_calendar: operator prirority typo from e029724 2016-02-11 16:34:33 +01:00
Nicolas Lempereur 33755f1882 [IMP] calendar: enable change recurrence start/stop
When editing a recurring event clicking `Update only this instance`
allow us to detach this event from the recurring sequence, but without
clicking it there are instances where the event will still be detached
maybe unexpectedly.

Clicking on it will create an event which shadow the recurring one that
being done thanks to:

- recurring_id: the id of the recurring event creating this event
- recurring_id_date: start of the virtual event this new event shadows

Before this commit: when the start or end date of an recurring event is
changed, all modification are not applied on the recurring events but
only the current virtual event occurrence is detached and modified.

After this commit:

- when the end date of a recurring event is modified, it is modified for
  all the instance (not detached) of the recurring event,

- when the start date of a recurring event is modified, it is modified
  all the instance (not detached) of the reccuring event and if:

  * one occurrence of the recurring event is still on a (not-moved)
    detached event of this recurrence, this virtual event will be
    shadowed.

  * a detached event has now no occurrence of the recurring event on its
    day, it will still be left untouched but will now not shadow an
    event anymore.

eg.

we start with recurring event A on 4, 5, 6 => we see [4: A, 5: A, 6: A]

-> detach event on 5 calling it B => we see [4: A, 5: B, 6: C]
-> change start of recurrence to 5 => we see [5:B, 6:A, 7: A]
-> change start of recurrence to 7 => we see [5:B, 7:A, 8: A, 9:A]
-> delete detached event B on 5 => we see [7:A, 8: A, 9:A]
-> change start of recurrence to 3 => we see [3:A, 4: A]

closes #10873
fixes #10278
opw-665700
2016-02-11 15:56:14 +01:00
Géry Debongnie f201cb5b7e [FIX] mail: various ui improvements
- swap reply-to and mark-as-unread buttons in threads
- remove blockquote from stripped html in channel previews
- readd padding to no-content message in threads, also to no match found
  message
- add 1 to chat window z-index to prevent control panel buttons to show
  through it
2016-02-11 15:49:10 +01:00
Christophe Simonis f89eda9eb2 [FIX] base: ir.qweb: save assets attchment with correct references
Force the values of `res_id` and `res_model` when creating assets
attachments. This avoid getting wrong default values from the context.

When using the mail composer with a automatically created report (like
when sending a quotation by email), if the report asset must be saved,
the context used is the one from the mail composer, which contains a
`default_res_id` entry.
2016-02-11 15:29:31 +01:00
Raphael Collet ac9e8c0700 [FIX] ir_translation: use ValidationError in constraint method 2016-02-11 15:21:03 +01:00
Goffin Simon 935e61bab5 [FIX] stock_account: "Set standard price" button
When a product with costing method = standard price and inventory valuation = perpetual (automated),
the button "Set standard price" in General information in  "product.template" is shown if the
product template has only one variant. In the other case, the button is displayed in the variant
view form.

opw:668568
2016-02-11 15:02:41 +01:00
Goffin Simon 6a7482702a [FIX] stock: Customer Address in report delivery slip
The customer address must be the shipping address defined on the SO.
The contact address can be removed from the report because the object
passed to the report is the stock.picking where the partner_id is the
one linked to the shipping contact.

opw:669015
2016-02-11 14:43:46 +01:00
Denis Ledoux 504689e14f [FIX] base_setup: typo, Ressources > Resources
opw-669266
2016-02-11 12:47:24 +01:00
David Monjoie 21a64ad96e [FIX] sale: removed wrong and duplicated sales team groubby
The section_id field has been renamed to team_id in 9.0. Moreover,
the Sales Team group by is already present in the view from which
this one was inheriting, resulting in duplicated group by's.
2016-02-11 11:11:36 +01:00
Jeremy Kersten e48439d89c [FIX] website: encode lang (come from database) into utf-8 before join
Join can fail if url contains non-ascii char

Fix urls like:
   /page/波
   /page/русский
   /page/%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9
2016-02-11 09:30:04 +01:00
Goffin Simon 22051dcc1b [FIX] calendar: To avoid duplicate contacts
Before the fix dda8e2211a, the duplicate
records were erased thanks to the index used in the dictionary(id of the partner).
After this fix, to avoid this this problem, the label of each record is used as
key in the dictionary.
2016-02-10 19:53:58 +01:00