Commit Graph
109663 Commits
Author SHA1 Message Date
Thibault Delavallée f0abe5b0ed [IMP] payment_transfer: hide unnecessary fields for transfer provider
Indeed as transfer transactions are always pending and independant of
any callback, it is not necessary to see credentials, auto confirmation
settings and error / cancel / done messages.
2017-05-16 15:35:11 +02:00
Thibault Delavallée a995e28554 [FIX] payment: set enviroment back in its own environment 2017-05-16 15:35:11 +02:00
Thibault Delavallée 24d996c534 [IMP] website_sale: simplify code and improve display of tx status after checkout
Currently displaying tx status after checkout is done using two templates
and two separate pieces of code, aka "order_state_message" and
"payment_confirmation_status". This leads to checkout information
being displayed twice in the page. It is displayed once before the
order details and once after payment information.

This commit simplifies the code to display only once the transaction
status after payment information. This one is the "polled" one aka
refreshed automatically several times to try to catch responses from
payment providers.

From the confirmation message it is also now possible to directly jump
in the backend for website administrators in order to edit the displayed
messages.
2017-05-16 15:35:11 +02:00
Thibault Delavallée 6c2535b9b6 [IMP] website_sale(_delivery): allow to choose a payment / delivery methods in frontend
When choosing a payment and/or delivery provider in website_sale admin
now see a link to install and configure them.
2017-05-16 15:35:11 +02:00
Thibault Delavallée f9a8c53e48 [REF] website_sale(_delivery): correctly set data processing methods for payment in controllers instead of model
Currently /shop/payment controller perform some data processing. It calls
model methods _get_errors and _get_website_data that are defined on sale
order model only to be inherited in website_sale_delivery.

This commit proposes instead to have a data processing method in sale
controllers that is inherited in website_sale_delivery. There is no need
to have model methods only to format data.
2017-05-16 15:23:14 +02:00
Yannick Tivisse 0a523a16cd [IMP] delivery: Define _get_shipping_price_from_so for a single order
These functions are always called with a single order. We don't need to make a big pâté in multi
2017-05-16 14:37:23 +02:00
jpr-odoo bc705c0fce [IMP] (website_sale_)delivery: Clean carrier form view, enlarge carrier box on payment 2017-05-16 14:37:23 +02:00
Thibault Delavallée 877d4b60e7 [IMP] website_quote: define default order quote template coming in settings
Using a real ir.values default that user can customize in settings
is better for user experience than an hardcoded template using an
xml_id. Betcha.
2017-05-16 10:48:58 +02:00
Kishan Gajjar 4e715dae94 [IMP] point_of_sale(_restaurant): Add some small UX improvements
[IMP] point_of_sale: Improve `New Session` button label if already opened

When another user has a POS session open. Do not show the New Sesson button on the dashboard. Hide it and replace it by the string 'A session is already opened'

[IMP] pos_restaurant: Move some technical fields in debug mode

[IMP] point_of_sale: Remove tooltip for barcode

[IMP] point_of_sale: All to restict product price control to managers

Either:
- Everybody
- Only managers
should be able to modify the product price on orders for a given point of sale

[IMP] pos_restaurant: Exit table edit mode via 'ESC' button of keyboard
2017-05-15 17:43:15 +02:00
xmo-odoo 59bcb5d611 [FIX] P3: iteritems 2017-05-15 17:32:12 +02:00
xmo-odoo 7cffacb434 [FIX] missing import
Call would crash when you crash.
2017-05-15 16:09:45 +02:00
Hiral Bhavsar 5a6f03a1ce [IMP] sale, website_quote: improve wording in sent emails
Correctly display 'Pay online' or 'View online' depending on payment
required option. Also correctly set the URL that comes from the
get_access_action method.
2017-05-15 14:17:19 +02:00
Hiral Bhavsar 29d927cfa3 [CLN] website_quote: rename data files according to guidelines 2017-05-15 14:17:19 +02:00
Hiral Bhavsar 95756b6258 [IMP] website_quote: improve demo data
So much data. Amazing demo. Wow effect.
2017-05-15 14:17:19 +02:00
rap-odoo fe631a36a5 [IMP] point_of_sale: allow product grouping for all uom
Purpose
=======

In POS, it is hard-codded in such a way that grouping will be done for the
uom category that has database id == 1.

Specification
=============

We have solved this issue: we have added a new boolean field in the uom category form view that

If a user chooses this option then products having that uom category will be grouped in the POS.

Both uom category Unit and Weight have been set to groupable by default.

- Removed the hardcoded part of groupable for uom which had database id == 1,
  Now grouping will be done on 'groupable' field of "product.uom", which is
  related to the field of the same name on "product.uom.category".
- Only the `Unit` uom category is grouped by default
2017-05-15 14:09:11 +02:00
Xavier Morel ee663cf1d1 [FIX] P3: stdlib compatibility fixes 2017-05-15 13:33:20 +02:00
Xavier Morel 4550f45f47 [FIX] P3: document stdlib changes
Also lint away verboten stdlib modules.
2017-05-15 12:26:32 +02:00
Xavier Morel 822bea14d0 [FIX] P3: htmlentitydefs renamed to html.entities 2017-05-15 12:26:32 +02:00
Xavier Morel 7c6c43d910 [FIX] P3: Queue module renamed to queue 2017-05-15 12:26:32 +02:00
Xavier Morel e2f1af78c4 [FIX] P3: remove cgi.escape uses
cgi.escape is unsafe (quote=False by default) and deprecated in Python
3. We already have an openerp.tools.misc.html_escape version which
forwards to the (modern and safe) werkzeug.utils.escape, just use that
everywhere, and convert extant uses of werkzeug.utils.escape to
utils.html_escape as well so that we do the same thing everywhere.
2017-05-15 12:26:31 +02:00
Xavier Morel 5617d4614b [FIX] P3: itertools.iziplongest renamed 2017-05-15 12:26:31 +02:00
Xavier Morel 67c17cb37f [REM] P3: outdated html2text vendoring
The vendored html2text is *really* old and absolutely not
P3-compatible.

There is a maintained version on Pypy which is, so use that and stop
vendoring html2text.
2017-05-15 12:26:30 +02:00
Xavier Morel b5983a485d [FIX] P3: remove cPickle use
In Python 3 the native acceleration module was merged into pickle
directly.

For cross-version simplicity, just use the base module in Python 2 as
well, we can reintroduce the accelerator somehow if it turns out too
much of a performance hit.
2017-05-15 12:26:30 +02:00
Xavier Morel 01e3514147 [FIX] P3: urllib, urllib2 and urlparse
In Python 3, all of these were "consolidated" under urllib(.request,
.parse, .errors) which is inconvenient.

Since we already have hard dependencies on requests and
werkzeug(.urls, which is a backport of Python 3's unicode-aware
urllib.parse) migrate *everything* to that.

A sticking point is urllib2.URLError, those were (mostly) replaced by
the slightly more general IOError which URLError extends.
2017-05-15 12:26:30 +02:00
Xavier Morel 54df4b36d7 [FIX] P3: types.NoneType removed 2017-05-15 12:26:29 +02:00
Xavier Morel 3833c8997d [FIX] P3: removed commands module 2017-05-15 12:26:16 +02:00
Xavier Morel b9c3365d21 [FIX] P3: cross-version smtplib/email changes
* SMTPLib[P3] uses a debug method on ``SMTP`` rather than a global
  ``stderr``
* email.Encoders is a deprecated & outdated (since 2006) alias for
  email.encoders
2017-05-15 12:24:04 +02:00
xmo-odoo b5e7b7eee3 [FIX] P3: mixed whitespace indentation
Completely forbidden in Python 3
2017-05-15 12:17:46 +02:00
xmo-odoo 54ae611131 [FIX] testfile: can import during iteration
Hence modifying sys.modules blowing up the iterator.
2017-05-15 10:08:38 +02:00
Xavier Morel 4ad1ae6896 [FIX] P3: exceptions compatibility changes
* exceptions have lost their ``message`` attribute
* ``raise type, value, tb`` has been removed so add a compatibility
  shim to pycompat to raise a new exception with an existing traceback
2017-05-12 16:18:02 +02:00
Xavier Morel 07ab8b6cd2 [FIX] P3: Exception.message removed 2017-05-12 16:15:40 +02:00
Xavier Morel 3dd3790597 [FIX] P3: raise exception with existing traceback
In Python 2, to raise a new exception but reuse a traceback requires a
special form of ``raise`` (``raise etype, evalue, tb``).

In Python 3, this is now done via a ``with_traceback`` method on
exception objects.

However this requires a bit of trickery as the former is invalid
syntax in Python 3, hence pycompat bridge created via an exec for
Python 2.
2017-05-12 16:15:39 +02:00
xmo-odoo 021de21e8c [FIX] P3: replace PyPDF by PyPDF2
PyPDF is unmaintained and abandoned (as noted on its home page
http://pybrary.net/pyPdf/) and was never updated to Python 3. PyPDF2 is
a fork which provides a mostly compatible API and is P3-compatible.

Replace PyPDF by PyPDF2.
2017-05-12 13:28:57 +02:00
fka-odoo 13ee5596c6 [IMP] base: Adapt address format for Japan.
Purpose
=======

ja_JP: the implemented language font in Odoo is not Japanese but Chinese.

In Japan address structure is different:
First: Postal code
Next: City +  ward (like a neighbourhoos name)
Next: Building (all buildings have names)
Name: Customer or Company

Specification
===========

New address structure for Japan:
%(zip)s
%(state_name)s %(city)s
%(street)s
%(street2)s
%(country_name)s

In Countries form view, add one selection field which set the customer name position in reports base on the customer country settings.
2017-05-12 11:30:46 +02:00
Xavier Morel a5a10e75ab [FIX] P3: file builtin removed
* replace with open()
* forbid file() builtin since reports-removal was merged
2017-05-12 09:27:17 +02:00
Xavier Morel b86e5fa477 [FIX] P3: exec keyword -> builtin function 2017-05-12 09:27:17 +02:00
xmo-odoo bc4391471e [FIX] P3: lint away some already cleaned up stuff
These issues were checked/cleaned previously but the linter was not updated.
2017-05-11 15:27:02 +02:00
xmo-odoo 6659d5a7d2 [FIX] P3: metaclasses handling
* cross-version metaclass spec
* more formally deprecate browse_record and browse_null since they
  were using metaclasses anyway
* update docstrings referencing the latter
2017-05-11 15:25:36 +02:00
Nikunj Ladava 048f122f3d [IMP] account,sale,...: Remove 'internal category' menuitems when not useful
Purpose
=======

Internal categories are only useful for accounting & inventory.
-> so they should be only visible for such modules

Also terms are confusing: internal category -> category  "internal" is not obvious

Specification
=============

- remove internal categories menus from:
    sales
    website_sale
    pos

- rename menu in:
    purchase
    inventory

- add menu to:
    accounting
    products must be visible even if account.accountant is not installed
    categories only visible if account.accountant is installed

- rename categories in product form:
    - category
    - pos category
2017-05-11 15:15:16 +02:00
Thibault Delavallée 6b490ef247 [FIX] base, report: fix choose report template broken by 'new report'
Report module has been cleaned and moved into base at https://github.com/odoo/odoo/commit/e80238042c9d93d492ea8b06b0041aced0d81dcd.
However there are leftover references to report module. This crashes
the template choice feature.
2017-05-11 12:35:23 +02:00
Yannick Tivisse 2a5cd52d83 [MERGE] various: Improve readability on mobile by adding default kanban views
See each commit message for more information about the impacted modules.
2017-05-11 11:40:14 +02:00
Kishan Gajjar 72553c6022 [IMP] base: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- base : kanban for currencies

- base : kanban for users

- base : kanban for Companies
2017-05-11 11:38:42 +02:00
Kishan Gajjar 8b40c29736 [IMP] various: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- report_intrastat: kanban for intrastat

- google_drive: kanban for Google Drive(Templates)

- anonymization: kanban for anonymized fields
2017-05-11 11:38:42 +02:00
Kishan Gajjar e9e7c63727 [IMP] project,survey,mass_mailing: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- mass_mailing: kanban for mailing lists

- mass_mailing : kanban for contacts

- marketing_campaign: kanban for campaigns

- marketing_campaign : kanban for segment

- survey: kanban for answers

- project : kanban for config >> project(reuse project dashbord kanban)

- project_issue_sheet: kanban for stages
2017-05-11 11:38:42 +02:00
Kishan Gajjar d2cddd66fb [IMP] hr_*,lunch: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- hr_holidays: kanban for leaves summary

- hr_holidays: kanban for allocation request(reuse  leaves summary)

- hr_holidays: kanban for leave details(reuse leaves summary)

- hr_attendance: kanban for attendances

- hr_timesheet: kanban for activities

- hr_contract: kanban for contracts

- hr_recruitment: kanban for Stages

- hr_recruitment: kanban for Job Positions(reuse Job Positions dashboard)

- lunch : kanban for previous order

- lunch : kanban for employee payment

- lunch : kanban for control accounts reuse kanban of employee payment

- lunch : kanban for control vendors reuse previous order

- lunch : kanban for product

- lunch : kanban for alerts

- lunch : kanban for today's orders(reuse previous order)

- website_event_track: kanban for track stages
2017-05-11 11:38:42 +02:00
Kishan Gajjar f1d87b37ed [IMP] account: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- account : kanban for purchases payments

- account : kanban for journal entries

- account : kanban for chart of accounts

- account : kanban for budgets

- account_analytic_default : kanban for analytic defaults

- account_asset : kanban for assets

- account_asset : kanban for asset types

- account_budget : kanban for Budgetary Positions

- account : kanban for fiscal positions

- account : kanban for taxes

- account : kanban for payment terms

- account : kanban for bank accounts

- account : kanban for journals(reuse Accounting Dashboard)

- analytic : kanban for analytic accounts

- analytic : kanban for analytic entries
2017-05-11 11:38:42 +02:00
Kishan Gajjar b2ebf59a11 [IMP] stock,mrp,barcode: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- stock: kanban for incoming products

- stock_picking_wave: kanban for picking waves

- stock: kanban for reordering rules

- stock: kanban for inventory adjustments

- stock: kanban for stock moves

- purchase_requisition: kanban for purchase agreement

- purchase_requisition: kanban for purchase agreement types

- procurement: kanban for procurement exceptions

- mrp: kanban for unbuild orders

- mrp: kanban for waiting availability mo

- mrp: kanban for routing

- mrp: kanban for bill of materials

- mrp_repair: kanban for repair orders

- mrp : kanban for work order messages

- mrp : kanban for productivity losses

- mrp : kanban for Orders to Plan(reuse Manufacturing Orders

- mrp : kanban for work centers(reuse Work Centers Dashboard)

- maintenance: kanban for equipment categories

- barcode : kanban for barcode nomenclatures
2017-05-11 11:38:42 +02:00
Kishan Gajjar fe4c3ab4eb [IMP] point_of_sale: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- point_of_sale: kanban for pos orders

- point_of_sale: kanban for pos session

- point_of_sale: kanban for pos category

- point_of_sale : account journal dashboard kanban in account can be used in payment methods

- pos_restaurant: kanban for floor plans

- pos_restaurant : kanban for order printer(use default kanban)

- pos_mercury: kanban for mercury configurations(use default kanban)

- point_of_sale : kanban for configration >> point of sale (Reuse Point of Sale (dashboard))
2017-05-11 11:38:42 +02:00
Kishan Gajjar 77451ba7a6 [IMP] crm, product, membership: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- crm: crm leads kanban

- membership: kanban for membership config

- product : kanban for pricelists
2017-05-11 11:38:42 +02:00
Thibault Delavallée e6ba4e5f35 [FIX] base, report: fixes various bugs introduced when 'refactoring' reports
Commit https://github.com/odoo/odoo/commit/e80238042c9d93d492ea8b06b0041aced0d81dcd refactored and removed report
module. However it broke among other the feature allowing to customize
reports. This commit fixes first bugs preventing the 'choose template'
box to appear. Feature is still broken though.
2017-05-11 11:13:55 +02:00