Commit Graph
103345 Commits
Author SHA1 Message Date
Christophe Matthieu 70d871d81a [FIX] translate: don't translate DOCTYPE tag 2016-05-25 15:12:02 +02:00
Christophe Matthieu 25bf3e9f74 [FIX] im_livechat: don't translate livechat javascript template 2016-05-25 15:12:01 +02:00
Martin Trigaux 97492a12a9 [IMP] gamification: prevent misconfiguration
Prevent selecting wrong field or models or computed fields

Fixes #8545
2016-05-25 14:58:55 +02:00
Denis Ledoux aedd0251b2 [FIX] account: invoice onchange partner accounts properties
Since revision 7eab8e26d3
the `_onchange_partner_id` of `account.invoice` failed
if the SUPERUSER created an invoice for another company
than his own, and if the partner had not a specific
receivable or payable account (meaning the default
accounts are used, the accounts coming from the properties
of this company without any partner specified)
because
```
prop.search([
             ('name', '=', 'property_account_receivable_id'),
             ('company_id', '=', company_id)
            ])`
```
can return multiple records, if several partners
have their own receivable accounts set, and,
since the above revision,
`get_by_record` specify `ensure_one`, meaning
you cannot pass multiple records to this method.

This domain was built a the time
(2009, rev. 80861660c6)
to handle the multi-company property,
which can now be handle with a simple `force_company`
passed in the context. It was not the case at the time.

This revision could be applied in former releases,
but this is not a necessity. This is a necessity
in saas-10, because of the above revision.

opw-678536
2016-05-25 14:42:24 +02:00
Jeremy Kersten bfb2263565 [FIX] website_forum: typo in translation 2016-05-25 14:39:38 +02:00
Jeremy Kersten 3ed55c540f [FIX] web: chardomain, don't allow to edit the input when not in edit mode. 2016-05-25 14:39:38 +02:00
Yannick Tivisse 0f1bae347e [IMP] product: Add the the sale price on product template list view
product,point_of_sale: Add a widget handle on the sequence, to be able to order the products
easily for the ecommerce for example. (Move it from the PoS module to the
product module)
2016-05-25 14:28:23 +02:00
Goffin Simon 21e56e487e [FIX] product_visible_discount: product without company_id
When computing the real price of a product, a currency of reference is
needed, first the currency of the product's company is privileged and
if no company is set on the product then the currency of the user's company
is taken.

opw:678159
2016-05-25 14:25:48 +02:00
Adrien Dieudonne bd9fc14659 [FIX] mail: mutiple read more
A read more was added to every node having a mail-quote tag.
However all quotes and their child nodes are tagged, leading to numerous unnecessary read more / read less.
Now, all consecutive mail-quote are joined in one 'read more/read less'.
2016-05-25 14:10:08 +02:00
David Monjoie 64aea2b515 [FIX] base_import: currency symbol can be placed at the right of the value
The previous code went outside of the list bounds because the modulo
operator has a higher priority than the addition one.
2016-05-25 13:53:33 +02:00
Yannick Tivisse 42b844e8ef [FIX] account: Removed duplicated subtotal grouped by tax group
Before a table was displayed to group by the subtotals by tax group.
It has been moved on the right and it is duplicated.
2016-05-25 13:36:15 +02:00
Yannick Tivisse a7e57d6d1a [IMP] Appswitcher: Better icons for some modules
For Manufacturing and Repairs, replace the gavel by a wrench. A gavel is a small hammer used by a judge; it is not used in manufacturing. Keep it for when we will have a Law app.

For POS, replace the briefcase by a screen:

For timesheet, replace the calendar by a clock:

For calendar, use the calendar:

For event, use a ticket, it's more generic than a martini glass:
2016-05-25 13:12:53 +02:00
Yannick Tivisse 0ac4a55132 [IMP] website_mail: Display the message.atttachment_ids on message_thread 2016-05-25 12:38:14 +02:00
Yannick Tivisse a8248f2328 [IMP] website_project_issue: my/issues/id form improvements
1/ Display a button for the project_user to come back in backend and
   edit the issue if they want
2016-05-25 12:38:14 +02:00
Martin Trigaux 5245dc5d9b [IMP] gamification: prevent misconfiguration
Do not allow to select field that will be used read_group but not stored in db

Fixes #8545
2016-05-25 12:10:50 +02:00
Nicolas Martinelli 1c58c67df2 [FIX] web_settings_dashboard: access error
When a user has the access rights "Configuration" or "Access Rights"
regarding the "Administration" module category, the click on the
"Settings" menu leads to an access error.

This is because the dashboard fetches data about the number of installed
modules ("installed_apps"), which requires access to "ir.module.module".
Since it is not easily possible to hide a parts of the dashboard (the
static templates do not recognize the "groups" attribute), we simply
hide the dashboard for these users.

opw-678531
2016-05-25 11:40:39 +02:00
Yannick Tivisse 92e53c2573 [IMP] product: Product Labels refactoring + make available on templates
Printing the product label is only available on the variants.
It should be available on the product template too as you may not work
with them.

We took the opportunity to refactor the label report too.
2016-05-25 11:26:12 +02:00
Yenthe 8637c2a1f8 [IMP] Change wording
At this point the error states that a page node must be below a book node, but the correct term is notebook.
This can be confusing for a developer.
2016-05-25 11:14:38 +02:00
qdp-odoo 9516bad3cb [FIX] account: don't write the foreign currency on writeoff when several secondary currencies are involved 2016-05-25 11:06:35 +02:00
Richard deMeester 31f50efe0a [FIX] stock_account: average cost with foreign currency
Quants are created, and stock moves are updated, with the purchase
value converted at current rates.  However, the product average
was calculated before that value was retrieved.  This ensures
the correct value is retrieved for the average cost calculation
and will match the actual quants.

Fixes #12163
Closes #12164
opw-678511
2016-05-25 10:54:09 +02:00
Raphael Collet 25b584c0f3 [IMP] fields: do not group property fields with 'multi'
Reading N property fields is as costly as reading each field separately.
Reading them one by one makes more sense performance-wise, as you will only
read the ones you need.
2016-05-25 10:08:24 +02:00
Goffin Simon 5b299a2094 [FIX] calendar: editing an existing recurrent event
It is not possible to edit the start_date, end_date, start_datetime,
end_datetime and duration for a recurrent event due to the raesons
explained in https://github.com/odoo/odoo/issues/10278 or see
opw:665700

opw:677139
2016-05-25 10:06:27 +02:00
Joren Van Onder be48a1402c [FIX] hr_payroll: avoid infinite recursion
The get_recursive_parent function seemingly depended on the ordering of
the rule_categories recordset which happens to work fine in most cases
because all data first defines the parent before defining the children
rule categories. But if you happen to do it the other way around it
won't work and it will infinitely call itself because:

if rule_categories[0].parent_id:
    rule_categories = rule_categories[0].parent_id | rule_categories

won't change the value of rule_categories[0].

opw-673222 (loosely related)
2016-05-25 09:57:37 +02:00
qsm-odoo ea2e0eea78 [FIX] web_editor: snippet colorpicker option
When going over the colorpicker when no bg-* class was selected yet,
the bg-undefined class was added on the snippet.
Also, when clicking on the reset button, the bg-* class was removed
but the selected button in the colorpicker was not unselected.
2016-05-24 17:49:14 +02:00
Thibault Delavallée f9b8c009cb [FIX] stock: product_strategy: effectively call method 2016-05-24 17:23:02 +02:00
Thibault Delavallée 0064778c4c [FIX] stock: config: advanced locations settings
If you manage several warehouses with several locations, do not go back to only
one warehouse when choosing advanced routing.
2016-05-24 17:12:09 +02:00
Thibault Delavallée 7088b0ad9e [FIX] stock: quant package: issue with newId
When creating a new stock.quant.package, the method tried to access a key
that does not exist in an intermediate dict. Indeed a new record does not
have an ID available in self.ids.
2016-05-24 17:12:09 +02:00
Thibault Delavallée e87dbff063 [FIX] stock: wrong field name in move.split() 2016-05-24 17:11:55 +02:00
Thibault Delavallée 28e623be66 [FIX] stock: do not use self in a multi loop 2016-05-24 17:11:54 +02:00
Christophe Simonis a4b94012c2 [MERGE] forward port of branch saas-11 up to f43b206 2016-05-24 17:00:17 +02:00
Christophe Simonis f43b206970 [MERGE] forward port of branch saas-10 up to d35d8c3 2016-05-24 16:59:37 +02:00
Christophe Simonis 3ab38618a9 [FIX] account: use new convert_to_write api 2016-05-24 16:58:03 +02:00
Christophe Simonis d35d8c3fca [MERGE] forward port of branch saas-9 up to e5c2e6e 2016-05-24 16:40:53 +02:00
Christophe Simonis e5c2e6e001 [MERGE] forward port of branch 9.0 up to e69d9b8 2016-05-24 16:39:41 +02:00
tdu-odoo f3b2d36a70 [FIX] account: Code 421 should be type Payable and not Current Liabilities
To be able to counter part the expense of the employee with the account set on his personal contact form, we need to configure the 421 account as payable.
more infos on http://www.compta-facile.com/comptabilisation-des-notes-de-frais/
The fix allows us to get that correct entry:
https://drive.google.com/a/openerp.com/file/d/0B5t9_ESHwijQemhyUjFFRzdTeVE/view?usp=sharing
2016-05-24 16:22:56 +02:00
Nicolas Martinelli e69d9b8b7d [FIX] account_asset: fiscal year date
The fiscal year start date should be taken into account when calculating
the depreciation amount in case of prorata temporis.

opw-678072
2016-05-24 15:36:54 +02:00
Martin Trigaux bb51431653 [FIX] website_mail: publications of internal notes
On the font-end view of project.issue, only the messages of type `note` were
display. This excluded the messages recieved via email which makes hard to
understand a conversation (e.g. a customer does not sees his own answers).

Instead, only filter out the notifications (change of states, responsible...)

opw-677426
2016-05-24 15:26:22 +02:00
Simon Lejeune 2d66d9a63e [FIX] *: do not use groups when extending an asset bundle
Using groups when declaring an extension of an asset bundle leads to a
different generated asset bundle according to the user's group. This
is not something we want because a dynamic asset bundle's content
means that it could (and it does) trigger unwanted cache invalidation.

website_event, website_blog, website_forum and website_sale add
functions to `website.contentMenu`. These functions are bound to
server side qweb nodes protected by groups. We can always add the
functions; if a user tries to use the routes he should receive a
traceback because of lack of access rules

website_blog adds a `website_blog.editor` module, but is guarded by
the presence of a node in the DOM. We use the same logic to guard the
module added by website_sale with the `.js_sale` node.

website_gengo is working as expected.
2016-05-24 15:11:05 +02:00
Ankit Joshi 0f793eba89 [IMP] crm : Rename 'Expected Closing' into 'Expected Closing Date' 2016-05-24 14:50:24 +02:00
Christophe Simonis 4f6d3b680a [MERGE] forward port of branch saas-11 up to bb442fd 2016-05-24 14:48:59 +02:00
Srushti Patel 2a67580b2d [IMP] event: Rename 'Event Type' groupby into 'Event Category'
Event type has been rename into Category in the Event app, except in one place.
2016-05-24 14:46:11 +02:00
Tanguy Charlier bb442fdb8d [FIX] website_crm: fix typo in template name 2016-05-24 14:45:15 +02:00
Martin Geubelle eab971ef3d [FIX] website_crm: leads on dashboard
The field sales team is not used on lead when created from website.
We use the UTM (i.e. medium) instead to distinguish where the lead is created from.
2016-05-24 14:43:19 +02:00
Ankit Joshi e7d248045e [IMP] account_asset: Change the label name 'Every' to 'One entry every'. 2016-05-24 14:42:10 +02:00
Nicolas Lempereur d4e7da6133 [IMP] im_livechat: don't auto-open on mobile
Currently on mobile, the livechat window would take all the viewport of
a small screen mobile browser. This combined with the "auto open"
feature can be desorienting: users could have only seen the "hello, how
may I help you ?" window and not know what to do or what is happening.

So this commit remove the "auto open" feature if user is on a too small
device (the user would thus have to click on "Have a Question").

closes #12148
opw-678012
2016-05-24 14:34:36 +02:00
dut-odoo 8482eb24ba [REM] base: remove improper data of partner title model
Improper abbreviation for the 'Sir' title. 'Sr.' is an abbreviation for Senior.
2016-05-24 14:22:35 +02:00
Cedric Snauwaert 784cdf9724 [FIX] account: fix error in aged partner balance, variable at_least_one_amount referenced before assignment 2016-05-24 14:21:25 +02:00
Christophe Simonis 36ca8f51e3 [FIX] hr: trigger job count computation on employee archive
forward-port of b9bca7909a which have
been forgotten in previous commit.
2016-05-24 14:15:56 +02:00
Christophe Simonis e641d740d7 [MERGE] forward port of branch saas-10 up to fac4cc7 2016-05-24 14:08:42 +02:00
Jainik Patel a33d12aac5 [IMP] base: res_company_form: mouse curson when hover 'here' link. 2016-05-24 14:02:51 +02:00