Commit Graph
102197 Commits
Author SHA1 Message Date
Yannick Tivisse 2fe11b18b5 Revert "[IMP] base: use currency position from language"
NB : Not reviewed by apr and qdp

This reverts commit 58f16b7060.
2015-09-08 15:00:21 +02:00
Josse Colpaert 7f5f37a548 [IMP] stock: remove unnecessary fields 2015-09-08 14:59:00 +02:00
Martin Trigaux 909e6e300a [FIX] email_template: use valid email_from content
Correctly use the email_from tag from template.
This partially reverts commit 0f82346167.
"[FIX] email_template: keep email_from and outgoing server"
Remove the email_from part that was incorrect, keeping the one on mail_server_id

Instead of assigning an non-evaulated email_from in the context, specify the
email_from in the onchange method. This way the created email has an evaulated
from value. This was an issue for templates using email_from like
"${(object.user_id.email or '')|safe}"

In the _notify method method, the email_from is partially respected as it will
be used a fallback only. However changing that would introduce a modification of
behaviour not suitable for 7.0 branch.

Fixes #8409
2015-09-08 14:30:37 +02:00
Goffin Simon d7eb2c0397 [FIX] website_sale: product attribute line
In e-commerce, on a product page. If the product has some attributes
("product.attribute.line" model) with several values for at least one attribute
(which means several variants for one product), the display of these attributes must
respect the sequence defined in:
Sales > configuration > products > attributes("product.attribute" model)

opw:648634
2015-09-08 14:23:40 +02:00
Raphael Collet 05f176f418 [IMP] ir_ui_view: do not recompute field model_data_id on views
The recomputation should not be necessary, as we normally don't change the
record referred by an ir_model_data record.  This speeds up the creation of
ir_model_data records by 33%, which should be noticeable during module
installations.
2015-09-08 14:14:58 +02:00
qsm-odoo fd3e17795d [IMP] hr_timesheet_sheet: Simplify line adding
Before this commit, you had to click on "Add a line", then select
a value in the m2o which appeared, then click on "Add". Now, the m2o
is always there in edit mode and you just have to click "Add" once.
2015-09-08 14:14:32 +02:00
qsm-odoo 7c18c68f96 [FIX] hr_timesheet_sheet: '0' values when adding a new line
When a new line was added, all the others changed their value to 0.
This was because of a property : the sheets propertywas read thanks
to a get('sheets') but as it is an array of object, modifying those
object will modify the sheets (without calling any handler attached
to the 'change:sheets' event). It appeared the form_view set_values
method changed those objects.

A simple solution from a timesheet point of vue was to deep clone the
sheets property before using it.
2015-09-08 14:14:31 +02:00
qsm-odoo 1a405ed7c4 [FIX] web: widget_x2many tour
The test was not stable enough since listview editable and onchange
API changes.
+ Some step were wrong (test of the wrong element)
+ Minimize differences with enterprise version (so that the two tests
are testing the same things)
2015-09-08 14:14:31 +02:00
qsm-odoo 3f7d350fe2 [FIX] web: Listview editable
(backport of enterprise version)

Fix various problems with list view editable :
* Click outside which should discard/save the line in edition
* Warnings which should not appear when line is being discarded/saved
* JS test

+ JS code refactoring
2015-09-08 14:14:31 +02:00
qsm-odoo 4932bb13f3 [FIX] web: Tour step without element should not click on body 2015-09-08 14:14:31 +02:00
Nicolas Lempereur 7a5e5adb56 [FIX] website_mail: special case for css splitting
The css of a mail is inlined as best as possible for the mail sending.

Previously, if there was a selector like .ch[onclick="ga(this,event)"]
the simple splitting would split in the middle and get one erroneous
selector (which then would trigger an error).

With his commit, rules containing " or ' are ignored.

opw-643548

note: forward port of 6316bce
2015-09-08 13:29:23 +02:00
Goffin Simon ba74cb9144 [FIX] account: Cash registers
In Accounting > Bank and Cash > Cash Registers, when clicking in "More" button
on 'Put Money In' or 'Take Money out', the date used for the bank statement line
created must be the date of the bank stattement(same behaviour then when clicking
on "Add item" in edit mode). It's forbidden to put/take money in/out for a bank
statement which is not open.

opw:647631
2015-09-08 13:16:02 +02:00
Olivier Dony 222c7308fe [FIX] js assets: date comparison using wrong types 2015-09-08 12:58:47 +02:00
Cédric Pigeon 20b5e0a4ab [ADD] base: test to check too long table aliases
Test for rev. 11f538fae6
2015-09-08 11:53:29 +02:00
Thomas Rehn 11f538fae6 [FIX] expression: table alias reaching 64 characters limits
Postgresql has a limit of 64 characters for tables, columns names
as well as for aliases names.

When generating an alias name, e.g. for group by and order
by clauses, if the alias is longer than 64 characters,
use hashing to force the alias length to be within this
64 chars limit.

Fixes #8094
Closes #8142
2015-09-08 11:53:18 +02:00
Denis Ledoux 64e44c0a24 [IMP] base: tests, move patch_order to TransactionCase
In order to be able to redefine simply the order
of a model for testing purposes,
without having to re-define this method in each test class.
2015-09-08 11:53:18 +02:00
Nicolas Lempereur 1c4049463d [WIP] im_livechat: typo in controller arguments 2015-09-08 11:50:03 +02:00
Olivier Dony dfcc8f1b69 [FIX] js assets: prevent __last_update field name-mangling 2015-09-08 11:49:06 +02:00
Damien Bouvy 93ef96bda4 [FIX] payment: old field name replaced by many2one 2015-09-08 11:35:10 +02:00
Nicolas Lempereur 9c239cce3f [FIX] assets: typo prevents JS assets caching
Introduced by 522fcacb21
2015-09-08 10:53:35 +02:00
Fabien Pinckaers 87236b770b [IMP] Stock planner improvement 2015-09-08 10:44:08 +02:00
Damien Bouvy d052063b04 [IMP] project: planner data
the link to the Apple app store was missing and the other links were bogus
These link now send to the odoo.com website with some GET parameters; that way we can redirect from our end to the correct app
2015-09-08 10:36:02 +02:00
Goffin Simon bbd15cdca6 [FIX] resource: interval_get_multi
To compute the intervals of working time, the function interval_get_multi
used 'hour_to' and 'hour_from' from "resource.calendar.attendance" model. 'hour_to'
and 'hour_from' are not in UTC timezone. All the dates in odoo are compared in UTC.
Then 'hour_to' and 'hour_from' must be converted.
To take into account the minutes in this computation, the minutes from the start date
are added in the variable todo (number of working hours).

opw:648349
2015-09-08 10:08:45 +02:00
Shivam Dudhat adac73c337 [FIX] event_sale : resolve traceback due to wrong domain 2015-09-08 09:38:36 +02:00
Mohammed Shekha bdb24b4077 [FIX]website_event_track: Fixed the issue of breadcrumb disappears when coming from frontend to backend 2015-09-08 09:38:28 +02:00
Mohammed Shekha 93139be120 [FIX]hr_recruitement: Fixed the issue counter not displayed on Applications button in hr.job form, job_id is many2one field so its value will tuple of (id, value), so it should be 0th element of tuple as ID of dict 2015-09-08 09:38:01 +02:00
Jérome Maes 1addd02390 [FIX] lunch : do not display empty alert on form view 2015-09-08 09:37:53 +02:00
Fabien Pinckaers 22b2c02bf3 [IMP] accounting planner intro 2015-09-08 09:31:17 +02:00
Fabien Pinckaers a39cec7ae8 [FIX] planner typo 2015-09-08 09:12:11 +02:00
Goffin Simon 19a523ff64 [FIX] website_sale: product attribute line
In e-commerce, on a product page. If the product has some attributes
("product.attribute.line" model), the display of these attributes must
respect the sequence defined in:
Sales > configuration > products > attributes("product.attribute" model)

opw:648634
2015-09-08 09:11:11 +02:00
Antoine Huvelle 79822ed30a [IMP] account_cancel: "Reset to draft" on cash registers
Complement of the fix 6f355623f0
Adds the button for cash registers as well since the base view is
different than the one for bank statements.

Closes #8410
Closes #8342
2015-09-08 08:11:29 +02:00
Julien De Coster 008fe7e836 [DEL] mass mailing: themes images 2015-09-07 20:06:34 +02:00
Bhavik Bagadiya d5ded74137 [IMP] hr_holidays: usability improvements
- New calendar dashboard with the leaves of every employee
- New "Leaves to Approve" menu with to-approve department leaves
- Renamed and reorder menus

Odoo Task 12913
Closes #7292
2015-09-07 18:28:09 +02:00
Yannick Tivisse 336ec38cfa [IMP] stock: Remove group locations on the Qty On Hand stat button 2015-09-07 18:25:52 +02:00
Yannick Tivisse 6043a56ce8 [IMP] project: Rename 'planner' by 'implementation guide' 2015-09-07 18:25:52 +02:00
Yannick Tivisse 49739facfc [IMP] web: Rename 'More' button into 'Action' 2015-09-07 18:25:51 +02:00
Yannick Tivisse 1e8a890be6 [IMP] Rename Live Chat into Website Live Chat 2015-09-07 18:25:51 +02:00
Yannick Tivisse 91592a040b [IMP] crm: rename New stage into Incoming stage 2015-09-07 18:25:51 +02:00
Yannick Tivisse 09c1f4c358 [IMP] website_sale: prevent the user to modify the shop product qty spinner 2015-09-07 18:25:51 +02:00
Yannick Tivisse 021dc577e5 [FIX] hr_recruitment: oe_kananban_applicant to oe_kanban_applicant, correct label typos 2015-09-07 18:25:51 +02:00
Yannick Tivisse f2923028d4 [IMP] sale: Make advance_payment_method field understandable for the ordinary mortals 2015-09-07 18:25:50 +02:00
Yannick Tivisse 25da2802f4 [FIX] purchase: Layout issue on purchase order lines form view 2015-09-07 18:25:50 +02:00
Yannick Tivisse 2cf5f59819 [IMP] Purchase: don't display stat buttons if PO not confirmed 2015-09-07 18:25:50 +02:00
Yannick Tivisse 877c3b3b1b [IMP] purchase: Set product_qty = 1 by default on purchase order lines 2015-09-07 18:25:50 +02:00
Yannick Tivisse 831073e153 [IMP] purchase: Rename purchase order state 2015-09-07 18:25:50 +02:00
Yannick Tivisse aedb75081b [IMP] mail: Set the compose message wrapper in odoo_blue color 2015-09-07 18:25:49 +02:00
Yannick Tivisse 625fbd19f5 [IMP] web_tip: Rename breadcrumb into 'Navigation Path', more user friendly 2015-09-07 18:25:49 +02:00
Yannick Tivisse f3bd917fc8 [IMP] Project: Remove breadcrumb tip, as there is a generic one 2015-09-07 18:25:49 +02:00
Jeremy Kersten a7b2208de5 [TYPO] website_portal: typo font awesome 2015-09-07 18:07:35 +02:00
Jeremy Kersten 8f97374842 [FIX] website: fix translation - missing escaping 2015-09-07 18:07:34 +02:00