Commit Graph
103414 Commits
Author SHA1 Message Date
Jérome Maes cfb8e8700a [FIX] calendar: view meeting detail when not logged
Since the new QWeb engine, `groups` directives on template
rendered in a route with auth=none is simply ignored, since
all is done as SUPERUSER_ID, it was impossible to instanciate
the webclient to check if the session is valid and to display
meeting info or redirect to event form view.

It seems that we don't want to fix this because routes auth=none
are rare, and special. So it is not considered as a bug.

The fix for calendar is, however, to do redirection or template
rendering server side.
2016-06-20 16:19:32 +02:00
Daniel Dico 3cb64f517a [IMP] payment_stripe: better content
show logo, merchant name, description, currency and amount on the stripe
checkout page.

Add the field stripe_image_url to display the logo that was configured according
to https://stripe.com/docs/checkout
Do not use company logo as there is no guarantee on the image ratio.

Closes #12378
2016-06-20 15:59:18 +02:00
Jeremy Kersten 757a917088 [FIX] base: add disabled users at write on 'users' or 'implied_ids' of res_group
If a user is disabled but in a implied_ids group, it was ignored and
so not added.

Eg: public_user is by default disabled,
So:
    <record model="res.groups" id="base.group_public">
        <field name="implied_ids" eval="[(4, ref('foo'))]"/>
    </record>

will not add the public_user in group foo.

It is coherent with the method execute of resConfig which already use the
active_test=False.

Courtesy of @odony for review
2016-06-20 13:38:26 +02:00
Jeremy Kersten 6ad47aeb68 [FIX] web: fix migration to new api
Context in new API is not more a parameter.
Before this fix, context was interpreted has attribute parameter
and so the fields_get return empty dict.

This commit fix tracback when we try to export data in list view from
any model. The wizard try to know the fields from current model and a
traceback is raised (key error for  field['string'])
2016-06-20 13:05:20 +02:00
Jeremy Kersten fc22b549b1 [FIX] website_quote: fix report Price
l is not defined, it is line.

Bug introduced with commit odoo/odoo@5f5f8d8.

But it was never detected before because there was
no value for b2b/b2C before commit odoo/odoo@e6184aeb37
so total/subtotal in report was never print.
2016-06-18 01:56:04 +02:00
Jeremy Kersten e6184aeb37 [FIX] sale: set B2B as default mode at installation
Before this fix, you was in an 'unknow' mode before to have selected the mode
in the sale res config after the install of sale.

Side effect:
    Empty value in ecommerce
    Missing column subtotal in 'sale.order' and related report

Now, with fix, mode B2B is set by default (was the only mode in old version)
Using same behavior that the method execute of class resConfigSetting.

Usability: set the default option as the first choice in the res config.
2016-06-18 00:12:44 +02:00
Fabien Pinckaers ad858bf746 [FIX] hr_contract: broken icon
[IMP] hr_expense:
    invert placeholders: trip is a report, lunch is an expense
    total column in latest column
    no default value for expense description
2016-06-17 13:20:59 -07:00
Fabien Pinckaers f1ab3face1 [IMP] im_livechat: "website live chat" menu renamed to "Live Chat" 2016-06-17 10:39:15 -07:00
William Moreno 3e4adb1582 [IMP] fix typo
Closes #12466
2016-06-17 15:30:53 +02:00
Jeremy Kersten 3834a89482 [IMP] website_sale: B2B-B2C - display price with or without taxes.
Allow to display price on the website tax included or not.

Price for product is computed with a new function display_price
which one compute an estimated price based on taxex and fiscal
position of the current partner for the current product.

Once the product is in the cart, it is the behaviour of previous commit
odoo/odoo@5f5f8d8 which is used to diplay price with or without taxes.
2016-06-17 15:14:28 +02:00
Jeremy Kersten 5f5f8d8efe [IMP] sale: allow to show total of order line tax inc or based on unit price.
Allow to set in configuration mode b2b or b2c.
Change the column of order line in sale view and in reports depending of sale.

Fix price_reduce field (wrong if tax was included in price)
and merge with code discounted_price from website_sale.

Change header from reports "Price Tax Excluded' by 'Price' in report.
That is wrong, sometime the amount can haxe tax included in the price.
2016-06-17 15:06:04 +02:00
Géry Debongnie 5d78ace63c [MERGE] web: various small refactorings
Some cleanups, to prepare the future.
2016-06-17 13:54:36 +02:00
Géry Debongnie 77e20f57d2 [FIX] web: prevent some rpcs in tests
each time a js test is run, it used to start the chat manager, which
does a rpc.  This simply prevent the chat manager to start.
2016-06-17 13:32:38 +02:00
Géry Debongnie 00120a9271 [REF] web: refactor and simplify web.core 2016-06-17 13:32:37 +02:00
Géry Debongnie 2254abbde7 [REF] web: move Bus class to web.Bus 2016-06-17 13:32:37 +02:00
Géry Debongnie d56b35e26e [REF] web, *: move QWeb odoo init to web.QWeb
this js module centralizes all odoo initialization
2016-06-17 13:27:18 +02:00
Géry Debongnie 611322c36b [REF] web: add ajax.rpc and change some dependencies 2016-06-17 13:24:54 +02:00
Géry Debongnie 916b43afab [REF] web: remove dead code 2016-06-17 13:24:54 +02:00
Géry Debongnie cfe4b337af [REF] web: move async_when to utils 2016-06-17 13:24:54 +02:00
Géry Debongnie cfe13f79e6 [REF] web, web_calendar: move toBoolElse to web.utils 2016-06-17 13:24:54 +02:00
Géry Debongnie 57c0398749 [IMP] web: add main core bus
this will be used for all odoo web client event, not for dom events
2016-06-17 13:24:53 +02:00
qsm-odoo 65f588685a [FIX] web_tour: missing use of the force arg on scroll
* Fix scroll problem (the force argument was lost)
* Also add more meaningful names to the tip trigger methods
2016-06-17 13:20:44 +02:00
qsm-odoo cc67068360 [IMP] web_tour: tips on the border of the screen
* Adapt code to handle position/width/padding with pixel-precision
* Adapt overlay to not overflow the screen
* Do not let the content overflow the tip when closed
2016-06-17 13:20:44 +02:00
Joren Van Onder d713a3ecc6 [IMP] payment: only show fees configuration if fees are implemented 2016-06-17 13:09:18 +02:00
Joren Van Onder 64ee1761d4 [IMP] payment: hide payment.token menu entry in non-debug mode 2016-06-17 13:09:18 +02:00
Joren Van Onder 4e5815c1c3 [IMP] payment: create and use an electronic account.payment.method 2016-06-17 13:09:18 +02:00
Joren Van Onder e3730cf1f2 [IMP] payment*,website: rename payment.method -> payment.token
payment.method was not a good name because it was too easy to confuse
with account.payment.method.
2016-06-17 13:09:18 +02:00
Joren Van Onder 5c63ed388c [IMP] payment: add a generic payment acquirer 2016-06-17 13:09:18 +02:00
Joren Van Onder e883b8c734 [IMP] payment: show fees in payment.transaction tree view 2016-06-17 13:09:18 +02:00
Joren Van Onder b13e01f860 [IMP] payment: auto_confirm field should be displayed with radio widget 2016-06-17 13:09:18 +02:00
Joren Van Onder fc711a22a9 [IMP] payment: show configuration tab in payment.acquirer form view
Without debug mode.
2016-06-17 13:09:18 +02:00
Joren Van Onder 65b1220008 [IMP] website_payment: when invoicing always ignore invoice policy
Sale orders created through the website that have to be automatically
invoiced should ignore the delivery invoicing policy.

Otherwise you can end up with either an invoice not being generated at
all. This means the user has to manually generate and add the payment to
it. Even worse is if only some purchased products have invoice policy
delivery. In this case a partial invoice would be generated to which the
payment would be added, leading to a mismatch between invoice total and
payment amount.
2016-06-17 13:09:18 +02:00
Joren Van Onder 101a9693b3 [FIX] payment*: fix invalid coding
-*- coding: utf-'8' "-*-"

is not a valid encoding. Introduced by
666387a274 I think. It was probably a
typo/replace gone bad and it got copy-pasted everywhere. Emacs complains
every time you try to save changes to files with this invalid encoding.

This changes all of them to

coding: utf-8

adhering to eae045949d.

Done with:

find . -name '*.py' -print0 |\
xargs -0 sed -ie 's/-\*- coding: utf-'"'"'8'"'"' "-\*-"/coding: utf-8/'
2016-06-17 13:09:18 +02:00
Joren Van Onder 48336f0948 [IMP] payment: make 'Test' on environment button same color as in Kanban 2016-06-17 13:09:18 +02:00
Joren Van Onder a40840690c [IMP] payment: allow account.payment creation with payment.method 2016-06-17 13:09:18 +02:00
Joren Van Onder 8a761721d1 [IMP] payment: add options to automatically confirm SO's through website
Introduces two new options:
- confirm_so: to confirm the sale order on acquirer confirmation
- generate_and_pay_invoice: confirm_so + generation of invoice and
                            payment registration
2016-06-17 13:09:18 +02:00
Joren Van Onder 303e585371 [IMP] website_*: consolidate some duplicate payment logic
website_sale and website_quote both did their own
form_feedback. This causes issues because:

1. it would force upcoming features to have to be duplicated as well
2. there's a risk that improvements/bug fixes will only be applied to
one module, an example of this happening is
46c5f93b6c.
2016-06-17 13:09:18 +02:00
Yannick Tivisse 717f9217bb [IMP] hr_expense: bring back the sheets + other new features
NB:
- The option no_delete is not working, a fix will come from chm
- The many2many widget on a sheet creation is not working correctly as
  the called command is a (1, id, values) without a (4, id, _) before.
  A fix will also come from chm, but a disgusting hack has been
  provided for this particular case (to remove after chm fix)
2016-06-17 12:14:57 +02:00
Yannick Tivisse 5aa9bde34a [FIX] mass_mailing: Append unsubscribe url to mail body 2016-06-17 11:23:13 +02:00
Keyur Gajjar 7652b6388a [REM] mass_mailing: removed unused method mass_mailing_statistics_action() from models/mass_mailing.py 2016-06-17 11:23:12 +02:00
Keyur Gajjar bbca135410 [MIG] mass_mailing: code migration to new api
NB: A controller in website_mass_mailing has been migrated too. It's not a real issue
as this module will also be migrated in the days to come
2016-06-17 11:23:12 +02:00
Keyur Gajjar 1467689edf [MOV] mass_mailing: splitted the following files + new api
1. Splitted data/mass_mailing_data.xml to security/mass_mailing_security.xml for res_groups data.
2. Splitted views/mass_mailing_views to
    - views/link_tracker_views.xml
    - views/mass_mailing_stats_views.xml
    - views/mass_mailing_template.xml
2016-06-17 11:23:12 +02:00
Keyur Gajjar 1c1b049898 [MOV] mass_mailing: directory restructuring according to new api 2016-06-17 11:23:12 +02:00
Damien Bouvy 654237b43c [FIX] website_quote: test uses field that doesn't exist
Or at least doesn't exist anymore.
2016-06-17 08:33:07 +02:00
Raphael Collet 1a6e934a55 [MIG] yaml_import: convert to the new API 2016-06-16 16:54:30 +02:00
Raphael Collet c69831379f [MIG] convert: convert to the new API 2016-06-16 16:54:30 +02:00
Raphael Collet 6056a7d1d2 [MERGE] convert BaseModel and expression to the new API 2016-06-16 16:53:22 +02:00
Raphael Collet 7901349779 [FIX] expression: in subsearch, use all remaining fields
For instance, searching on `partner_id.company_id.name` was doing a sub-search
on `company_id` instead of `company_id.name`.
2016-06-16 16:50:49 +02:00
Raphael Collet 8aec98cde8 [MIG] expression: convert to the new API
With code simplification, and turning recursive functions into iterations.
2016-06-16 16:50:48 +02:00
Raphael Collet 4edcba696e [IMP] api: make Environment implement the Mapping API 2016-06-16 16:50:48 +02:00