Commit Graph
94597 Commits
Author SHA1 Message Date
Arthur Maniet 6914d5aafc [IMP] account: bank statement reconciliation widget aesthetics
- Animation speed, which is set to 0 when there's no match to prevent a visual glitch, is restored otherwise
- action panes (match / create) are not displayed via CSS, so the widget needs to purposefully show them instead of purposefully hide them
2015-03-26 16:30:49 +01:00
Christophe Simonis 64b5a7e537 [FIX] website_sale_options: remove reference to openerp variable
(missed it during previous forward-port)
2015-03-26 11:15:00 +01:00
Géry Debongnie 54c7eb4403 [FIX] remove forgotten references to variable openerp 2015-03-26 09:22:27 +01:00
Christophe Simonis 2565aa60e0 [MERGE] forward port of branch saas-6 up to c2b4766 2015-03-25 19:14:46 +01:00
Christophe Simonis c2b4766860 [MERGE] forward port of branch 8.0 up to c54d83e 2015-03-25 18:39:17 +01:00
Christophe Simonis c54d83ebd5 [FIX] mail: column read -> is_read
This is the reverse patch of 132afa981b
2015-03-25 18:36:52 +01:00
Christophe Simonis 3540ec53e4 [MERGE] forward port of branch saas-3 up to 6b70b80 2015-03-25 18:00:08 +01:00
Christophe Simonis 6b70b80a0e [MERGE] forward port of branch 7.0 up to 881c10b 2015-03-25 17:41:53 +01:00
Loïc BELLIER 881c10b8ec [FIX] mrp: group attribute position
group_mrp_properties is intended for the property_ids field only, not the other
parts in the "Properties" page (probably wrongly named)
2015-03-25 15:25:22 +01:00
Denis Ledoux 0cf87d1671 [FIX] website_sale_options: keep website language on cart addition
In the ecommerce, when adding a product to the cart
while having website_sale_options installed
the product was added in the cart within the
website default language, not in the current
language of the visitor. The description of the product
was in the default website language (for instance, English)
instead of being in the visitor language (for instance, French).

The reason is quite simple: With website_sale_options, routes
are called in javascript, and these calls do not include the
website language within the url to the route
(e.g., call to '/shop/modal' instead of '/fr_FR/shop/modal)
and the language in the request context is therefore
the website default language.

The solution proposed here is probably not the cleanest possible,
a cleaner solution would be to define a new utility
JS function within website javascript to perform
Ajax calls, automatically adding the language to the url path
according to the current visitor language.

Another solution would be to set the lang of the session context
to the visitor language, and to use this lang instead of the
lang within request.context.

Nevertheless, none of the two above solutions can be performed in
stable releases, such as 8.0, to avoid any risks.

opw-631400
2015-03-25 14:33:33 +01:00
Jay Patel 2783f2e0a7 [FIX] crm: fire tips properly
- Opportunities Kanban: dismiss tips when moving a card
- Partner Form: do not display tips while a modal is open
2015-03-25 14:27:11 +01:00
Bhumi Patel 6228a7d072 [IMP] project: add menutip arrow in task kanban 2015-03-25 13:58:56 +01:00
Olivier Dony 287b293283 [FIX] stock_account: valuation entry for reconciled neg quant not always possible
Skip the creation of the corrective valuation entry
when a negative quant is reconciled with an incoming
shipment, when:
 - the cost has not changed, so the journal entry would
   be useless (credit/debit = 0)
 - or, when the accounting period for the move causing
   the negative quant is already closed, and must not be
   updated (presumably the valuation was manually
   set before closing that period)
2015-03-25 12:38:17 +01:00
Jigar Patel f739369ad2 [FIX] claim_from_delivery: fix statbutton 2015-03-25 12:05:49 +01:00
Ronak Baxi bf9ca71abb [IMP]hr_recruitment: Replace hardcoded 'welcome message for new employee' with a email template. 2015-03-25 11:55:21 +01:00
Thibault Delavallée ad1870b1eb [FIX] website_forum: fixes :
- do not show the popup about sharing on twitter if the post fails
due to karma for example
- added forgotten karma_required classes on post a link / post a
topic; those are missing since the forum update has been merged
without review a few month ago.
2015-03-25 11:51:42 +01:00
Jay Patel f516d39beb [IMP] website_blog: translate blogpost title and subtitle 2015-03-25 11:31:09 +01:00
Sheth Sunny fc814515ac [IMP]website_sale : display variant value in suggested product 2015-03-25 10:20:10 +01:00
Antony Lesuisse f090652c99 [FIX] product: allow active pricelist version copy
Always set active false when copy is used to prevent the overlapping
version constraint.

Closes #5822
2015-03-24 23:11:25 +01:00
Denis Ledoux a93ef48a70 [FIX] base: access to preferences menu for portal users
Since revs 53582c2ea6 & f65c913027,
this was no more possible for portal users to read groups
on purpose, for privacy reasons.

fields_get of res.users model is overriden, for
the access rights form view features
(The groups selections and checkboxes).
At each call to fields_get, which happens at each call
to fields_view_get on the res.users model, operations are
done on the model res.groups (basically, to
build the selection groups and checkboxes). So,
each time a view of model res.users is displayed,
whatever the view, operations on res.group model were performed.

The thing is, these operations on res.groups
are actually needed only for the user access rights
view, or at least only for users having the group
Administration > Access rights. These group operations
aren't needed for the preferences view, nor for portal users.

We therefore avoid to do these if the user is not part of the
Administration > Access rights group, which lead to
performances improvment, and solves the fact
portal users couldn't access their user preferences view.

opw-627391
2015-03-24 18:25:13 +01:00
Christophe Matthieu 3587bcd305 [FIX] website summernote: create justify methods to align the text because the browser default method fail. 2015-03-24 16:24:34 +01:00
Christophe Matthieu ae130e3d79 [FIX] website summernote: Add recordUndo for font changes. 2015-03-24 16:24:33 +01:00
Christophe Matthieu 44069b6e7b [FIX] website summernote: Apply a better clean dom to remove error create by the browser contentEditable. 2015-03-24 16:24:33 +01:00
Christophe Matthieu 96b33cdbce [FIX] website summernote: sould not delete de tag container when select all text inside (although there are several selected child nodes) 2015-03-24 16:24:33 +01:00
Olivier Dony 35aa5c31d1 [MERGE] Forward-port latest bugfixes from 8.0, up to d544bb9b46 2015-03-24 15:46:44 +01:00
Olivier Dony d544bb9b46 [FIX] base_partner_merge: cleaner test for function fields
After commit 0ed63d73a6,
the hack used to detect fields.function is not supported
anymore. Using `isinstance` is safer and cleaner anyway
(performance is not a concern here).
2015-03-24 15:43:37 +01:00
Jaysinh Shukla d8784e1af4 [IMP] tools, forum: allow to strip classes from sanitized html.
This behavior is not the default behavior to remain consistent with
the previous behavior of the sanitizer.

website_forum: when converting a post into a comment the html is now
completely sanitized instead of parsed into plaintext. Inded comment
are mail.message, thus holding html content. Styling and classes are
removed to ensure only the basic html pattern is kept.
2015-03-24 15:38:30 +01:00
Denis Ledoux ccfdca99fb [FIX] hr_recruitment: missing attachments in email template
When switching an applicant to another stage,
there is the possibility to send an email template,
according to the given stage.

The attachments defined in the email templates should
be sent as well.

opw-630768
2015-03-24 15:10:55 +01:00
Aaron Bohy cc9c7e4539 [FIX] Web: view.js: rpc call to load sidebar content
this.options.$sidebar usage has been changed at rev. 1280bf2513
and a flag this.options.sidebar was introduced ($sidebar now simply
represents a jQuery element where the sidebar has to be rendered,
whereas sidebar represents whether or not a sidebar has to be rendered).

The old variable $sidebar was still used for the rpc to get the content
of the sidebar stored server-side, resulting in a sidebar with missing
content.
2015-03-24 14:38:45 +01:00
Jérome Maes 5c5adb5293 [FIX] rating : use 'raw_value' instead of 'value' in kanban template. Generate the url with 'value' will introduce number with comma/dot notation, which cause crashes. 2015-03-24 14:09:48 +01:00
Jérome Maes 06dfb4baef [FIX] website_twitter : loading the twitter js template with the correct deferred to aovoid timeout and crash. 2015-03-24 13:49:35 +01:00
Aaron Bohy 48f4605f5a [IMP] Web, Web_diagram: better integration of the Diagram view
The 'New node' button is inserted in the ControlPanel. Breadcrumbs
are now handled as well.

The 'multi_record' flag has been added to the views to distinguish views
displaying several records, like the List view, from views displaying
a single record like the Form view and the Diagram view. This flag is
used by the ViewManager to manage its view stack. Fixes the breadcrumb
bug when switching between Form view and Diagram view (the last element
of the view stack is now replaced by the new one in that case).
2015-03-24 13:33:10 +01:00
Goffin Simon 940a0e45d4 [FIX] account: choosing the right fiscal position
for a partner who has vat number, fiscal positions with vat_required
are prefered.

opw:630849
2015-03-24 13:00:39 +01:00
Anton Chepurov a70ea6d03b [FIX][#5182] speed up product form loading
removes obsolete (and faulty) check
2015-03-24 12:58:25 +02:00
Jérome Maes 73e855aee9 [FIX] website_slide : fix slide player by removing 'odoo.define()' since it is not a odoo js widget. This allow the player to be embedded on external web page without importing odoo js framework. 2015-03-24 11:48:42 +01:00
Jérome Maes 48971f57f4 [FIX] im_chat, im_livechat : split backend/frontend part of im_chat, refactor action binding for dropdown menu, redefine livechat bundle using new js module files, and correct the 'session' in im_livechat namespace. 2015-03-24 11:48:33 +01:00
Jérome Maes ebc75e1395 [IMP] web : add set_cookie in utils.js (framework) since the get_cookie method already exists. The set_cookie of session.js is now using the one from utils.js 2015-03-24 11:48:25 +01:00
Jérome Maes 88f119314f [FIX] web : make timeago an optional dependency of translation. This aims to lighten the bundle (ex.: livechat). 2015-03-24 11:48:17 +01:00
Julien De Coster 0b19fd5212 [FIX] Alignment of the welcome message in website_forum 2015-03-24 10:48:27 +01:00
Jignesh Rathod a7543cc1ac [MOV] portal, mail: move some code on mail.message model from portal
to mail, as the portal group is now defined in base. Same for access rights.
There is no need to keep them in the portal module.
2015-03-24 10:18:20 +01:00
Jignesh Rathod b18beecf3b [FIX] mail: mail_thread: when trying to find the correct action to launch
when coming from a notification link, consider an access error when reading
the message as having to fallback on the Inbox, not crash.
2015-03-24 10:18:16 +01:00
Jignesh Rathod a8d8046cf2 [IMP] mail: mail_template: instead of crashing when sending email based on
templates that have a void email_from, just fall back on the default email_from
defined on the mail_message model.
2015-03-24 10:18:16 +01:00
Jignesh Rathod 2c13ea9c6f [IMP] mail: mail_group: as for other public documents people should be able to
post messages on group when they can read it.
2015-03-24 10:18:16 +01:00
Jignesh Rathod b55969a577 [REF] mail: migrated tests to the new API and refactored them.
Tests have been migrated to the new api to prepare the migration of the
mail module itself. Moreover tests have been cleaned: redundant tests
and unnecessary tests have been removed.

As the base test class in mail is used in other addons, other addons
have been updated :
- portal
- project
- portal_project
- website_project_issue
- sale
- purchase

Future commits will come with somes fixes for issues detected when cleaning
the tests.
2015-03-24 10:18:16 +01:00
Richard Mathot a883eefdd3 [FIX] crm: one id/name for three rules... (in the Land of Mordor where the
Shadows lie)
2015-03-24 10:03:19 +01:00
Goffin Simon a36396b192 [FIX] sale: based amount to compute advanced invoices
The based amount to compute advanced invoices must be the amount_untaxed.

opw:630975
2015-03-24 10:00:45 +01:00
Richard Mathot 8ab4933a66 [FIX] crm: missing import
Avoid crash when merging partners
2015-03-24 09:33:15 +01:00
Christophe Simonis fb8b970567 [MERGE] forward port of branch 8.0 up to 0ed63d7 2015-03-23 16:35:03 +01:00
Denis Ledoux 132afa981b [FIX] mail: is_read is the column name in 8.0.
The column 'read' has been renamed 'is_read' in Odoo 8.0.
2015-03-23 15:46:32 +01:00
Denis Ledoux 3235eda781 [FIX] mail: notify parent message on message auto subscribe.
When auto subscribing to a message
(For instance, change the ```user_id``` field on a record,
like an invoice)
The new user is notified of the last message of the thread.
He must be notified of the parent message as well,
to have access to the first message of the thread,
to prevent access rights issues to the thread.

This mechanism is applied in the _notify method
of model ```mail.message``` as well, for the same reasons.

opw-630286
2015-03-23 15:26:41 +01:00