Commit Graph
99038 Commits
Author SHA1 Message Date
Richard Mathot 2badc0f856 [REV] edd388ffe5.
Should go to master, not to 9.0
2015-10-21 11:39:31 +02:00
Richard Mathot edd388ffe5 [FIX] stock,website_sale: add missing shipping provider Temando to config 2015-10-21 10:59:29 +02:00
Martin Trigaux e3c59e4945 [FIX] mail: missing space in help message 2015-10-21 10:42:34 +02:00
Aaron Bohy fe2c1020d1 [FIX] mail: chatter: undefined context for internal notes
Commit 4f9c9ad adds the context to the RPC call of 'message_post', but the
context was only defined for messages sent, and not for internal notes logged.
This causes a crash when logging a note on a calendar event as its method
'message_post' makes the assumption that it always exists, and tries to access
one of its keys.

opw-652470
Closes #9164
2015-10-21 08:55:31 +02:00
Xavier Morel a43b220b33 [FIX] make AccountingTestCase extend HttpCase
Fixes/hides a deadlock when running test_sale_order with either a single
database or a db_filter making a single database visible: the test
causes a report to be printed, which invokes wkhtmltopdf, which tries to
fetch assets using the registry which is being loaded. The asset request
thus waits on a lock which is held by the test which waits on the asset,
deadlocking the whole thing.

Using HttpCase means we're using the test_cr or something and bypassing
the deadlock, instead the asset requests just 404 as they do when using
the nodb routing.
2015-10-20 17:38:53 +02:00
Simon Lejeune 108decbd99 [FIX] ir_qweb: call clean_attachment at the end of save_attachment
.. instead of at the start. The reason is: if any rollback have to occur
during the call to `save_attachments`, we want to avoid rollbacking an
unlink on the ir.attachment table (because we cannot rollback the
removal of a file in the filestore).

This issue is especially annoying when we generate a bundle whose
ir.attachment record has the same hash than the invalidated one (for
instance when one of the source files in the bundle has been touched
but not modified) and of of these rollback occurs: the bundle has been
deleted on the filestore and cannot be served.
2015-10-20 15:38:24 +02:00
Simon Lejeune c0b2ef2b74 [ADD] test_assetsbundle: module to test ir_qweb's bundles 2015-10-20 15:38:24 +02:00
Simon Lejeune 7f4306ec15 [FIX] ir_qweb: css pagination: stylesheets order
The order of the stylesheet's declarations in the html matters. Make sure
that the first part of the css is declared first (*.0.css).
2015-10-20 15:38:24 +02:00
Simon Lejeune 7b67b555f6 [FIX] ir_qweb: don't save buggy stylesheet assets
If the compilation of a stylesheet asset produces any error, don't save
it and instead output it debug-mode like.
2015-10-20 15:38:23 +02:00
Simon Lejeune 17ebc87f76 [FIX] ir_qweb: css pagination: max css rules
Else, a css file with three rules produces two files when the max css
rules is set to three.

see rev 37959d45f3
2015-10-20 15:38:23 +02:00
Simon Lejeune 795715d186 [REF] ir_qweb: add max_css_rules to AssetsBundle init signature
This way it is overridable by unit tests.
2015-10-20 15:38:23 +02:00
Simon Lejeune 1e27b89be6 [REF] ir_qweb: remove debug in AssetsBundle init signature
It's not used
2015-10-20 15:38:23 +02:00
Simon Lejeune 6a452b5f14 [FIX] ir_qweb: useless get_attachment call in save_attachment
as save_attachment is only callded by js and css methods after an
empty return result of get_attachment, directly calling again
get_attachment is superfluous
2015-10-20 15:38:23 +02:00
Simon Lejeune 152f9ca0fc [REF] ir_qweb: clean_attachments
* use format to avoid escaping the %
* add a docstring to explain what's going on
2015-10-20 15:38:15 +02:00
Simon Lejeune fa5f86f336 [FIX] ir_qweb: useless test in js bundle generation
If one of the javascript files of the bundle has been modified since the
bundle generation, we are sure that get_attachments will return an empty
list because it searches with the version of the bundle which takes into
account the last modification of any of the bundle's content.

Also, this check is not present in the css bundle generation.
2015-10-20 15:37:28 +02:00
Arthur Maniet 2ebfffd28f [REM] IBAN: constraint that requires a BIC for an IBAN account
It is not always possible to possess both the account number and the BIC at the
time of creation. Eg. bank statement import where few file formats provide BIC
2015-10-20 15:29:53 +02:00
Goffin Simon c0c64a7fe5 [FIX] purchase: Scheduled Date in PO
When setting the quantity in a PO line, the field "date_planned" is changed
by onchange_product_id and this field is equal to:
-the date of today + seller.delay if there is at least one provider for the product
-the date of today if there is no provider set for the product
-the date manually set if there is no provider and already a scheduled_date set

To keep the similar behaviour to 8.0 for product without provider.

opw:652394
2015-10-20 14:36:57 +02:00
Christophe Simonis 8b02879ff5 [FIX] purchase: enforce company dependent fields
During new-api rewrite, some property fields wrongly lost their
company_dependent flag.
Despite it need a migration script to create the missing properties,
not updating the module does not lead to crashes.
2015-10-20 11:43:57 +02:00
qdp-odoo 3e0d72fa56 [FIX] l10n_generic_coa: added back the demo data for accounting 2015-10-20 11:15:06 +02:00
Nicolas Lempereur 91f3e5af63 [FIX] point_of_sale: bank statement currency field renamed
In the refactoring of v9.0 accounting module (c04065a) the currency
field on account.bank.statement has been renamed currency_id.

sentry-32303830312e3239303433353734
2015-10-20 10:05:16 +02:00
Martin Trigaux eca1983aef [FIX] account: analytic entries onchange
Broken on_change, comparing id and recordset

Fixes #9144
2015-10-20 08:53:40 +02:00
Martin Trigaux f75dcfe4b0 [FIX] crm: do not mark as won a lead
A lead can be marked as won, it must be converted to an opportunity first.
Previous flow was problematic as we could still convert to opportunity a won
lead (which does not work and does not make much sense).
A lead can only be lost or converted.

Fixes #9076
2015-10-19 16:04:06 +02:00
Denis Ledoux 4315779e55 [FIX] account: invoice in foreign currency
When creating an invoice in a foreign currency,
and adding a line with a product,
the `onchange` failed,
due to the fact the field `date_invoice`
is not on the invoice line, but on the invoice.
2015-10-19 15:45:40 +02:00
Joren Van Onder 0cbf0af783 [FIX] point_of_sale: display POS related info in contact form again
In 6b55539dc7 the "container_row_stock"
group in stock.view_partner_stock_form was hidden using
groups="base.group_no_one". The issue is that the POS used a group
inside of this group that it modified to display the associated
barcode of the partner and the loyalty points of the partner. So
although the code still worked, the actual information was invisible.

To fix it we inherit the view directly from where it is created, namely
base.view_partner_form which is a bit nicer than inheriting from an
already inherited view.
2015-10-19 13:46:21 +02:00
Martin Trigaux bc0986f53b [FIX] hr_timesheet_sheet: week number according to ISO 8601
The ISO weekday should be computed with isocalendar dateformat
The exact directive is '%V' according to GNU/Linux system strftime
http://man7.org/linux/man-pages/man3/strftime.3.html

However '%V' is not documented in official cross-platform syntax supported on
all python built, according to standardized by ANSI C formats
https://docs.python.org/2.7/library/datetime.html#strftime-and-strptime-behavior

as '%V' may not be supported on other platforms such as MS Windows, use the
cross-platform 'isoformat()' method.

Note that according to ISO 8601, the start and end of date may belong to the
previous or next year.
e.g.
>>> datetime.datetime.strptime('2005-01-01', '%Y-%m-%d').isocalendar()
(2004, 53, 6)
>>> datetime.datetime.strptime('2005-01-01', '%Y-%m-%d').strftime('%W')
'00'

Fixes #8927
2015-10-19 12:25:39 +02:00
Nicolas Lempereur 102b337c6a [IMP] point_of_sale: stop warning unknown field 'accuracy'
In e9c6fd0 'accuracy' was added to the field list read for res.currency,
but since the accounting refactoring in 9.0 (c04065a), this field was no
more present (replaced by decimal_places).

Since this field in the current point_of_sale javascript code was never
used, this commit removes it from the field list.

sentry-32303830312e3239303433353734
2015-10-19 12:21:52 +02:00
Denis Ledoux 17a630cd24 [FIX] account: use range_year for sequences using ranges
This is an oversight during the foward-port
57168a9e90
of the revision
57168a9e90

opw-652410
2015-10-19 12:12:52 +02:00
Arthur Maniet c0a2bc8e54 [FIX] account: adapt method account_bank_statement.py@link_bank_to_partner
This method hadn't been updated during the big refactoring of bank accounts / journals and was broken.
2015-10-19 10:37:57 +02:00
Odoo Translation Bot 7592d85b1f [I18N] Update translation terms from Transifex 2015-10-18 01:35:07 +02:00
Damien Bouvy 31ff6c68f4 [FIX] project, sale_timesheet: common field between non-dependent modules workaround
The project and sale_timesheet modules both define a project_time_mode_id field on res.company but they are not dependent on each other. This causes problem because the first module that creates the field "wins" the xmlid and will delete the field on uninstall, regardless of the other module (which will then stop working until you do an update that will recreate the field).

To work around this in a stable version, we manually create xmlids for the field in each module; on uninstall the field will not be deleted if an xmlid still refers it (which will be the case if the other module is installed).

Inheriting fields from modules that are not dependent in a direct way (ancestor-child) is not supported, so normally you should use modularity to define the field in a parent module. Since 9.0 is a stable version, we need a small workaround.
2015-10-16 16:38:25 +02:00
Aaron Bohy be5fc7b1a4 [IMP] mail: redirect to DM on user clicked
When clicking on a partner in the thread of messages, it opens the DM with the
associated user if there is one (and if this user isn't the current user).
Otherwise, or when clicking on a record of any other model, the user is
redirected to that record's form view.

This change required a minor change in chat_manager: create_channel now
returns the created channel, as the client action needs it to switch to it.

Moreover, in the thread, when there is no partner associated with a message
(only an email address), we simply use html's mailto mechanism. This fixes a
bug as we formerly tried to open an unexisting record of res.partner.
2015-10-16 15:52:02 +02:00
Géry Debongnie 6ae0309b99 [FIX] bus,mail,livechat: fix problem with multiple long polls
The bus was allowed to restart polling, client side, to allow the user
to directly receive messages in new channels.  This was only acceptable
as a temporary fix, the correct way to do this is to actually notify the
bus server side. This is even more urgent since the client was allowed
to keep multiple longpolls simultaneously, which degraded the experience
in some cases.
2015-10-16 15:52:01 +02:00
Aaron Bohy 765cfa040d [IMP] mail: client action: sidebar: hide livechat when empty
Channel types that disable the 'add a channel' feature like the livechat are
now only rendered in the sidebar of the client action if there exists at least
one channel of that type.
2015-10-16 15:52:01 +02:00
Géry Debongnie 4884b41f55 [IMP] mail: chat_windows improvements
including:
- larger chat windows
- add a counter for unread messages when the chat window is folded
2015-10-16 15:52:01 +02:00
Géry Debongnie 9f86de81bc [FIX] mail: fix permission issue when starring/marking messages
If a user does not have write permissions on a model, he should still be
able to remove himself from the many2many relation.

This caused a problem: some messages could not be modified by a user
(star/unstar or mark as read)
2015-10-16 15:52:01 +02:00
Aaron Bohy 4c7ab52a67 [IMP] mail: thread: hide avatar, author and date of consecutive messages
... from the same author, written within 1 minute (restricted to comments).

Also:
 - Display stars and needactions on hover only
 - Display the date of messages without avatar and info in the margin on hover
 - Add 'selected' state of messages (mainly for touch screens to replace hover)
 - Fix typo (msg_type -> message_type) on the computation of the avatar url
2015-10-16 15:52:01 +02:00
Aaron Bohy 2dfbaceaec [IMP] mail,im_livechat: client action sidebar: 'unsubcribe' cross
displayed for all channels
2015-10-16 15:52:01 +02:00
Aaron Bohy 6b2250b2d2 [FIX] mail: font-family of notification counter in systray
On firefox, the font-family of the counter was font-awesome instead of Roboto
because the counter was inside the <i> tag on which font-awesome rules applied.
This rev. simply moves the counter out of that <i> tag.
2015-10-16 15:52:01 +02:00
Géry Debongnie b8badd6263 [IMP] mail: various small ui improvements
including:
- decrease vertical spacing between user name and text
- decrease vertical spacing between messages
- align avatar width with first line of message
- bold channels more visible (color is actually white)
- decrease online status icon size and change its color
- hide the DM unpin icon, and show it only when hovering
- the add channel icons are less white
- offline user icon is now white
- the unpin icon is now visible when hovering on user name
- correctly display notifications in inbox
2015-10-16 15:52:00 +02:00
Martin Trigaux 6b84b08928 [FIX] hr_equipment: typo
will be fixed properly in master
2015-10-16 12:02:38 +02:00
Martin Trigaux c435db03a3 [FIX] account: typo in field definition
createS
missing 'when'
anly -> only
2015-10-16 11:53:40 +02:00
qdp-odoo c1920951ec [FIX] purchase: fixed onchange of product that wasn't setting the supplier taxes 2015-10-16 09:53:25 +02:00
qdp-odoo af0f33a475 [FIX] stock_account: raise proper error when the valuation accounts aren't set on the product category while trying to process a stock move for a product in perpetual valuation. Fixes #8873 2015-10-16 09:41:25 +02:00
Josse Colpaert 1456262801 [IMP] mrp: remove domain for analytic accounts referenced as they don't have type view anymore (and no type also) fixes #9063 2015-10-15 17:09:14 +02:00
Goffin Simon 81f34b977b [FIX] event_sale: get_default function
The get_default function must return the values to write in the same format
as in get_default defined in openerp/models.py

opw:652095
2015-10-15 16:55:33 +02:00
Richard Mathot f820daf43c [FIX] survey: bad groups for menus
Regular users should be able to see the Answers to a Survey, but the
messy configurations menus should be in technical features
2015-10-15 16:13:27 +02:00
Martin Trigaux f7aec21d21 [FIX] hr_payroll: wrong field in sheet computation
The type of the account is now on the field internal_type, there is no longer a type field

Fixes #9078
2015-10-15 09:32:31 +02:00
qdp-odoo ddbe0e18f3 [FIX] stock_account: raise an error if the valuation_amount is zero, to avoid wrong configurations. 2015-10-14 18:01:06 +02:00
Simon Lejeune 58ae39945a [FIX] ir_qweb: assetsbundle: commit the writes in ir.attachment
rev 6327cda0a tried to workaround the fact that the assets bundle were
unreadable when they are created in the same request by opening multiple
cursors and commiting the writes in ir.attachment. Sadly, this strategy
introduces sometimes hard to reproduce and hard to understand deadlocks
when regenerating the assets. This commit tries a ~safer strategy by not
opening multiple cursors but commiting the writes in ir.attachment when
a magic key is in the context.
2015-10-14 17:42:19 +02:00
Simon Lejeune d1fb85d3dc Revert "[FIX] ir_qweb: assets: write in ir.attachment outside of main transaction"
This reverts commit 6327cda0a7.
2015-10-14 17:42:19 +02:00