Commit Graph
102174 Commits
Author SHA1 Message Date
Cedric Snauwaert 4bb147b0f5 [FIX] account: in dashboard split menu invoices&refund in two distinct menu 2016-01-08 17:01:01 +01:00
Raphael Collet 152d9de6cf [FIX] fields: in many2many fields, command 5 removes accessible records only 2016-01-08 16:56:02 +01:00
Raphael Collet ece592dbf7 [FIX] fields: in many2many fields, avoid inserting duplicate entries in table 2016-01-08 16:55:43 +01:00
Raphael Collet 22d125fe96 [FIX] fields: in many2many fields, command 5 removes accessible records only 2016-01-08 16:53:18 +01:00
Raphael Collet 51e66711a9 [FIX] fields: in many2many fields, avoid inserting duplicate entries in table 2016-01-08 16:53:18 +01:00
Denis Ledoux d6b9c21c16 [FIX] crm: lost filters
From f255aa7,
the lost semantic is `probability = 0, active = False`

The existing filters "Lost" in the leads/opp search views
have not been updated with this change of semantic.

opw-666186
2016-01-08 16:49:46 +01:00
Thibault Delavallée a69c2bab0a [FIX] mail, mail_channel: recipients of channels
Mailing lists (mail.channel) should not send specific notification emails.
Indeed there can be a lot of recipients and customizing each email can
take time to compute. This leads to posting a message on a mail.channel
being very slow.

It is now possible for a model to customize the notification email
recipients computation. The first use is to ensure that mail.channel
encodes recipients using email_to instead of recipients_ids. This way
less processing is performed on notification emails.

This is a manual cherry-pick of commit d4a1eb4435
that was not forard ported. Mail has indeed evolved since 8.0 and its
forward port was not an easy task.

This commit also includes the fix of mail.channel recipients. All are now
considered as equal and receive a simple notification email. No distinction
is done between partners and users. The notification emails for channels
should be as simple as possible.
2016-01-08 16:40:40 +01:00
Raphael Collet a88c356872 [MERGE] mail: create a mixin model mail.alias.mixin for models using aliases
The mixin model factors out code necessary for interacting with mail aliases.
In particular, it initializes aliases upon record creation and delete aliases
upon record deletion.  This simplifies the definition of models using aliases.
2016-01-08 16:31:33 +01:00
Raphael Collet 3192693a23 [IMP] mail: remove method migrate_to_alias in favor of mail alias mixin 2016-01-08 16:22:05 +01:00
Raphael Collet a370102ba5 [IMP] project: adapt model project.project to the mail alias mixin 2016-01-08 16:22:05 +01:00
Raphael Collet 94e05ea163 [IMP] hr_recruitment: adapt model hr.job to the mail alias mixin 2016-01-08 16:22:05 +01:00
Raphael Collet 37c4e24e69 [IMP] crm: adapt model crm.team to the mail alias mixin 2016-01-08 16:22:05 +01:00
Raphael Collet 7bada82ce3 [IMP] mail: create a mixin class for models _inheritsing mail.alias 2016-01-08 16:22:05 +01:00
Raphael Collet 16c26525a7 [IMP] models: rename and document method to initialize a column in database 2016-01-08 16:22:05 +01:00
Géry Debongnie 0336f109f1 [FIX] web_planner: hidden by default
The web planner should be hidden by default.  Now, it is displayed,
then hidden in js after a while (but it can be seen by the user), then
displayed again if necessary
2016-01-08 15:57:21 +01:00
Simon Lejeune 9a8153ee55 [FIX] web_planner: show the planner when the state is 0% 2016-01-08 15:50:55 +01:00
Géry Debongnie 739301be09 [FIX] mail: add link to urls clientside, not serverside
the server should avoid as much as possible modifying emails.  Adding
links is a presentation concern, so this commit moves this logic client
side.
2016-01-08 15:02:22 +01:00
Martin Trigaux 7e7f5b82bc [MERGE] Migration of account_analytic_default to new API 2016-01-08 14:49:43 +01:00
Aaron Bohy dfdd38e3b2 [FIX] mail: Discuss: don't suggest to join private channels
Problem was that administrators have access to every channels, even private
channels they are not registered to, because when trying to join an existing
channel, the autocomplete proposed every channels accessible for the user, but
didn't filter private ones.

This rev. makes sure to only suggest non-private channels.

Also prevent '|' domain injection to disable filters (odoo/odoo@44e65e72d3)
by using expression.py to build domain.
2016-01-08 14:32:51 +01:00
Aaron Bohy 0fbc128033 [FIX] mail: followers: subtypes: correctly notify channels
Except for messages, activities on a document like internal notes posted
trigger notifications to partners and channels following the corresponding
activity's subtype.

Rev. 69ed801 rightly re-introduces a filter on followers to prevent notifying
more partners than necessary. Unfortunately, this filter doesn't take into
account channels, which are thus automatically removed from followers to
notify, whatever the subtypes they follow, e.g. internal notes on a document
don't appear in channels following the 'Note' subtype of this document.

This commit makes sure that channels always pass through that filter, but warns
users that public channels should probably not following internal subtypes.

Also makes the edit subtypes dialog html valid (li's must be inside, e.g., ul).
2016-01-08 14:32:51 +01:00
rap-odoo 9b38946529 [REF] account_analytic_default: migration to new API 2016-01-08 14:04:47 +01:00
rap-odoo 05a3e91487 [IMP] account_analytic_default: remove dead code
No longer called, removed in accounting refactoring
2016-01-08 13:56:35 +01:00
rap-odoo f51fd9ac8f [IMP] account_analytic_default: split files
KISS
2016-01-08 13:56:35 +01:00
rap-odoo 44d8e4b487 [REF] account_analytic_default: move files in proper folder 2016-01-08 13:56:35 +01:00
Raphael Collet 40be041ae7 [ADD] test_access_rights: add test writing on many2many field with access rules 2016-01-08 11:58:34 +01:00
Christophe Simonis 329c6e7763 [FIX] mail: check if browser support Notification API before verifying permission 2016-01-08 11:48:34 +01:00
Nicolas Martinelli 98e5673c90 [FIX] product: sort pricelist items by sequence
The pricelist items should be sorted by sequence.

opw-660745
2016-01-08 10:44:52 +01:00
Martin Trigaux 44e65e72d3 [FIX] mail: ignore abritrary argument domain for searching channel
We should not trust arbitrary arguments from public method to compose a domain
as it is possible to inject '|' to disable filters and be able to search any
channel (mitigated by access rules).
Create a private method and use a wrapper that ignores the domain.
2016-01-08 10:07:38 +01:00
Nicolas Martinelli fca05dfd5c [IMP] product_visible_discount: clean-up
Create a specific onchange method to calculate the discount instead of
extending current onchanges.
2016-01-08 08:13:00 +01:00
Nicolas Martinelli ef6116bfb5 [FIX] account: exchange difference date and amount
The use case is the following: the currency of a customer invoice (e.g.
EUR) is different from the currency of the company (e.g. USD). An
invoice is created in EUR, and a payment is done in EUR on the
receivable account which is in EUR.

Between the invoice date (e.g. 2015-01-01) and the payment date (e.g.
2015-02-01), the rate has changed. The reconciliation between the
invoice and the payment is done afterwards, for example 2015-03-01.

When the write-off related to the exchange difference is created:
- the date should be the max date between payment and invoice if the
  corresponding fiscal year is not closed (otherwise, today's date).
- the amount currency on the receivable/payable account should be zero,
  since the amount currency on the foreign exchange account is zero.

opw-659289
2016-01-08 08:11:24 +01:00
Nicolas Martinelli 54be29f0bc [FIX] product_visible_discount: fix price with tax included
_fix_tax_included_price should take new_list_price as parameter.
Moreover, this should be done in both onchange methods.
2016-01-08 08:06:15 +01:00
Christophe Simonis c5a22592df [MERGE] forward port of branch saas-9 up to 4852d60 2016-01-07 18:26:42 +01:00
Christophe Simonis 4852d6033d [MERGE] forward port of branch saas-8 up to 99b6cd8 2016-01-07 18:21:13 +01:00
Christophe Simonis 99b6cd8119 [MERGE] forward port of branch saas-7 up to 2a834c2 2016-01-07 18:19:52 +01:00
Christophe Simonis 2a834c22b0 [MERGE] forward port of branch 9.0 up to 100d604 2016-01-07 18:19:17 +01:00
Christophe Simonis 100d604cb0 [FIX] im_livechat: correct loader js code 2016-01-07 18:16:20 +01:00
Christophe Matthieu 231e026936 [FIX] product: write active value on all product variants from product template
Issue: When writing active on many products, only change the active value for the last product variants
2016-01-07 17:12:07 +01:00
Goffin Simon 61cf01b7a8 [FIX] mail: mailing domain not set properly
When selecting contacts from Contacts list views and clicking on
action window "Partner Mass Mailing", the 'active_domain' must be
filled in the wizard with the selecting contacts. In this way,
the right mailing_domain will be set when creating the related
mail.mass_mailing record (in addons/mass_mailing/wizard/mail_compose_message.py
in function get_mail_values).

opw:659383
2016-01-07 16:58:52 +01:00
Julien Laloux 96352ae515 [Fix] Remove an unwanted ">" sign in the print 2016-01-07 16:11:18 +01:00
Yannick Tivisse e03943a8df [IMP] Remove and clean product demo data
Remaining products :
- product_product_0 becomes service_order_01
- product_product_1b becomes service_cost_01
- product_product_43 becomes product_order_01
- product_product_47 becomes product_delivery_01
- prodcut_product becomes product_delivery_02
- Replace product_product_56 by service_delivery
- Replace product_product_59 by consu_delivery_01
- Replace product_product_58 by consu_delivery_02
- Replace product_product_57 by consu_delivery_03

Removed products :
- product_product_53, product_product_57, product_product_55, product_product_54, product_product_52,
  product_product_51, product_product_50, product_product_48, product_product_46, product_product_32,
  product_product_33, product_product_28, product_product_38, product_product_39, product_product_40,
  product_product_41, product_product_34, product_product_29, product_product_30, product_product_44,
  product_product_31, product_product_35, product_product_36, product_product_37, product_product_42,
  product_product_45, product_product_49, product_product_26, product_product_14, product_product_15,
  product_product_18, product_product_19, product_product_21, product_product_23

Removed corresponding binaries.

Removed all Bill of Materials demo data, that were ridiculous and replace them by 2 bom: A complete
computer, and a kit computer. Rewritten the tests accordingly.

Fixed tests :
- sale_mrp/test/cancellation_propagated.yml : The yaml ref function return a id, not a dictionnary
- sale_stock/tests/test_sale_stock.py : The service product invoiced on the delivered quantity was
  in fact not invoiced on delivery on the test. As we are in sale_stock, Without timesheet, we
  manually set the delivered qty for the product serv_del. If we don't do this, the invoice will
  never be fully invoiced.
- The pricelist rules choice is not based on the sequence anymore (Seems to be a bug, reported to
  online). By the way, I changed the product to avoid the overlap.
- sale_mrp/test/sale_mrp.yml: The yaml ref function return a id, not a dictionnary
- mrp : Rewritten the tests to be coherent with the new bom data
2016-01-07 16:07:28 +01:00
Keyur Gajjar ddff754303 [IMP] crm: improved lead to opportunity wizard labels 2016-01-07 16:06:16 +01:00
Prashant Panchal cd11497bd8 [IMP] product: removed product state field and cleaned list view
- removed product state field
- renamed Gross Weight label in Weight
- removed volume field from list view
2016-01-07 15:45:16 +01:00
Kinjal Mehta 77f9981297 [IMP] sale: filters update
Quotations and sales search views are udpated. Indeed they share a lot of
common filters. However their use is different and their filters should
therefore be different.

Using a base view, those two now have separate search views allowing to
define custom filters for quotations and sale orders.
2016-01-07 15:19:14 +01:00
Christophe Simonis 5ba5172d99 [MERGE] forward port of branch saas-8 up to 8064379 2016-01-07 15:16:56 +01:00
Christophe Simonis 18fc5307c1 [REL] 9.saas~9 2016-01-07 15:16:27 +01:00
rmu-odoo e19c7ebde2 [IMP] product: added field category_id in search view 2016-01-07 15:09:17 +01:00
Jeremy Kersten 9e6528f77d [FIX] email_template: allow to format date in the right language
Format_tz allow to format a date, but if the format was '%B', it was always January regardless lang in context
Now, it possible to use babel, to get the date in the customer language.

So:
    format_tz(object.date_order, format='short', context={'use_babel':1, 'lang': 'fr_BE'})
        will return '5/01/16 22:20'

    format_tz(object.date_order, format='short', context={'use_babel':1, 'lang': 'en_US'})
        will return '1/5/16, 10:20 PM'

    format_tz(object.date_order, context={'use_babel':1, 'lang': 'en_US})
        will return 'Jan 5, 2016, 10:20:31 PM'

    format_tz(object.date_order, context={'use_babel':1, 'lang': 'fr_BE'})
        will return '5 janv. 2016 22:20:31'
2016-01-07 14:42:57 +01:00
Mitali Patel 3941e41b9f [IMP] product: removed create uom from product view 2016-01-07 14:08:54 +01:00
Christophe Simonis c9401d70f8 [FIX] point_of_sale: remove leftover print statement 2016-01-07 14:02:53 +01:00
Srushti Patel b91b3217a6 [IMP] account,payment: Need to improve typo in helptip message, change 'that' into 'This' 2016-01-07 14:00:12 +01:00