Commit Graph
106769 Commits
Author SHA1 Message Date
Fabien Pinckaers b048d1154f [FIX] event: test scenario, removing this month, which can be too vague for a short term date 2016-12-06 08:53:31 +01:00
Fabien Pinckaers ec2354a568 [FIX] event: display date correctly accoring to the locale 2016-12-05 23:00:33 +01:00
Fabien Pinckaers f8c6c76044 [FIX] event: emails: no map if no location (webinar)
[FIX] event: emails: format of date: 31 Janvier instead of '20160131T1010110'
[IMP] event: better emails (button to zoom to event, cleaner text, show
      organizer phone and email)
2016-12-05 22:37:07 +01:00
Yenthe V.G d5a99319b0 [IMP] stock: remove unused logger import
The logger is imported but never used so let us remove it anyway.

Closes #14047
2016-12-05 16:45:35 +01:00
bpa e9ed03ae57 [IMP] pos_reprint: Improve point of sale configuration form for receipt repriting fields
- Bring receipt reprinting configuration fields together
- Highlight the reprint button, improve in configuration when reprint option is checked then receipt printer option should be checked
- Reorganise the receipt printing options, remove Reprint Receipt button highlighting
- Moved print receipt option of the hardware section
- If enabled Reprint Receipt then Receipt Printer enable automatically
2016-12-05 14:54:19 +01:00
Dhawal Limbuwala 13e819f510 [FIX] website: Don't show links on website pages when pressing Ctrl+p 2016-12-05 14:22:06 +01:00
bpa e1d13514e7 [IMP] product,sale,purchase,stock: Improve 'Notes' tab on product form
fp request.
2016-12-05 11:49:33 +01:00
Jérome Maes 13f84b9aca [REM] *: remove ir.needaction mixin
ir.needaction_mixin is not used anymore by the webclient.
From 9.0, the concept has changed: this feature is now
available in mail module, with the mail.thread mixin,
and message_neeadction field.

Remove all code handeling needaction bullet and
counter on ir.ui.menu, knowing that since 9.0
webclient does not display the counter anymore.

This code was, thus, useless and some RPC calls
were done for nothing, and adapt accounting
reconcialiation widget.
2016-12-05 11:30:03 +01:00
dbh d25c8e7aa5 [IMP] hr_payroll : Clean access rules
=> Officer can see their own and their subordinates payslip.
=> Manager can see everyone's payslip.
2016-12-05 11:01:41 +01:00
Fabien Pinckaers c28743a220 [IMP] mass_mailing: CSS for mobile: avoid horz scrollbar 2016-12-04 20:47:20 +01:00
Fabien Pinckaers 14080ed923 [IMP] sale: You should not have to go in dev mode to manage your product categories 2016-12-03 21:19:20 +01:00
Yannick Tivisse 605e924624 [IMP] hr_attendance: Rename 'My Attendances' menuitem by 'Check In / Check Out'
Purpose:
========

The menu my attendance is not clear, you expect to see your attendance log. rename it into Check In / Check Out
2016-12-02 16:18:11 +01:00
Yannick Tivisse 8789188094 [REF] web: Remove is_admin key in session info
Because of its redundency with is_system key.
2016-12-02 16:07:52 +01:00
Yannick Tivisse d1bd102b4b [IMP] project: add a wizard to merge tasks
This wizard allows the users to merge some task in a new task or an existing one

A user and a project are taken by default but may be configurable on the wizard.

The other tasks are archived. A message is posted on the tasks to report the target and a message is posted on the target to report the origin tasks.
2016-12-02 14:47:23 +01:00
hbh d075bc32f6 [IMP] account:Remove 'Unknown Partner Ledger' action from res_partner Action menu
These reports are useless, duplicate and there's alreay a partner ledger report for receivables/payables
2016-12-02 11:29:26 +01:00
Mansi Trivedi 653121fa68 [IMP] hr_expense: Improve expense planner with new pages 2016-12-02 11:16:08 +01:00
Olivier Dony 4f6a102964 [FIX] account_tax_cash_basis: bad fwd-port of 46c5db095a
To be forward-ported separately, cfr opw:693453
2016-12-02 10:37:19 +01:00
Christophe Simonis a6999fa4bb [MERGE] forward port branch 10.0 up to 18fc260 2016-12-01 19:26:56 +01:00
Christophe Simonis 18fc260369 [FIX] website_sale: fix js error introduced by previous forward-port 2016-12-01 19:05:28 +01:00
Christophe Simonis 0b846861b6 [MERGE] forward port branch 10.0 up to 5dc1c57 2016-12-01 17:05:08 +01:00
Christophe Simonis 5dc1c57601 [MERGE] forward port branch saas-11 up to 7842498 2016-12-01 16:59:33 +01:00
Kishan Gajjar 167057800b [IMP] web,website: Only display planner for group_system users
Planners should only be visible for "base.group_system" user group (admin settings) because there are links to install apps etc. For now missing access rights messages whenever you click a settings link.Only for admin and not by company.
Admin and the user who has "base.group_system" rights can see the planners.
2016-12-01 16:32:01 +01:00
Dhaval Panchal 92929ec6a7 [IMP] account/stock_account: Add a clickable history on journal entries chatters
Purpose:
In a perpetual inventory mode, it is not possible to reach the picking from the journal entry view because the ref field is not clickable. I propose to show a chatter to get the history (which doc created the move) and being able to go to the move from the chatter.

Specification:
In journal entry view add chatter and generate message(clickable) that link to  its Origin (i.e Supplier Invoice , Customer Invoice, Picking in case of Perpetual Inventory)
2016-12-01 16:02:18 +01:00
Nicolas Martinelli 3653661235 [FIX] rating, rating_{*}: translations
Several translation issues are faced with the rating module:
- the feedback page is always displayed in the admin language
- the feedback emails are always sent in the user's language

One would expect these to be in the partner language.

opw-694718
2016-12-01 15:50:11 +01:00
Christophe Simonis 7842498934 [MERGE] forward port branch 9.0 up to 5bed95f 2016-12-01 15:33:21 +01:00
mdi-odoo d5c24abee5 [IMP] product,purchase: Make the vendor price configurable on the variants too.
=======
Purpose
=======

There are some confusion about the use of the vendor price and the cost price.
Moreover, in the purchase app, the RFQ should take the variant vendor price, if one is set

==========
Specification
==========

Add a clear tooltip on the Cost field (standard_price) : "The cost price is used for valuate stocks or to asses the price of manufacturing a product. The purchase orders are fetching the vendor prices."
In the simplified view, add the vendor cost o2m : https://drive.google.com/a/openerp.com/file/d/0BxqHe5rtIxY0LVZHZXFWcWFHckk/view?usp=drivesdk
Variant vendor prices should be indenpendant from each other, and from the template ones.
In the purchase app, when creating an RFQ : the system fetches the variant cost price (from vendor o2m), if no price on variant, it takes the vendor price on template.

NB: fp request
2016-12-01 14:59:20 +01:00
Christophe Simonis 5bed95fbd5 [MERGE] forward port branch saas-6 up to 97af232 2016-12-01 14:47:17 +01:00
Christophe Simonis 97af2325cd [MERGE] forward port branch 8.0 up to 0105cbb 2016-12-01 14:39:25 +01:00
Adrien Dieudonne 6326ec3eeb [IMP] web_editor: ace_editor: right resize bar
Before this commit, it's was only possible to resize the width
of the ace editor when it was on the right side of the screen.

In studio, we need to put the ace editor on the left.
So, we needed to add a new resize bar.
For that, we also add a new option to know the position of the
ace_editor.

We also prevent the width of the ace editor from being recorded
too many times in the local storage for nothing.
This is why we added _.debounce.
2016-12-01 14:38:39 +01:00
Martin Geubelle ed22e0fb84 [ADD] base: display unpickled value 2016-12-01 14:38:30 +01:00
Martin Trigaux 2e960afd37 [I18N] update saas-11 translations by merging 9.0 and 10.0 2016-12-01 13:52:01 +01:00
Dhaval Panchal 2ac8f564e3 [IMP] web: Don't color in 'No result to show' string when no result found
The user is tempted to click on it as it is colored, but nothing happens when clicking on it.
2016-12-01 12:54:04 +01:00
Dhaval Panchal c9ed353af7 [IMP] purchase: remove 'Create and Edit' option for fiscal position field in PO form 2016-12-01 12:29:12 +01:00
mmo a4d88c9efd [IMP] Product: Make product varian attributes readonly on variant form
=======
Purpose
=======

The attributes can be changes on the variant pages, which might cause some issues.
2016-12-01 11:54:09 +01:00
Nicolas Martinelli 4f43ec4fcf [FIX] calendar: invitation template lang
- Create a calendar event
- Add invitees

The invitees receive a mail so they can accept/decline. When clicking,
the page is always displayed in the language of the administrator.

Since the `request` object is not directly associated to the attendee,
the template is not rendered in his language. Since (i) the template
should not be rendered lazily (see comment in code) and (ii)
`request.render()` does not allow the rendering in an arbitraty
language, we do a manual call to `render_template`.

opw-694718
2016-12-01 11:52:27 +01:00
hza b43364af72 [IMP] website_event: put pager on bottom in website events page.
Purpose
========

When doing a filter on events page, the "second page" of the results is on the top right.
After I scroll down to the last event, nothing tells user that there are more events on the second page (or the second page is available)...

Specification
=============

Put 'Pager'(Pagination) on bottom right side in 'events page' so that user knows easilly to move on next page.

NB: Center the pager instead of displaying it on the right.
2016-12-01 11:49:37 +01:00
Denis Ledoux 0105cbbcf9 [FIX] website: make website default language required
The website `default_lang_id` was not required,
while the algorithm choosing the website language
expects it to be required.

This solves the below issue, when your browser language is en_US:
 - add a second language to the website (e.g. fr_BE or es_VE),
 - in the website settings, remove English from the languages
 - in the website settings, unset the default language
 - try to go on the website

You will have a crash:
```
  File "/home/odoo/src/odoo/saas-11/addons/website/models/ir_http.py", line 193, in _dispatch
    resp.set_cookie('website_lang', request.lang)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 992, in set_cookie
    self.charset))
  File "/usr/lib/python2.7/dist-packages/werkzeug/http.py", line 905, in dump_cookie
    value = to_bytes(value, charset)
  File "/usr/lib/python2.7/dist-packages/werkzeug/_compat.py", line 106, in to_bytes
    raise TypeError('Expected bytes')
TypeError: Expected bytes
```

This is because the `request.lang` is set to `False`
because of the below algorithm in `ir_http.py`:
```
    nearest_lang = not func and self.get_nearest_lang(path[1])
    url_lang = nearest_lang and path[1]
    preferred_lang = ((cook_lang if cook_lang in langs else False)
                      or self.get_nearest_lang(request.lang)
                      or request.website.default_lang_code)

    is_a_bot = self.is_a_bot()

    request.lang = request.context['lang'] = nearest_lang or preferred_lang
```
`nearest_lang` is `False`, because there is no nearest language
available for the browser lang (`en_US`)
`cook_lang` is `False` for users who never went on the website
`request.website.default_lang_code`, which is the last feedback,
is also `False` because you removed the default language
in the website settings.

opw-695621
2016-12-01 11:37:03 +01:00
dbh 01b516ed88 [IMP] *: rename all the 'Reports' menuitems into 'Reporting'
There is a confusion in name of menuitems 'Reports'. For example whe have a lot of printed reports containing reports (eg. Expenses Reports)

For the 'Analysis' reporting views, we should rename this into 'Reporting'.
2016-12-01 11:18:16 +01:00
Goffin Simon a433ae65cb [FIX] purchase: default picking_type_id with ir.values
The deleted code put the same picking_type_id for all companies.
The function _get_picking_in returns the right default picking_type_id
according to the company.

Steps to reproduce:
-stock.warehouse0 is on company A.
-Define another company B with its own warehouse.
-Update the purchase module -> a new default value for picking_type_id on purchase
order for company B is created wtih the value of company A
-Create a purchase order on company B, Odoo tries to get the picking_type_id from company A.
If user doesn't have any rights on company A, it occurs a security warning.
Otherwise the purchase order is linked to a picking operation of another company.

opw:694059
2016-12-01 10:04:30 +01:00
Nicolas Martinelli e6ba772406 [FIX] mrp: BOM Cost report
1. Set up BoM component A with cost of $1 per kg
2. Create a BoM which uses 1t of component A
3. Execute the BOM Cost report

Cost of component A is $1, while it should be $1000.

opw-695014
2016-12-01 09:59:09 +01:00
Denis Ledoux 021878f9c4 [FIX] tools: formatlang currency digits
When passing a value along with a currency
to the `formatLang` method,
the currency symbol was added to the value,
but the amount wasn't rounded to the currency
decimal places, as it would be expected.

For instance, when using the currency "XOF",
with as symbol "CFA" and 0 decimal places,
2 digits after the comma were still displayed
in the accounting dashboard, while the user expects none.

This behavior to take the number of digits out of the currency
is already the behavior of the `formatLang` methdod in the reports
(`/openerp/report/report_sxw.py`)
it was just not yet the case in the misceleanous tools
(`/openerp/tools/misc.py`).

opw-695496
2016-11-30 16:46:49 +01:00
Goffin Simon 60300fc287 [FIX] website_sale: _get_pl_partner_order
The function _get_pl_partner_order must also return the available
pricelists on the website with promo code. In this way, the user
can use promo code on the website.

opw:694556
2016-11-30 16:19:56 +01:00
Goffin Simon c352945bf5 [FIX] account: Reversing exchange rate difference entry
To reverse all the the exchange rate difference entries created during the reconciliation.

Before the fix:

Configuration
- Company Currency USD
- Multicurrency
- Other Currency EUR with exchange rates per day.
- Bank journal in EUR with allow cancelation.

Steps
- Create more than 1 invoice for customer in EUR and validate it. (Example. 3 invoices 100 EUR each)
- Create a bank statement in EUR Bank with the payment of that invoices (Example. 300 EUR)
- Conciliate the payment with the invoices.
- The journal entries for exchange difference are correctly created(three exchange rate difference entries).
- Cancel the payment from bank statement.

Bug:
There was only one reverse journal entry created for the exchange rate difference of the all reconciliation.
But three reverse journal entries  for exchange rate difference entries were expected.

opw:694120
2016-11-30 15:57:29 +01:00
Antonio Espinosa aac0faafb8 [FIX] membership: remove date_cancel for draft invoices
In `action_cancel` method below, the date_cancel is set when the linked invoice
is canceled.
When the canceled invoiced was reset to draft, the date_cancel was not removed.
This change makes sense as the state of the membership line is changed from
`cancel` to `waiting` when the invoice is reset to draft.

Closes #14313
2016-11-30 14:33:16 +01:00
Martin Trigaux c965e64e52 [FIX] l10n_multilang: add only translate flag
No need to redifine existing attributes.
Introduced at db682bf
2016-11-30 13:58:03 +01:00
Nicolas Martinelli e5cad9a45e [FIX] web: date autocompletion
When a user fills partially a date or datetime field, the system will
somehow autocomplete the value entered. For example, if the user enters
"11//11" then clicks on the Tab key, it will be completed as
"11/11/0000".

However, the year 0000 is not recognized in Python, and this causes a
crash upon saving.

opw-695035
2016-11-30 13:56:20 +01:00
David Tran 0d160851c7 [ADD] l10n_multilang: allow to translate account tag
Account tags are used to describe accounts and contains text that makes ense to
be translated for multilangue CoA

Closes #14527
2016-11-30 13:55:53 +01:00
David Tran f16d2e9ec7 [ADD] sign the CLA
Closes #14527
2016-11-30 13:55:53 +01:00
Denis Ledoux 05010362d5 [FIX] product: remove currency rounding check against DP account
The decimal precision `Account` no longer exist.
This check is therefore pointless, and prevent
to change the rounding of the currency of the main company
2016-11-30 13:24:03 +01:00
Christophe Simonis deaec34996 [FIX] l10n_nl: do not mark tax templates as noupdate 2016-11-30 12:16:11 +01:00