Commit Graph
99784 Commits
Author SHA1 Message Date
Christophe Simonis 4b4a71c282 [MERGE] forward port of branch saas-7 up to 8f9194e 2015-11-25 19:13:43 +01:00
Christophe Simonis 8f9194e8ea [MERGE] forward port of branch 9.0 up to 32c7c31 2015-11-25 19:12:53 +01:00
Christophe Simonis 32c7c31b40 [MERGE] forward port of branch saas-6 up to a73e292 2015-11-25 19:08:27 +01:00
Christophe Simonis a73e29255d [MERGE] forward port of branch 8.0 up to 1c5c255 2015-11-25 18:59:05 +01:00
Christophe Simonis 421ad47143 [FIX] sales_teams: correct default team_id search.
Handle the case where there is no team matching requirements.
2015-11-25 18:38:14 +01:00
Damien Bouvy 414c567dd1 [FIX] web_settings_dashboard: merge apps & enterprise panels
- Makes the panel less obtrusive and does not disrupt the
layout of the dashboard anymore.
- Use the global version info to save an extra RPC call.
2015-11-25 18:13:01 +01:00
Damien Bouvy 111b3838dc [FIX] mail: store expiration data w/ correct group 2015-11-25 18:13:01 +01:00
Damien Bouvy eee26f4454 [FIX] base: expiration date does not belong in the community edition
The expiration date will now be set when installing the enterprise
'web' module instead of at the init of the database since putting
an expiration date on a community edition database doesn't make sense.
2015-11-25 18:13:01 +01:00
Damien Bouvy 0a6edac151 [FIX] web, openerp: make the webclient edition aware
- Differentiate between the Community and Enterprise editions
in the version number. By adding this attribute on the global
odoo JS object in the web client bootstrap controller /web,
we can differentiate between versions easily on the client
side without extra RPC calls.

- Remove a couple of version-related RPC calls in case
the global version info is present in the JS environment

- Update "About" panel to display the edition info

- This commit also reverts 07fe5afc87
which implemented the idea in a more limited way.

Closes #9625
2015-11-25 18:12:42 +01:00
Martin Trigaux e8e5405d0c [I18N] Update French translation terms from Transifex
Fixes #9712
2015-11-25 17:22:26 +01:00
David Monjoie bc0521805a [FIX] hr_holidays: consistent leave allocations create
This window action did not open the create form
view as a leave allocation but as a leave request,
which was inconsistent with the very similar
open_allocation_holidays action. With the former,
the duration field was two dates. On the latter,
it was only a number of days, as it should be for
leaves allocations.
2015-11-25 16:56:05 +01:00
Christophe Simonis f61cfaefc8 [MERGE] forward port of branch saas-7 up to 572cbfc 2015-11-25 16:43:19 +01:00
Aaron Bohy 0413cc9641 [FIX] web: display pager in SelectCreateDialog 2015-11-25 16:23:44 +01:00
Christophe Simonis 572cbfc66c [MERGE] forward port of branch 9.0 up to 4d8ddab 2015-11-25 16:18:35 +01:00
Christophe Simonis d490630745 [MERGE] forward port of branch 9.0 up to b293953 2015-11-25 16:18:10 +01:00
Nicolas Martinelli 4d8ddabe63 [FIX] purchase: keep track of all procurements
Keep track of all the procurements in the field "Source Document" of the
PO.

opw-654424
2015-11-25 16:10:40 +01:00
Nicolas Martinelli 39f8b5aff7 [FIX] stock: error if not assigned
When the user validates a picking without going through the manual
reservation process, Odoo tries to assign the picking then performs the
transfer. However, if the picking could not be assigned, no pack
operation is created and the picking will simply be set to done.

The fix raises an error if the picking could not be assigned completely.
Another solution is to use a force_assign instead of action_assign, but
that could lead to the creation of negative stock moves without warning
the user. We therefore prefer to stay on the safe side and force the
user to manually handle the reservation.

Note: the original issue was that the Owner of the picking was not
copied on the quant when validating right away. The reason was that no
pack operation was created.

opw-654423
2015-11-25 16:09:16 +01:00
Joren Van Onder 8cedda60cc [IMP] point_of_sale: allow group_pos_user to open their own pos sessions
Before this, users in group_pos_manager had to open sessions for users
in group_pos_user and noone really understood how that worked. So this
just simplifies everything.

Users wanting the previous behavior can easily just modify the
pos.config user ACL entry.
2015-11-25 15:38:34 +01:00
Darshan Kalola 1b714bdc6c [FIX] point_of_sale: fix 'Group of Taxes' calculation
There were still references in the POS to a child_ids field on
account.tax. This field was renamed in accounting v9 to
children_tax_ids. Because child_ids wasn't loaded anymore this meant
that child_ids on the taxes in the POS was always undefined. On top of
that the original code used Array.prototype.concat() assuming it
modified the array, when in fact it returns a new array.

All of this meant that group taxes in the POS were never calculated,
this resolves that.
2015-11-25 15:34:28 +01:00
Joren Van Onder b32355e9b7 [FIX] point_of_sale: fix forward port of currency displaying
This fixes the forward port of 5c9b4556e3
from saas-6, which was forward ported to 9.0 in
56a442e205.
2015-11-25 15:13:16 +01:00
Yannick Tivisse 4371bfcbbd [FIX] mass_mailing: Remove crappy onchange
There was a misunderstanding in the model implementation for campaigns.
The inheritS was handled in a strange way while redefining the name field,
and creating the utm campaign_id field in an onchange.

A stable commit has been given in saas-6, while this one will remove the onchange in saas-7
What's done:
- Remove the required name field
- Set campaign_id as name with the _rec_name property
- Remove the onchange on the model and the view
- Everything will be handled thanks to the inheritS mechanism
2015-11-25 14:37:35 +01:00
Martin Trigaux 1c5c255186 [FIX] calendar: translatable date content
The time_display is present in a translatable email template but was not
translated. Added the missing term.

Updated .pot file for a few missing terms.
Removed base_calendar.pot that has no reason to be in 8.0

Fixes #9573
2015-11-25 14:36:55 +01:00
Denis Ledoux 2fd14db574 [FIX] stock: multi-company rule for stock.quant.
`stock.move` & `stock.product` have multi-company rules.
There is therefore no reason why `stock.quant` could not have one.

Besides, this could lead to access rights issues,
when a user went to the `Quants` list,
in Warehouse > Traceability > Quants,
while there were quants for products in a company different
than the user company.

opw-653188
2015-11-25 14:32:46 +01:00
Goffin Simon b2939537d9 [FIX] website_quote: using a quotation template with a fiscal position
When creating a SO with a quotation template, the lines created
with the quotation template must take into account the fiscal position
set on the SO to compute the right taxes.

opw:657015
2015-11-25 14:31:22 +01:00
Christophe Simonis 83f56a30a6 [FIX] website_sale: declare js function in the right module 2015-11-25 13:59:07 +01:00
Christophe Simonis 56a442e205 [MERGE] forward port of branch saas-6 up to dade7e3 2015-11-25 13:26:02 +01:00
Nicolas Lempereur 8d3bdf6b50 [FIX] project: IE11 issue with kanban overflow
In 6fd7fc9 the issue was solved in some instance, but there was still an
issue with the combination of IE11 / Odoo community / Overflowing content.

fixes #9696

related to opw-653477
2015-11-25 12:40:47 +01:00
Denis Ledoux dade7e3c17 [FIX] website_quote: confirmation email at payment.
`website_quote` overrides `payment.transaction`.`form_feedback`
the same way `website_sale` does,
in case `website_quote` is installed without `website_sale`.

Therefore, the revisions
 - 4adb4b8
 - 809e1a6

must be applied there as well.

opw-657432
2015-11-25 11:22:44 +01:00
Christophe Simonis 12d5b4168f [MERGE] forward port of branch 8.0 up to 8e1a5ad 2015-11-25 11:18:21 +01:00
Cedric Snauwaert d31b1ab2a7 [FIX] account: amount_residual_signed should be negative for refunds only 2015-11-25 11:02:32 +01:00
Nicolas Lempereur f5bd1cc922 [FIX] web: local var parent typo
fixes #8516

note: was already solved in enterprise with 7ab5075
2015-11-25 11:00:52 +01:00
Goffin Simon 15ff26c9f7 [FIX] website_quote: onchange_template_id
If a quotation template was used to create a SO, the default customer
taxes set on the product's line were not set on the SO lines.

opw:657015
2015-11-25 10:14:34 +01:00
Goffin Simon 0b52e8a887 [FIX] tools: html_keep_url
If an url is the label of a tag a, the htm_keep_url doesn't have
to treat this url.

opw:656821
2015-11-25 10:09:25 +01:00
Raphael Collet 8e1a5add38 [FIX] api: improve decorator returns to handle special cases, like method search
Add the possibility in the decorator to specify the `upgrade` and `downgrade`
functions that convert values between APIs.  Both function have the same API:

    upgrade(self, value, *args, **kwargs)
    downgrade(self, value, *args, **kwargs)

The arguments ``self``, ``*args`` and ``**kwargs`` are the ones passed to the
method, following its new-API signature.

Fixes #4944, #7830.
2015-11-25 09:59:35 +01:00
Olivier Dony 3b833b2039 [FIX] analytic: optimize name_search for large databases
On databases with a large number of res.partner entries,
the extended name_search of analytic accounts was prohibitively
slow, due to the expensive name_search on res.partner.

Restricting the search to the partner name is extremely
similar business-wise, but makes a huge difference in
terms of speed. E.g. sub-second results vs 10+ minutes
for a database with 30k analytic accounts and 600k partners.
2015-11-24 20:00:58 +01:00
Yannick Tivisse 23a4adc199 [ADD] project,crm,website_mail: Email template to send on email installation 2015-11-24 18:50:28 +01:00
Yannick Tivisse 56cec604e6 [ADD] mail: Test on email template on scheduled dates 2015-11-24 18:50:27 +01:00
Yannick Tivisse 364b4ba06d [ADD] Add a scheduled date mechanism on email templates
And use this new features to send the email template defined in the last commit
on the module installation.
2015-11-24 18:50:27 +01:00
Nicolas Lempereur 6fd7fc9643 [FIX] project: IE11+ issue with flex and overflow
IE11 and IE Edge presented issue in the project kanban view with content
overflowing its container.

On IE Edge it could be solved by "min-width:0" on the left part of a
kanban card, so it was an issue in the computation of widths order.

But on IE11 that wasn't enough so a less elegant fix has been used.

opw-653477

(solution found mainly by qsm)
2015-11-24 17:37:28 +01:00
Cedric Snauwaert 0ff9a1c34a [FIX] account: wrong error message for _check_currency constraint 2015-11-24 17:29:58 +01:00
Martin Trigaux 4250f7beee [FIX] account: error message
The error message on the journal entry for currency was wrong.
The multi-currency view does not exists anymore in 9.0 so is no longer relevant.
To avoid breaking existing translations, create a en translation.
Rename the en_US.po to en.po to be used by _GB and _AU

Will be fixed in saas-7 by the mighty @csnauwaert 📯
2015-11-24 17:27:11 +01:00
Denis Ledoux 13e1f7afac [MERGE] forward port of branch 8.0 up to 3e03cfe 2015-11-24 16:51:45 +01:00
Yenthe 9c690547f8 [IMP] l10n_be: Translations of taxes in Dutch
Closes #9719
2015-11-24 16:12:29 +01:00
Ludovic Laffineur lla 77250b5b9a [REM] website_partner: removing website_private unused 2015-11-24 16:09:28 +01:00
Thibault Delavallée 593f9c3052 [REINDENT] website_partner: reindent
Due to the use of odoo tag in xml files some reindenting is necessary.
2015-11-24 16:09:28 +01:00
Srushti Patel 62cd76ed22 [MIG] website_partner: migrated into new api 2015-11-24 16:09:28 +01:00
Denis Ledoux 3e03cfe7ac [FIX] website: type openerp -> odoo
opw-657169
2015-11-24 16:09:19 +01:00
Nicolas Martinelli 7007cc33d8 [FIX] product, sale*: procurement needed
In v8.0, a procurement is not created by default. Only sale_stock and
sale_service will create procurements, since they are only used for
physical products or task-related services.

In v9.0, the behavior was changed and a procurement was always created.
This is not necessary, since the procurements are still only used for
physical products and task-related services. This behavior will just
lead to the creation of procurements which will fall into exception
(method `_assign` will return False).

This fix switches back to the previous behavior. The other solution was
to prevent the exception, but it will imply that useless procurements
will pile up.

opw-654363
2015-11-24 16:06:42 +01:00
Nicolas Martinelli 40a7c177e7 [FIX] purchase: select suppliers of variant
When a PO is created from a procurement, the field product_id of the
supplierinfo is not taken into account when the possible vendors are
chosen. For example, let's take the following situation:
- A product with 2 variants (color White and Black), route MTO
- Two vendors are created, one for color white, the other for color
  black
- When a SO containing the 2 variants is created, only one PO for the
  same vendor is created for both products.

With this fix, 2 POs will be created, linking the appropriate vendor and
variant.

opw-657362
2015-11-24 15:42:22 +01:00
Joren Van Onder dcda436c8b [FIX] point_of_sale: remove reference to currencies for cash control
The mentioned available currencies are a leftover from the old
account.bank.statement.cashbox which would show a pre-defined list of
'currencies' (eg. .05, .10, .50, 1, 2, 5, 20, 50, ... for Euro). Since
accounting v9 this is no longer how it works, the wizard now just
consists of value, amount pairs that the user has to fill out.

opw-653111
2015-11-24 14:52:33 +01:00