Commit Graph
104467 Commits
Author SHA1 Message Date
Martin Trigaux efa66eb83b [FIX] tx: correct the path to base.pot
In saas-12, it is still openerp, changed in saas-13
2016-09-14 12:13:37 +02:00
Christophe Simonis 13765b59c3 [MERGE] forward port branch saas-11 up to 19b4f5e 2016-09-14 12:06:31 +02:00
Christophe Simonis 19b4f5efe4 [MERGE] forward port branch saas-10 up to fa7430c 2016-09-14 11:58:45 +02:00
Christophe Simonis fa7430c157 [MERGE] forward port branch 9.0 up to 5be4086 2016-09-14 11:56:05 +02:00
Christophe Simonis 5be40868b1 [MERGE] forward port branch saas-6 up to a5dfe2f 2016-09-14 11:53:46 +02:00
Christophe Simonis a5dfe2f0d4 [MERGE] forward port branch 8.0 up to 3e4206b 2016-09-14 11:52:24 +02:00
Damien Bouvy 4c95824602 [FIX] website_(portal_sale|crm_partner_assign): accept kw on account controller
Avoids a crash when trying to view /my/home in debug mode.
2016-09-14 11:01:56 +02:00
Damien Bouvy 581d9c1819 [FIX] website_portal: make route user-restricted
The route /my/home should be auth="user", otherwise you get a
403 when you arrive there (without possibility to login).
2016-09-14 10:32:46 +02:00
Richard Mathot b917cf968b [FIX] hr_expense: wrong mailto: link
Parce que tester c'est douter.
2016-09-14 09:49:25 +02:00
Fabien Meghazi 3a7f211f8b [FIX] hr_expense: elevate privilege in order to subscribe users (closes #13436) (opw-687508) 2016-09-13 19:23:00 +02:00
Denis Ledoux 4e7981f7ac [FIX] web: prevent search dropdowns to close on click inside
The class `oe-search-options`
has been renamed to `o_search_options`
at the revision
977db823c7

See the full explanation of the bug fix here:
4601b044a6e4dbf162cfca9bf0be5ff2a21dd4f5q
2016-09-13 18:22:39 +02:00
Christophe Simonis 874fb70543 [FIX] hr_recruitment: bring back postion in applicant kanban view
This was wrongly removed by a8e811a08c
2016-09-13 18:00:17 +02:00
Jeremy Kersten a624d67603 [FIX] website_links: fix position Share this Page + rename it in Track this page 2016-09-13 17:33:42 +02:00
Denis Ledoux 0406d68604 [FIX] stock: remove extra underscore from company__id
This is an oversight during the conversion of the
module `stock` to the new API, in the below revision
fe9b31c0e7

opw-688389
2016-09-13 17:19:38 +02:00
Jeremy Kersten f669ebeaf5 [FIX] website_crm_partner_assign: fix portal lead/issue to use commercial_partner_id
Before this commit, only partner really assigned to the lead AND with a grade was
able to see their leads.
Now we check that the top level partner (commercial_partner_id) has a grade, and show
all the leads under this commercial_partner_id.

Try to get the same behaviour that previous portal backend.

opw-688359
2016-09-13 15:45:52 +02:00
Damien Bouvy 1dd5c50651 [FIX] website_project_issue: apply f0e557c to count controller
The goal is to display the number of issues that are in projects
with a "portal" privacy setting. However, this setting is used by a
record rule to limit access to the project to followers only; this
means that you should add all the customers who submit issues to your
support project. This makes no sense.

To circumvent this problem, the domain of projects with this visibility
setting is fetched as sudo.
2016-09-13 15:21:43 +02:00
Jairo Llopis f0dd8feee5 [FIX] website_portal: fix 403 when changing account details
A portal user couldn't change his address details if he was
of type `contact`

This happens because users usually
have no access to write their parent company.

opw-688192
Closes #13430
2016-09-13 15:18:02 +02:00
Jeremy Kersten 5b146c6836 [FIX] website_quote: group has been moved from base to sales_team 2016-09-13 14:21:38 +02:00
Christophe Simonis 6ecf6ce39b [FIX] website_crm_partner_assign: correct new-api convertion leftover 2016-09-13 13:19:23 +02:00
qsm-odoo 965d5a42fd [FIX] web_editor: allow to drop a snippet where its movement began
Before this commit, if we dragged a snippet and dropped it where we
began the drag, the snippet was removed.
2016-09-13 13:18:17 +02:00
Denis Ledoux e5f819dc46 [FIX] stock, purchase: fix po confirm of kits BOM
This is an oversight of the revision
cb486d7eb6

In the above revision, which converts the module
`stock` to the new API,
the return value of the method `action_confirm`
has been changed:
 - Before, it returned the list of move ids that have
 been confirmed,
 - After, it returns `True`

The former return value is expected by `mrp`,
when using kits BOM: In this use case,
the purchase of one product can lead to the reception
of multiple products, and therefore the confirmation
of one move can lead to the confirmation of multiple
moves.

In addition, the move that was initially confirmed could
no longer exist after the call of the method `action_confirm`.

The method `action_confirm` of `stock.move`
is expected to return the list of moves that were actually confirmed.

e.g. in purchase, before the conversion to the new API (<= saas-10),
to assign all the moves that were created through
the action confirm of the initial move, and not only the initial moves,
thanks to:
```
move_ids = moves.action_confirm()
moves = self.env['stock.move'].browse(move_ids)
moves.force_assign()
```
The above code has been wrongly converted in the new API with just
```
moves.action_confirm()
moves.force_assign()
```
Which changes the behavior, as, before, all the moves that were
created through `action_confirm` were being assigned, and, after,
only the moves with which the method `action_confirm` has been called
are being assigned.

Besides, with the kits BOM, the move with which `action_confirm` was
being called no longer exists after the call, and attempting to
call the `force_assign` method on it leads to the error
`Record does not exist or has been deleted.`

opw-688231
2016-09-13 12:48:55 +02:00
Damien Bouvy f0e557cbc6 [FIX] website_project_issue: fetch the portal projects domain with sudo
The goal of this controller is to display issues that are in projects
with a "portal" privacy setting. However, this setting is used by a
record rule to limit access to the project to followers only; this
means that you should add all the customers who submit issues to your
support project. This makes no sense.

To circumvent this problem, the domain of projects with this visibility
setting is fetched as sudo.
2016-09-13 12:09:02 +02:00
Martin Trigaux 29ed42d901 [I18N] export master translations
odoo-master project is the latest master, so saas-12 here
2016-09-12 16:11:54 +02:00
Martin Trigaux 45ae2f153a [FIX] point_of_sale: correct the pluralisation
The correct plural of 'Point of Sale' is 'Points of Sale', not 'Point of Sales'
Courtesy of Nick Booker, OpusVL
cf #13417
2016-09-12 16:08:50 +02:00
Richard Mathot 4581d02abe [FIX] sale: typo in data 2016-09-12 16:01:50 +02:00
qsm-odoo 5e9ebcfb01 [FIX] web_editor: properly call on_remove method of snippet options
The snippet options can define an on_remove method which was supposed
to be called when the snippet is removed. This was not the case since
the method was written so that the options were removed before the
on_remove method was called... (Un)fortunately, the on_remove callbacks
were not doing any critical job in current implementation. In saas-13
however, some elements will rely on this.
2016-09-12 15:35:16 +02:00
Martin Trigaux 64f0b217b4 [FIX] website_crm_partner_assign: do not browse a recordset
search returns a recordset, not ids
In previous code `country.id` retuns the record, not the id.
2016-09-12 15:27:35 +02:00
Ryan Cole d3d360ace6 [FIX] doc: typo in deployment
Closes #13387
2016-09-12 15:06:50 +02:00
Mansi Gandhi e0089f6fcd [FIX] point_of_sale: typo
opw-688169
2016-09-12 14:58:45 +02:00
Christophe Matthieu 8182d98ac7 [FIX] web: traceback when click on logo 'Edit Company data' button 2016-09-12 10:10:49 +02:00
Damien Bouvy 3e4206b4d4 [FIX] payment_paypal: accept GET requests for Paypal DPN
Although we have been reluctant to perform this change, a specific
use case can cause customers to be redirect to the Odoo DPN url
with a GET request.

This happens when a Paypal Merchant account has the feature Guest
Checkout active; in that case, a customer can pay without having
a Paypal account (using only his credit card) and will *not* be
subjected to auto-return; as detailed here:
https://www.sandbox.paypal.com/be/cgi-bin/webscr?cmd=p/pop/help-account-optional
Request coming from that payment flow will always trigger a GET
request, causing the customer to be welcomed by a
405 - Method Not allowed
error on the Odoo server. The payment is normally correctly processed
through IPN, so this does not normally causes loss of data; however
this is not a nice way to welcome back your customer right after
they pay you.
2016-09-12 09:24:38 +02:00
Nicolas Martinelli dd1eb03af5 [FIX] account: base amount when tax calculated
Commit 8ad0c0f3 introduces back the base amount taken into account for
tax calculation. However, the way it calculates the amount is wrong in
several cases:
- the tax amount is a percentage
- the tax is calculated thanks to Python code

opw-686846
2016-09-12 08:31:47 +02:00
Odoo Translation Bot 40691d31f3 [I18N] Update translation terms from Transifex 2016-09-11 03:04:01 +02:00
Odoo Translation Bot 043144ce42 [I18N] Update translation terms from Transifex 2016-09-11 00:35:15 +02:00
Christophe Simonis 9f28139297 FIX] website_sale: revert invalid patch introduced by previous forward port 2016-09-09 17:15:53 +02:00
Christophe Simonis 7a02b90e17 [MERGE] forward port branch saas-11 up to dc4d6b6 2016-09-09 15:43:06 +02:00
Christophe Simonis dc4d6b6a7a [MERGE] forward port branch saas-10 up to e1bd405 2016-09-09 15:14:39 +02:00
qsm-odoo b5f7b49ff8 [FIX] web_tour: clear inconsistent localstorage keys
When users switch from one version to another, the localstorage is not
cleared and users can get errors because the tour manager is trying to
load steps (according to the localstorage content) which could not
exist anymore.

This could also happen when a module which extends another module tour
is installed.
2016-09-09 11:57:27 +02:00
Christophe Simonis e1bd405d8c [MERGE] forward port branch 9.0 up to af87c57 2016-09-09 11:49:48 +02:00
Christophe Simonis af87c57e51 [MERGE] forward port branch saas-6 up to f98665f 2016-09-09 11:26:15 +02:00
Christophe Simonis f98665f9b6 [MERGE] forward port branch 8.0 up to b17b2a2 2016-09-09 10:52:34 +02:00
Olivier Dony 0feaeb7641 [CLA] CCLA signature for GoOpen, računalniške storitve, Aleš Ferlan s.p.
Received PDF signature by email on 2016-09-06, from
Aleš Ferlan <alefer89@protonmail.com>.

See opw-687914 for original PDF signature.
2016-09-09 10:22:31 +02:00
Nicolas Lempereur 66de0ea75a [FIX] website_sale: saved shipping country/state
When selectionning a saved shipping address when setting the shipping
address of an ecommerce order, the country and state should be set
accordingly.

unrelated issue noticed when testing e0d4dd01cc
2016-09-09 10:13:28 +02:00
Yannick Tivisse 716128598a [FIX] website_project, website_sale: Compute correctly emails notification group
If a user is not set into a notification group, don't add him automatically in the done_ids
2016-09-09 10:06:17 +02:00
Nicolas Lempereur e0d4dd01cc [FIX] website_sale: toggle shipping state display
In 1ef52c9c the code displaying state of a given country was improved
for some incompatibilities.

But, if when setting the billing informations we choose to create a new
shipping address, the shipping state* would not be displayed even when it
should be (currently, if the shipping country is Australia or U.S.).

opw-687948

*a state being a subdivision of a country
2016-09-09 09:45:00 +02:00
Olivier Dony b17b2a2eb7 [FIX] http: do not allow passing spaces around db in URL param
Until 9.0 our psycopg2 DSN connection strings do not allow having
spaces within the db name, and passing some can cause duplicate
registries to be loaded.

Stripping spaces is a simple workaround until we actually support
spaces within db names.

Fixes #13078
2016-09-09 09:28:10 +02:00
Yannick Tivisse c85b6ccbd0 [FIX] hr_expense: Allow line modifications on refused expense report
Issue: An employee submits an expense report and this report is refused by the HR or the accountant (Wrong amount, one line will not be paid,...). Currently the expense fields are readonly except in draft state. In our case, the employee is unable to modify a line and resubmit the expense report.

This fix remove the readonly state on the expense line in refused state.
2016-09-09 08:36:31 +02:00
Fabien Meghazi 1d4f2a59e1 [FIX] point_of_sale: bug in decimal.precision lookup 2016-09-08 18:09:05 +02:00
Martin Trigaux ba070781b8 [FIX] point_of_sale: restored removed report
The sale of the day report was removed during new api migration as it was
thought, it could be replaced by pivot view.
Due to the lack of some options and the problems to be printed, create similar
report.

This commit adds a report in the PoS interface to be printed on ESC/POS printers
and add a JS wizard to restore it in the backend with date selection.

The wizard is made in a new web widget because adding a wizard requires changes
not compatible with stable version.
Creating a proper wizard should be done in v10

opw-681833
2016-09-08 16:37:01 +02:00
Denis Ledoux 6415e761fa [FIX] note: fix partners images in note kanban
Since 9.0, `message_follower_ids` are
`mail.followers` records,
the partner are in `message_partner_ids`.

Therefore, the partner images displayed in the note kanban
were not the images of the right partners.

opw-688100
2016-09-08 16:32:56 +02:00