Commit Graph
103218 Commits
Author SHA1 Message Date
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
Goffin Simon 223263911a [FIX] website_sale_options: currency in modal
Inspired from template product_price and product_lst_price in addons/website_sale/views/template.xml
because the price displays in this template must be the same in the website_sale_options.modal

opw:652209
2015-10-19 09:04:04 +02:00
Martin Trigaux 92e921bed2 [FIX] project: untranslated terms
Were not present in .pot files
Re-export all project related modules
Fixes #9119
2015-10-19 08:50:05 +02:00
Odoo Translation Bot a7c474b3a7 [I18N] Update translation terms from Transifex 2015-10-18 03:00:56 +02:00
Odoo Translation Bot 7592d85b1f [I18N] Update translation terms from Transifex 2015-10-18 01:35:07 +02:00
Denis Ledoux 0cfaa59785 [MERGE] forward port of branch 8.0 up to f102a8b 2015-10-16 17:42:46 +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
Josse Colpaert f102a8bc23 [FIX] stock: in assign method, to force_assign moves should avoid duplicates courtesy of Wolfgang Taferner closes #8522 2015-10-16 15:12:36 +02:00
Goffin Simon 91e897618b [FIX] website_sale_options: currency in modal
Inspired from template product_price in addons/website_sale/views/template.xml
because the price displays in this template must be the same in the website_sale_options.modal

opw:652209
2015-10-16 14:48:13 +02:00
Goffin Simon b00f0185a2 [FIX] models: read_group on many2one fields
When making on model A a read_group with groupby equal to a many2one field F1 to a model B
which is ordered by a inherited not stored field F2, the group containing all the
records from A with F1 not set was not returned.

Example:
model A= "hr.applicant"
model B= "res.users" (_order = "name,login")
inherited model= "res.partner"
field F1= "user_id"(to "res.users)
field F2= "name"(inherited from "res.partner")

In this example, the query generated by the function "read_group" was:

SELECT min(hr_applicant.id) AS id, count(hr_applicant.id) AS user_id_count , "hr_applicant"."user_id" as "user_id"
FROM "hr_applicant" LEFT JOIN "res_users" as "hr_applicant__user_id" ON ("hr_applicant"."user_id" = "hr_applicant__user_id"."id"),"res_partner" as "hr_applicant__user_id__partner_id"
WHERE ("hr_applicant"."active" = true) AND ("hr_applicant__user_id"."partner_id" = "hr_applicant__user_id__partner_id"."id")
GROUP BY "hr_applicant"."user_id","hr_applicant__user_id__partner_id"."name","hr_applicant__user_id"."login"
ORDER BY  "hr_applicant__user_id__partner_id"."name" ,"hr_applicant__user_id"."login"

which always returned "hr.applicant" groups of records with a "user_id" set due to the inner join maked on res_partners.

This inner join on "res_partner" is coming from function "add_join" calling by "_inherits_join_add"
in _generate_order_by_inner.

Introduced by dac52e344c

opw:651949
2015-10-16 12:11:31 +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
Carlos Almeida 1fdd5cf975 [FIX] base: BRL currency position to before value
Closes #9098
2015-10-16 11:35:55 +02:00
Nicolas Martinelli de1fb68444 [FIX] google_calendar: fix error type
The call to delete_an_event calls the method _do_request, which will
throw a urllib2.HTTPError.

opw-652219
2015-10-16 10:26:41 +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
Goffin Simon a8fa06867b [FIX] procurement_jit_stock: Cancelled MO
To avoid running  procurement in exception or cancel state.

Before the fix:

After cancelling a MO, when recreating the delivery order linked to the sale order in state
"Shipping Exception" the system generated 2 more copies of MO (1 Extra) instead of just one
for the cancelled MO.

After the fix:

Just one MO is recreated for the cancelled MO.

opw:650395
2015-10-16 09:04:09 +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
Nicolas Lempereur feff0c7b64 [IMP] website_payment: visual fix if no payment acquirer 2015-10-15 16:44:57 +02:00
Denis Ledoux 6d42788bfb [MERGE] forward port of branch 8.0 up to 8d4ca3d 2015-10-15 16:27:20 +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
Nicolas Martinelli 8d4ca3d787 [FIX] mail: localize display date in chatter
This will display the localized date in the chatter.

opw-651625
Closes #9038
2015-10-15 15:02:03 +02:00
Nicolas Martinelli 16f3e3c87e [FIX] mail: localize display date in chatter
This will display the localized date in the chatter.

opw-651625
Related to #9038
2015-10-15 14:10:29 +02:00
Nicolas Lempereur ba9771d6ec [FIX] website_membership: don't display old as members
Follow-up of 5ac77c9 which solved the issue when an association was
selected, but not when "All Members" was choosen.

Before this commit, the displayed membership lines would only be the
paid ones, if an association (membership product) was selected. With
this commit this is also the case when no such association is selected.

This commit also correct the member counts in the "country" list :

* with "All members" the free members were not in the counts,
* with not "Free member", the counts didn't took the eventual current name search.

closes #9083
opw-648627
2015-10-15 12:08:51 +02:00
Goffin Simon 0239d1b357 [FIX] models: read_group on many2one fields
When making on model A a read_group with groupby equal to a many2one field F1 to a model B
which is ordered by a inherited not stored field F2, the group containing all the
records from A with F1 not set was not returned.

Example:
model A= "hr.applicant"
model B= "res.users" (_order = "name,login")
inherited model= "res.partner"
field F1= "user_id"(to "res.users)
field F2= "name"(inherited from "res.partner")

In this example, the query generated by the function "read_group" was:

SELECT min(hr_applicant.id) AS id, count(hr_applicant.id) AS user_id_count , "hr_applicant"."user_id" as "user_id"
FROM "hr_applicant" LEFT JOIN "res_users" as "hr_applicant__user_id" ON ("hr_applicant"."user_id" = "hr_applicant__user_id"."id"),"res_partner" as "hr_applicant__user_id__partner_id"
WHERE ("hr_applicant"."active" = true) AND ("hr_applicant__user_id"."partner_id" = "hr_applicant__user_id__partner_id"."id")
GROUP BY "hr_applicant"."user_id","hr_applicant__user_id__partner_id"."name","hr_applicant__user_id"."login"
ORDER BY  "hr_applicant__user_id__partner_id"."name" ,"hr_applicant__user_id"."login"

which always returned "hr.applicant" groups of records with a "user_id" set due to the inner join maked on res_partners.

This inner join on "res_partner" is coming from function "add_join" calling by "_inherits_join_add"
in _generate_order_by_inner.

Introduced by dac52e344c

opw:651949
2015-10-15 11:49:33 +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
Martin Trigaux 5575f98db1 [FIX] account: missing terms in .pot file 2015-10-15 08:46:39 +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
Simon Lejeune ed56952079 Revert "[FIX] ir_qweb: add id to ir.attachment mock"
This reverts commit c3c2281a4d.
2015-10-14 17:42:19 +02:00
Nicolas Lempereur b0a4dd0127 [FIX] workflow: don't process workitem several times
In some complex use case of a workflow instance with several workitems,
a given workitem processing could itself somewhat recursively process
one of the following workitems.

This situation was currently not taken into account, so in that given
case, the already processed workitems would be processed again.

opw-647580
2015-10-14 17:37:13 +02:00
Cedric Snauwaert 1487cf4e16 [FIX] stock: fix problem in barcode interface when trying to scan a location with a scanner
this fix a problem when trying to scan a location inside the opened modal to change location from a product
2015-10-14 17:06:02 +02:00
Denis Ledoux fc1f3b3424 [FIX] account_analytic_analysis: integer out of range
When reading the view
`account_analytic_analysis_summary_user`,
through the function fields using `_analysis_all`,
it could lead to an
`integer out of range` if you have a bunch of
`res.users` and or `account.account`. Casting
the multiplication of the integers to a double
solves the issue.

opw-652152
2015-10-14 16:41:00 +02:00
qdp-odoo 3f231fc0ac [IMP] account: auto-install account_yodlee module for some more localizations, accordingly to what is written at https://docs.google.com/spreadsheets/d/1tnUwiweunpjBdDkzTx2XqfE8Usv9MZPH_C20WRVoyvY/edit#gid=0 2015-10-14 16:36:38 +02:00