Commit Graph
109648 Commits
Author SHA1 Message Date
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
Thibault Delavallée a60b3b6c8c [MERGE] various: be fussy on report names
Report naming has been recently updated at commit efdb5373c3 . However
some people, same kind of people who cannot walk on two stone steps at
a time or have to put their pens parallel on their desktop, thought
another step could be done in order to have the same convention of naming
for every report. Convention for report naming is now "<report name> -
<object name>".

This commit also improves the RNG validation of report tag in order to
be able to directly put print_report_name into the report declaration
instead of having to define it in a separate ir.actions.report.xml node.

This merges remote-tracking branch 'dev/master-report-name-youpie'.
2017-05-11 10:00:44 +02:00
Jérome Maes 527d639148 [MERGE] hr_timesheet_sheet: remove the module
This module is buggy and unusable. The goal is to
simplify timesheet flow.
New validation flow is bring with timesheet_grid
(enterprise edition ....)

These commits provides adaptations and removal
of hr_timesheet_sheet.
2017-05-11 08:36:59 +02:00
Jérome Maes af00486791 [REM] hr_timesheet_sheet: kill the module
Remove the module, since we deprecate complex
sheet management.
2017-05-11 08:36:11 +02:00
Jérome Maes cfe1b2e371 [IMP] project: change planner link to hr_timesheet_sheet 2017-05-11 08:36:11 +02:00
Jérome Maes 2e251f7599 [IMP] hr_timesheet_attendance: remove timesheet_sheet dependency 2017-05-11 08:36:10 +02:00
Thibault Delavallée 00d5a2f039 [IMP] inventory related addons: improve report naming and use print_report_name
Purpose of this commit is to clean and uniformize report naming through
various addons. It has been chosen to name them using a formatting like
<report_name> - <object_name or suffix> .

Improve report naming in product, stock, mrp and mrp repair.
2017-05-10 17:16:09 +02:00
Thibault Delavallée b380347b0b [IMP] hr related addons: improve report naming and use print_report_name
Purpose of this commit is to clean and uniformize report naming through
various addons. It has been chosen to name them using a formatting like
<report_name> - <object_name or suffix> .

Improve report naming in hr_attendance, hr_expense and hr_payroll.
2017-05-10 17:16:09 +02:00
Thibault Delavallée 0e9d397978 [IMP] event: improve report naming and use print_report_name
Purpose of this commit is to clean and uniformize report naming through
various addons. It has been chosen to name them using a formatting like
<report_name> - <object_name or suffix> .
2017-05-10 17:16:07 +02:00
Thibault Delavallée ad2ccbbb59 [IMP] account related addons: improve report naming and use print_report_name
Purpose of this commit is to clean and uniformize report naming through
various addons. It has been chosen to name them using a formatting like
<report_name> - <object_name or suffix> .

Improve report naming in sale, point of sale, l10n_ch, purchase,
purchase requisition, report intrastat, website_quote
2017-05-10 17:15:02 +02:00
Thibault Delavallée 3a52e5e5c9 [IMP] import, report: allow print_report_name when defining a report
Otherwise you have to have another xml block just to define the print
report name instead of doing everything in the report tag.
2017-05-10 17:10:04 +02:00
Thibault Delavallée dbe6aa4292 [FIX] account: finally allows to reinit the module
Otherwise a constraint is raised because new line are added to the
payment term instead of recreating them from scratch. This constraint
blocks people from reinitializing the module, which is quite boring
when developing.
2017-05-10 17:09:29 +02:00
Haresh Shyara 29d108601f [IMP] project_issue: change description field type into html
Because task has an html file and issue was jealous. And also to have
clickable links.
2017-05-10 16:53:04 +02:00
Rohan Patel d797829fc9 [IMP] project_issue: move recently modified reporting views into views file 2017-05-10 15:07:08 +02:00
Rohan Patel 84e6f7b5c8 [IMP] project: update xml_ids of views not on report model anymore 2017-05-10 15:07:08 +02:00
Dhaval Suthar dcccb667bb [REF] project_issue: replace report by pivot / graph views
hr.recruitment.report is not necessary anymore as it can be replaced by
classic pivot and graph views on hr.applicant model.

Applicant has been slighty modified to ease reporting

 * adding group_operator average on both days to computation;
 * adding group_operator average on working hours computation;
2017-05-10 15:07:08 +02:00