Commit Graph
102578 Commits
Author SHA1 Message Date
Christophe Simonis 05bbcd6bf9 [FIX] website_sale: correct errors introduced by previous forward-port 2016-05-04 18:31:56 +02:00
Christophe Simonis 70842689a0 [FIX] base,website_sale: correct errors introduced by previous forward-port 2016-05-04 17:42:38 +02:00
Christophe Simonis 4b542b0484 [~MERGE] forward port of odoo/enterprise branch saas-10 up to odoo/enterprise@5ca7d8bc31
NOTE: all .po files haven't been forward-ported due to conflicts. Once
.pot updated, the auto-match of transifex should get them back.
2016-05-04 17:10:00 +02:00
Christophe Simonis 0fbc92e0c4 [MERGE] forward port of branch saas-10 up to 1e86774 2016-05-04 17:09:51 +02:00
pvy 858188f1a2 [IMP] account: query_get improved to allow usage of analytic_account_id in reports 2016-05-04 16:42:40 +02:00
Shivam Dudhat 4c042cd55f [MIG] report_intrastat : Converted yml test cases to unittest 2016-05-04 16:31:52 +02:00
Yannick Tivisse 7725d7e683 [MIG] report_intrastat: Migrated to new api 2016-05-04 16:31:52 +02:00
Yannick Tivisse a8010ab6e2 [MOV] report_intrastat: Split files matching new api guidelines. 2016-05-04 16:31:52 +02:00
Yannick Tivisse d72346df02 [MOV] report_intrastat: Restructured files matching new api guidelines 2016-05-04 16:31:52 +02:00
Christophe Simonis 1e86774207 [MERGE] forward port of branch saas-9 up to 89873cb 2016-05-04 15:42:26 +02:00
Aaron Bohy 7ded5370f1 [REF] mail,web: unique Spinner template in base.xml 2016-05-04 15:06:20 +02:00
Aaron Bohy 80e83f17d4 [IMP] mail: chatter: better sync between chatter and form view
When switching between records, the displayed thread was still the one of the
previous records until the messages of the current record were loaded, which
could be confusing.

Moreover, when quickly browsing records using the pager, it could happen that
the resulting displayed thread wasn't the one of the displayed record (if
we visited a record with a long thread history, the RPC to load that history
might return after the one of the current record).

This commit aims to always synchronize the displayed thread with the current
record, by
  - directly hide the previous thread when browsing records
  - displaying a spinner after 1s to indicate that the thread is loading and
    (possibly) not empty
  - ensure to only render the thread of the last visited record
2016-05-04 15:06:20 +02:00
Aaron Bohy befbdcb935 [ADD] web: some deferred utils 2016-05-04 15:06:20 +02:00
Géry Debongnie 782a4466fe [IMP] web: better fuzzy search
The goal of this commit is to have better search results when fuzzy
searching.  Before this commit, the position of a match was irrelevant
to the search results.  After, a match in a first position has more
weight than a match in last position.  This is better, because we often
want to find results using the first letters.

This is controversial, but I could not find a better way to do this
without rewriting the whole library myself (which might not be a bad
idea, it is only 50 lines long)
2016-05-04 14:46:46 +02:00
Christophe Simonis 89873cbed5 [MERGE] forward port of branch 9.0 up to 3381e7b 2016-05-04 14:42:54 +02:00
Christophe Simonis 3381e7bedf [MERGE] forward port of branch saas-6 up to 19d62ec 2016-05-04 14:37:33 +02:00
Christophe Simonis 19d62ec5a7 [MERGE] forward port of branch 8.0 up to e664d30 2016-05-04 14:31:38 +02:00
Goffin Simon c768bbeb22 [FIX] base: Changing a company contact in a company
When a company contact is changed in a company, this contact will
not be displayed as a company contact.

opw:673715
2016-05-04 14:25:11 +02:00
Martin Trigaux f47e39edf9 [IMP] doc: add documentation of read_group
Has already a docstring but was not included
2016-05-04 13:42:47 +02:00
Nicolas Martinelli 51064be4b3 [FIX] hr_holidays: access to resource calendar
Make sure the user can have access to resource calendar.
2016-05-04 12:13:59 +02:00
Nicolas Martinelli fb8f2c99cc [IMP] hr_holidays: handle UoM in resource calendar
In a company, there might be several contract types, e.g.:
- 38 Hours/Week, 5 Days/Week
- 45 Hours/Week, 5 Days/Week
- 24 Hours/Week, 2 Days/Week (work on week-end only)

Therefore, it is necessary to be able to define the average number of
hours per day on a resource calendar.
2016-05-04 12:13:59 +02:00
Adrien Peiffer (ACSONE) e664d3074c [FIX] account: A negative amount with sale taxes on bank statement line must be considered as a refund. Courtesy of Adrien Peiffer (ACSONE). PR #11877 2016-05-04 11:31:20 +02:00
Thibault Delavallée e6d7261692 [FIX] stock, delivery: put_in_pack return
When called in new API it returns a record, not an ID. Update the override
in delivery accordingly.
2016-05-04 11:26:38 +02:00
Goffin Simon 86ae7b1e1a [FIX] website_project_issue: Issues visibility in frontend for portal users
The domain used to search the project issues in the website_project_issue
controller(['/my', '/my/home']) was useless thanks to the ir.rule portal_issue_rule

opw:676447
2016-05-04 10:46:13 +02:00
Thibault Delavallée d386993672 [REM] mrp, purchase: dead code in stock
_get_all_products_to_resupply seems to be dead code since a long time. Even in
8 the base method cannot be found.
2016-05-04 10:30:53 +02:00
Olivier Dony 83a5c9d51e [FIX] analytic: move action after corresponding search view
Rev d115c24d6b introduced the
dependency but forgot to move the records in the right order.
2016-05-04 10:05:26 +02:00
Jeremy Kersten 13b34c2694 [FIX] base: avoid duplicate title
Add sql constraints to avoid duplicate title
2016-05-04 01:30:38 +02:00
Jeremy Kersten 7588ea8d74 [IMP] crm: diplay only employee in m2o user_id/saleman. 2016-05-04 01:30:38 +02:00
Jeremy Kersten 32aff64b85 [IMP] openerp: imp design when render default form view
When a form view had only one field, it was fullwidth.
Now we add a separator automatically. That (seems) have no
effects on model with several field and fix the display when
only one field.
2016-05-04 01:30:38 +02:00
Jeremy Kersten 28791ab5db [FIX] crm_partner_assign: remove useless button, oe_stat_button do it. 2016-05-04 01:30:38 +02:00
Denis Ledoux 6beeec363a [FIX] crm_partner_assign: Interested message subtype
When a partner tells he is interested or not by a lead,
the customer on the lead must not receive a mail
with this information.

opw-676729
2016-05-03 18:03:27 +02:00
Martin Trigaux dd6640616e [FIX] mrp: include workcenter cost in total cost
Estimate the workcenter cost based on produced quantity so far.
The workcenter cost is written on analytic accounts at the end of the production
only. A new method _compute_costs_from_production is needed to estimate the
workcenter total cost and then divide by the produced unit.

opw-675994
2016-05-03 17:13:49 +02:00
Martin Trigaux bc23c92c3e [FIX] mrp: avoid empty cost of produced product
If the production flow is in two steps:
1. consume raw material
2. produce manufactured product

The total_consume_moves was empty (so computed cost was 0)

Include the moves that were already consumed since the last production.
This will offer a correct estimation of cost of production in real time for
companies producing in several steps.

opw-675994
2016-05-03 17:10:20 +02:00
Jérome Maes 32203627b2 [MIG] note_pad : migration to new api 2016-05-03 16:59:20 +02:00
Jérome Maes af8643248f [MOV] note_pad : move files 2016-05-03 16:59:19 +02:00
Anand Kansagra b3b0b23fe2 [MIG] note : migration to new api 2016-05-03 16:59:19 +02:00
Jérome Maes 032f0be5ba [MOV] note : split file per main models 2016-05-03 16:59:19 +02:00
Anand Kansagra e7007ba3f3 [MOV] note: Re-organised file structure. 2016-05-03 16:59:19 +02:00
qdp-odoo d115c24d6b [FIX] account: analytic lines pivot table reporting menu + copy of the analytic tags on analytic lines from aml 2016-05-03 16:46:42 +02:00
Aaron Bohy 39a48a4090 [FIX] mail: systray: colors in messaging menu
Default color is white in the enterprise webclient since the navbar refactoring
of bf39884.
2016-05-03 15:15:53 +02:00
Raphael Collet d5abeb2c5b [FIX] base_action_rule: simplification typo in make_unlink() 2016-05-03 14:23:33 +02:00
Nicolas Martinelli aa87e66c46 [IMP] hr_holidays: resource calendar in hr_holidays
The module hr_holidays now uses the resource calendar to compute the
number of days in a leave request.

opw-676596
2016-05-03 13:37:30 +02:00
Goffin Simon da3ca72ba3 [FIX] sale_mrp: return of _get_anglo_saxon_price_unit
This function _get_anglo_saxon_price_unit must always return the price_unit.
2016-05-03 13:16:36 +02:00
Nicolas Martinelli 6b32ee456c [IMP] resource: work less
45 Hours/Week is too much, 40 is enough. And by the way, now it matches
with the default ratio 1 day = 8 hours defined in the UoM.

opw-676596
2016-05-03 12:23:54 +02:00
Damien Bouvy fdcd788afb [FIX] account: SO reference in register payment wzd
Follow up of fix 6f8030a

This previous fix removed the reference field when creating an
invoice from a sales order since this field was for Supplier
Invoices (and is not shown for Customer Invoices).

While this males sense, it had the side effect of removing the
default value for the "Register Payment" wizard.

To keep this wizard populated with the most sensible data,
the default is now set to reference or name or number (in that
order).

opw 676261
2016-05-03 10:59:57 +02:00
Aaron Bohy 019fcae90b [FIX] mail: messages sent as reply to previously selected message
In Discuss, if a message was selected as message to reply to, it wasn't reset
when switching to another channel. So if the user sent a message in that other
channel, the message was sent as reply to the previously selected message.

This rev. ensures to always unselect messages when switching between channels.

Closes #11879
2016-05-03 10:53:30 +02:00
Aaron Bohy bbf64347e4 [FIX] mail: escape author name in messaging menu 2016-05-03 10:53:30 +02:00
Sylvain LE GAL e94b2f8a3e [FIX] point_of_sale: display select button on client list after scanning
Before this, if you where on the customer selection screen and scanned a
customer barcode the customer would be shown, but you were not able to
select him.

This correctly sets ClientListScreenWidget.new_client to the scanned
partner which makes the button toggle.

Closes #11874
2016-05-03 10:36:05 +02:00
Aaron Bohy 03a764891c [ADD] mail: command /who
available in channels and chats, but not livechats as the public user isn't
really "in" the channel (the command would reply that you are alone in the
channel, which isn't necessarily the case)
2016-05-03 10:34:41 +02:00
Aaron Bohy 9865d3c0b7 [ADD] mail: command /leave
Required some changes for the client_action to correctly remove the left
channel from its sidebar, and switch to Inbox.
2016-05-03 10:34:41 +02:00