Commit Graph
108271 Commits
Author SHA1 Message Date
Pratima Gupta 4a28c103fe [IMP] crm: filter usability improvements
- Switch order of 'Unread Messages' and 'Won' filters
to group them by relevance
- 'Won' filter does not depend on the state property of
stage, since the 'Won' stage is not folded by default.
2017-03-07 14:34:01 +01:00
Nicolas Lempereur 65ac6b8ae3 [FIX] website: use public user for sitemap making
The current user was used to generate the sitemap. So if a user with
more permissions than `public user` goes on the sitemap, he could
generate it (if he is the first to see it or the last generation was
more than 12 hours ago (by default)) and have pages unavailables for
a user with lower permission in the sitemap (until the sitemap is
generated again).

The issue was solved in 8.0 with d08facdcb but was introduced back in
10.0 with fd09ddb6f because the `uid` argument was dropped from
`generate` method on `ModelConverter`.

Ths fix add the `uid` parameter back.

opw-708456
2017-03-06 16:52:45 +01:00
Olivier Colson 5169b50efe [IMP] l10n_ch
Add a new button to generate the ISR and remove the "double generation" of reports on 'Print invoice' button. This modification brings the code back to its original version and hence fixes the javascript bugs that occured with less than 3 workers running on the server and with Google Chrome when triggering multiple downloads simultaneously.

[ADD] account

Add a identifier to the 'register payment' button in order to reference it more easily and add the 'Print ISR' next to it.

[FIX] l10n_ch

The module did not install itself anymore, an import was missing.

Report generation was crashing due to a function's suppression.
2017-03-06 16:43:26 +01:00
Christophe Simonis cb00be643a [MERGE] forward port branch saas-14 up to a4d5e64a4c 2017-03-06 15:46:24 +01:00
Denis Ledoux a4d5e64a4c [FIX] report: Edit Header button in General Settings
opw-710501
Closes #15661
2017-03-06 15:39:27 +01:00
Thibault Delavallée 68225b3a69 [IMP] website_sale: improve website dashboard computation
* avoid searching on all available sale order when
   computing transactions and apply access rights;
 * use read_group on sale.report model to compute
   total sold
2017-03-06 15:38:07 +01:00
Martin Trigaux ad615c8c58 [I18N] l10n_be: update nl_BE.po based on .po
To reflect changes in two previous commit.
Remove outdated reference file.
2017-03-06 14:00:54 +01:00
Martin Trigaux f05a6385a2 [I18N] export l10n_be extra translations 2017-03-06 13:54:57 +01:00
Christophe Simonis d08ecdc3b8 [MERGE] forward port branch 10.0 up to 1279f82e12 2017-03-06 13:52:06 +01:00
lap-odoo 5a065ece72 [IMP] l10n_be: Taxes' names in French
The l10n_be module is in French and translated in Dutch.
No reason to have English content and even less mixed content.

#15723
2017-03-06 13:49:41 +01:00
Denis Ledoux 1279f82e12 [FIX] sale: sales order email template without portal_sale
When disabling the customer portal
in the general settings
(or uninstalling the `portal_sale` module directly),
the model `sale.order` no longer has a method
`get_signup_url`, and it therefore leads
to the fail of the email template rendering which is
still referencing this method.

Besides, the `access_url` is actually used only if
`is_online` is True,
(see the `% if is_online:` few lines later)
and in this case `get_signup_url`
was not used at all.

Therefore, we can assume `None` is a good alternative,
as the resul of `get_signup_url` was actually no longer
used.

opw-710481
2017-03-06 13:28:14 +01:00
Christophe Simonis 6b3a80862c [MERGE] forward port branch saas-11 up to 503227838d 2017-03-06 13:23:38 +01:00
Yannick Tivisse 08b75c181a [FIX] sale: Correct the tax inclusion definition in the sales config
The commit 1b31635 introduces a switch between the definions of tax included and excluded.

As the default value wasn't coherent with the intended behavior, the commit 2e467a7 tries to fix this.

This commit is correct. Switch back the selection labels and set back the default value.
2017-03-06 13:21:20 +01:00
Jeremy Kersten 925c5e8986 [FIX] website_sale: fix layout to remove last column in address page
task-31389
2017-03-10 11:29:58 +01:00
Jeremy Kersten 5c9cea4ee7 [FIX] website_sale: remove duplicated code for coupon and call from enterprise route
/shop/pricelist_payment was only defined in coupon module from enterprise.
Add optional r param in pricelist controller to allow to redirect into a specific page
2017-03-10 11:29:58 +01:00
Christophe Simonis 503227838d [MERGE] forward port branch 9.0 up to eaddb7caff 2017-03-06 13:09:17 +01:00
Denis Ledoux eaddb7caff [FIX] uninstall: unlink of many2one fields having one2many dependencies
The revision
ea9ef7c39d
introduced a regression:
many2one fields having one2many depending on it declared before
the declaration of the many2one itself were not unlinked
during a module uninstall.

As a result, the column in the table was not dropped,
and the table itself was not deleted either, not even truncated.

Therefore, when you tried to reinstall the module, you had data
left.

The check of the one2many dependencies must not be performed
during an uninstall. Anyway, this wasn't blocking the uninstall
of the modules,
it was just preventing the field  to be deleted, that's all.

opw-710291
2017-03-06 13:02:39 +01:00
Christophe Simonis be0c9596c8 [MERGE] forward port branch 9.0 up to 8092ee8c6a 2017-03-06 12:21:27 +01:00
Thibault Delavallée 856335ddb4 [REV] mail: remove unnecessary override to add filter in JS
This reverts commit 96b9d28351.
2017-03-06 12:04:43 +01:00
Thibault Delavallée 3ae9029732 [IMP] mail: add filter to see explicit mentions 2017-03-06 12:04:43 +01:00
Denis Ledoux 8092ee8c6a [FIX] purchase: taxes in price difference accounting entry
Setting the taxes in the accounting move entries
is important for the taxes report.

When a price difference occures in a purchase
with a product set in a perpetual inventory valuation,
the taxes set on the price difference move line should be the same
than the move line from which this price difference
is computed. Otherwise, the taxes report
do not have the whole purchase amount

opw-710228
2017-03-06 11:42:18 +01:00
Christophe Simonis ea527cc3fc [MERGE] forward port branch saas-6 up to 9ff0eb0586 2017-03-06 11:29:04 +01:00
Christophe Simonis 9ff0eb0586 [MERGE] forward port branch 8.0 up to 1246680756 2017-03-06 11:24:16 +01:00
Mahendra barad e625d9417e [IMP] mail: remove duplicated logs when scheduling activities
Currently when scheduling activities, duplicate logs are created. Indeed
a message is posted when scheduling an activity, editing it and marking it
as done. This leads to a lot of noise being created on records.

This commit remove logs when scheduling and updating an activity. A sole
message is posted when the activity is marked as done.

This is a partial backport of commit 26940f8de4 targetting saas-15.
2017-03-06 11:22:05 +01:00
Olivier Dony 944def6932 [FIX] ir.actions.server: allow execution by portal/public requesests
When an automated action triggers for an action of a public/portal
user session, the server action is executed with the session
credentials. As of 4a18d5744e
only employees can access model fields, including the model name,
so a temporary sudo() elevation is necessary to find the model name.

The `model` and `record` action context parameters are however still
provided with the credentials of the session, not the super-user.
2017-03-06 10:56:23 +01:00
Pratima Gupta 8c522750c8 [IMP] base: Rename res.partner _description from 'Partner' to 'Contact'
Purpose
=======

When using Studio and adding a many2one field for example, it will be easier for a non technical user to find the model res.partner under the name "Contacts" than under the name "Partners".
2017-03-06 10:46:45 +01:00
Denis Ledoux 8ecec2bfbb [FIX] payment_paypal: prevent the IPN feedback to return an HTTP error code
When you enable the IPN notifications in your Paypal account configuration,
the default IPN URL is mandatory.

You are therefore obliged to put the IPN feedback URL of Odoo
in this default URL, even if this is not used because
each transaction done by Odoo specifies the URL to which the IPN
notifications must be sent.

Because of this, if you use your Paypal account
for something else, e.g. Ebay, you receive
notifications of payments for these other transactions,
that have nothing to do with Odoo.

In such a case, Odoo returned an HTTP error status code (e.g. 500),
because Odoo couldn't find the given transactions, and
then Paypal sent emails to the Paypal owner
to tell the IPN feedback was failing. Eventually, after
several fails, Paypal automatically disabled the IPN
notifications of the given account.

With this revision, we now avoid to raise the Validation errors
in the case of the IPN feedback, and just logs it,
to avoid Paypal to sent emails to
the owner and to automatically disable the IPN notifications
if it receives transactions from other services than Odoo.

opw-702403
2017-03-06 10:37:49 +01:00
Odoo Translation Bot c0f0d49542 [I18N] Update translation terms from Transifex 2017-03-05 04:32:11 +01:00
Odoo Translation Bot 1246680756 [I18N] Update translation terms from Transifex 2017-03-05 02:55:35 +01:00
Odoo Translation Bot 1b6d91b5c3 [I18N] Update translation terms from Transifex 2017-03-05 00:30:41 +01:00
Thibault Delavallée 4ce5054457 [MERGE] website(_sale): improve website dashboard and merge website menu items
There is now a single menu item for Website and Website Admin. Depending
on current user access rights it redirects to the dasboard or the website
itself. It allows to simplify the application choice and management when
installing notably ecommerce.

Dashboard itself is renewed. It now contains a header including important
data about sales as well as links towards other web applications. Sales
part of the dashboard is improved to display relevant data.
2017-03-03 16:57:35 +01:00
Rohan Patel 856d891b3f [IMP] website_sales: improve demo data 2017-03-03 16:57:06 +01:00
Rohan Patel f6fc7c2319 [REF] website_sale: improve sales part of website dashboard
This commit refactors the sales part of website dashboard. It introduces
to main features

 * header of dashboard now contains buttons related to ecommerce orders
   and payments. It allows to quickly jump to the related business views;
 * graph and summary is updated to display more precise data about orders,
   carts, abandoned carts, orders to invoices and payment status.
2017-03-03 16:57:06 +01:00
Rohan Patel 4dd5a54110 [IMP] website_sale: add ecommerce-related sale report views and actions
Because we miss them.
2017-03-03 16:57:06 +01:00
Rohan Patel b9d831c66e [MOV] website_sale: move and rename files according to guidelines and clean imports
There should be no functional change implied by this commit. Only some
code move and file renaming to match guidelines.
2017-03-03 16:57:06 +01:00
Rohan Patel 27357ac566 [REM] website_crm: remove addition in website dashboard
Managing CRM should be done in CRM. Diziz da rule (tudududu ...
du dudududu). FGI rulez teh word.
2017-03-03 16:57:06 +01:00
Rohan Patel 4d1cef1b1f [IMP] website: improve dashboard header to have a website-related dashboard
This header displays icons that proposes to install other website related
applications.
2017-03-03 16:57:06 +01:00
Rohan Patel 79597a2b84 [REF] website: merge Website and Website Admin menu items
This commit merge the two website menu items in order to ease user flow
inside Odoo. When clicking on the Website item a server action is called
that decides to redirect the user either to the dashboard if the user is
an admin or a website publisher, either to the website for other people.
Overriding this method allows to define a specific behavior. Future commit
will also redirect sales people to the website dashboard.

Dashboard itself is customized to add a header used to display a website
button. It will be used in future commits to add other new stuff to the
dashboard.
2017-03-03 16:57:06 +01:00
Rohan Patel 47b532638e [IMP] website_*: improve groups on website menu items
This commit adds required groups on website application menu items
like blog and slides. It also move Website Admin menu definition from
res config views to website views, because it is where it should
always have been defined.

This commit also update some sequences to reorder Apps.
2017-03-03 16:57:06 +01:00
Rohan Patel 3b4b65849b [FIX] website: update google analytics documentation link 2017-03-03 16:57:06 +01:00
qdp-odoo cd65c79067 [FIX] l10n_mx: typo in manifest 2017-03-03 16:55:41 +01:00
Nicolas Lempereur 9d42807ce3 [IMP] l10n_ch: position isr report elements 2017-03-03 16:13:08 +01:00
qdp-odoo 1ba42a6f29 [IMP] l10n_ch: add support for ISR/BVR generation and postal bank accounts
The ISR is a payment slip report for account.invoice, that we automatically send and print with the regular invoice report (to ease usability, as these two reports usually go together).

[FIX] l10n_ch: italian translation

A field was missing for italian chart of account translation to work.
2017-03-03 16:00:05 +01:00
Olivier Colson b35990ee8a [IMP] account: add default value for partner_bank_id field
This field is referencing the bank account of the company issuing the invoice, so we default to the fist bank account for that company

[REF] account

Fix typo in id.
2017-03-03 15:59:52 +01:00
Olivier Colson 410d6a703b [IMP] report: allow generating multiple reports with one single action returned to js
That is useful in l10n_ch where we need to generate ISR and invoice simultaneously
2017-03-03 15:59:42 +01:00
Denis Ledoux ec2929fbfc [FIX] website_sale: disable the checkout confirm button on submit
On the checkout page, the page loaded after clicking on the
confirm button can take a while, for instance
if you have delivery carrier API requests to perform
(Fedex, USPS, UPS, ...) in order to get
their price according to the shipping weigth
and destination.

As it took a while, the end user was therefore tempted to submit the form
again, multiple times, which caused the requests to the delivery
carriers API to be performed multiple times, and it was
monopolizing multiple workers and the overal performance of the
server was impacted. It also leaded to concurrent update due
to the fact the sale order was being updated multiple times.

opw-710963
2017-03-03 15:58:05 +01:00
qdp-odoo 0031f98f1d [ADD] tools/float_utils: add float_split() and float_split_str() methods.
Add utility methods allowing to split floating points numbers and return their unitary and decimal parts.
2017-03-03 15:58:05 +01:00
fwi-odoo eb56b9bebc [IMP] website: allow defining the module used for the xml_id
When a new page is created, we want to allow the definition of the xml_id
as 'website.XXX' in order to have clean url in the frontend and not always
take the same module name than the template module name. Since the page
with url 'page/website.XXX' are parsed by the website controller to be
displayed as 'page/XXX'.
e.g. in studio we create page on the fly and don't want url as:
'www.odoo.com/page/website_studio.XXX'
2017-03-03 15:44:44 +01:00
fwi-odoo 3739453449 [FIX] website_crm: set form as uneditable
With the introduction of website_studio, some forms need to be set as
uneditable in order to not be displayed in studio.
2017-03-03 15:44:36 +01:00
amoyaux c0dffa3433 [FIX] Website_Sale: State / Province doesn't appear when needed.
Use case when it happens:
* Go to billing for a product in website
* Modify or create an address
* Select a country without state
* State field disappear
* Select a country with states
* State field doesn't appear -> Bug

If you confirm, it raises an error asking you to fill the state
field and this one reappear.

The bug come from this forward port 1ef4061e68

This fix removes :visible from the jquery selector on state tag selector
since the logic is different in version 10.

opw-707402
2017-03-03 15:38:11 +01:00