Commit Graph
113085 Commits
Author SHA1 Message Date
Christophe Monniez 06c2346da5 [REF] win32: move to WinPython...
Purpose: for multiple reasons (bytecode change in python 3.6,
         missing files for some packages, py2exe is unmaintained
         ...) the py2exe solution cannot be used anymore.
         Odoo for windows will now use a portable Python that
         will be shipped with the Windows installer.
         For that purpose, a Winpython 3.6.2 is used.
         In order to build the Windows installer, a Winpython dir
         with all the Odoo requirements fullfilled, must exists on
         the build system (qemu-kvm VM).

* nsis installer:
    - Only the python dir is used to avoid packaging too much stuffs
    - better compression level
    - starts the Odoo service using nssm
    -  bump to V11
* change the default win10 build vm path
* print a warning when uncomplete addon move
* try to force remove of addon path:
  when the addons are moved to Odoo/addons, it happens that the
  destination already exists. In that case, the source addon was not
  deleted, resulting in a uneeded file duplication.
* fix version string to avoid invalid chars in windows service
* Add requirements adpated for WinPython
* package.py now shows the traceback when a build fails
* verify that a file exists before publishing
* debuild now creates an .xz file instead of .gz
* package: use logging module
* kvm CPU that works with older versions.
* fix a pexpect encoding bug
* fix the version to remove special chars '~' which is not appreciated
  by windows services

[REM] win32setup: Remove win32 python service

Purpose:
    Before this commit, the win32 service was managed by an executable
    builded from those two files with the help of py2xe.
    The win32 service is now managed by nssm which starts Odoo and therefore, those
    files are not needed anymore.
2017-10-03 12:01:53 +02:00
Christophe Monniez 938ae83585 [FIX] setup: fix the python regex to prepare dev environement 2017-10-03 12:01:53 +02:00
Christophe Monniez dc507be8cf [IMP] setup: require a python version >= 3.5 2017-10-03 12:01:53 +02:00
Christophe Monniez ee753bfc22 [IMP] debian,rpm: improve kill in service unit (thanks sbidoul) 2017-10-03 12:01:53 +02:00
Christophe Monniez 6a66adf395 [IMP] setup: ignore external files needed for win32 build 2017-10-03 12:01:53 +02:00
Christophe Monniez 6953f22e67 [IMP] setup: Update docker files 2017-10-03 12:01:53 +02:00
Christophe Monniez dd7b6fb6b7 [IMP] package: build source tarball using python3 2017-10-03 12:01:53 +02:00
Christophe Monniez e0dc251805 [IMP] Support for building Fedora26 rpm 2017-10-03 12:01:52 +02:00
Christophe Monniez 77df0e5b27 [FIX] misc: Force utf-8 decoding when opening a file 2017-10-03 12:01:52 +02:00
Christophe Monniez 0bab2e7fbd [FIX] modules: Verify that an addons path exists 2017-10-03 12:01:52 +02:00
Christophe Monniez 1e76ffc7bd [IMP] package: various improvements
* Add an option to avoid signing deb package
* update windows vm name
* add memory to kvm as win10 needs 1G
* increase win VM timeout because win10 seems slower to start
* add an option to keep build dir for debugging purpose
2017-10-03 12:01:52 +02:00
Christophe Monniez 25cae52b4f [IMP] debian: build package for python 3.5
* Add a minimum systemd service file
2017-10-03 12:01:52 +02:00
Christophe Monniez 44a38284a5 [FIX] debian/copyright: Added most of the js/css
Debian copyright file was only mentioning odoo files.
Now all js and css files with specific copyright / licenses are added.
2017-10-03 12:01:52 +02:00
Richard Mathot da3c561d35 [IMP] website_sale_delivery: interactive carrier selection
Very smooth, super smart, easy win.
2017-10-03 11:17:57 +02:00
stefanorigano c12c34587d [FIX] web, project, stock: emphasize dashboard records' colors 2017-10-03 11:03:11 +02:00
qsm-odoo 4e090b2a5e [FIX] web_editor: properly reset to custom background option
This commit solves a bug when using custom background option: if a
custom background was selected, then hovering a non-custom background
and leaving the dropdown was selecting the non-custom background for
good instead of resetting back to the custom one. This is because the
custom background option is a non-preview one (you have to click) so
there should not be any need of resetting... except that the non-custom
background option is a preview one and messes with the same DOM
attributes as the custom background option.
2017-10-03 10:52:30 +02:00
Richard Mathot 95d03559a2 [FIX][P3] *: mock is now a part of unittest 2017-10-03 10:32:01 +02:00
Nicolas Lempereur c2f5039f84 [FIX] mail: error if called in onchange of virtual
This field can be called on an hr.expense for onchange on an
hr.expense.sheet record, thus the recordset could be a virtual ID so
self.ids could be empty leading to an error.
2017-10-03 10:26:26 +02:00
qdp-odoo 5c476568ca [IMP] account: add analytic tags in account.move form view 2017-10-03 09:39:34 +02:00
qdp-odoo f734b92a70 [FIX] account: manually editable tax amounts in supplier bills.
People should be able to change manually the tax amounts on vendor bills, since they have to encode exactly what they receive and because the supplier may round differently than Odoo. On the other hand, in vendor bills, it's useless to try to compute a cash rounding impacting the taxes... as they should be now able to manually adapt it. So in vendor bills, the 'amount' field has to be the visible and editable one
2017-10-03 09:34:07 +02:00
Lucas Perais (lpe) c22b407f4b [FIX] mass_mailing: open links in parent while in backend
Before this commit, links that had no target location opened in _self, which is the iframe within which they are embedded.
After this commit, thos links are now opened in _parent to simulate closer the beahavior with an actual e-mail
2017-10-03 09:12:54 +02:00
Lucas Perais (lpe) f2c2e999ef [FIX] base: settings: fix display discard button 2017-10-03 09:12:18 +02:00
Yenthe V.G d4a77e3a02 [FIX] test_main_flows: typo
Closes #19849
2017-10-03 08:58:52 +02:00
Jeremy Kersten 58d4eb1137 [FIX] mail: fix get_sys_logs to have the same behaviour than previous version
After convertion python2 to python3, the arg0 was send as dict instead
of one string. We prefer to keep the same behaviour that previously.
2017-10-03 08:44:34 +02:00
Jeremy Kersten 436ad6efa4 [IMP] http_routing, website: split website code into website
This reverts partially commit ab2283ef83.

This commit clean and clarify some code.
It also secure the call to specific page extension's template to avoid somehow
calling unexisting tempalte
2017-10-03 08:44:34 +02:00
Simon Lejeune cde5b232e8 [REF] stock: alert on show details if not saved
It's not possible to click on the show details button if the picking is
not saved. It's a limitation of the webclient. This commit introduces a
waring telling the user to save the form view first.
2017-10-02 20:01:58 +02:00
Nhomar Hernandez b5de65ed6b [FIX] sales: Set proper group on all menus to avoid basic users like a
warehouse basic user see all the sales app.

I did not hide the main menu only because when we customize, we can use
such menu for other purposes we just set the proper group on all first
level menus and then by default the app is hidden if a custom module add
a menu there without explicit groups then this will be shown again (which I
think is the expected behaviour).

Closes #19816
2017-10-02 18:20:30 +02:00
Khoi Nguyen 59b55e2221 [FIX] web: fix TAB key in editable list views
Before this commit, two variables were used to store the current
position in a list view: currentCol and currentRow. This made it
difficult to handle incremental moves (eg: tab, shift+tab) inside a
row, since we have to ignore all buttons. Previously, this was done by
converting 'currentCol' to 'currentFieldIndex', but the conversion
between the two variables was incorrect and does not appear to be
that easy to fix. As an example, it was not possible to TAB-navigate to
the last column of the components list when creating a BoM.

This commit removes all mentions of 'currentCol' and uses
'currentFieldIndex' instead, removing the need for conversions. The TAB
navigation code is simpler as a result, and should now be correct.
2017-10-02 17:34:07 +02:00
Pierre Masereel d236da5b4e [FIX] point_of_sale: scale weight and price with pricelists
Since pricelist have been added in POS, the price was not correctly set
in the scale screen.

We also reduced the ferquency we call the posbox to get the scale weight,
because we requested it every 150ms, and the posbox requests only every
500 ms to the scale
2017-10-02 17:17:11 +02:00
Simon Lejeune afaf7cc7cc [FIX] stock: lock/unlock in classi view
Wrong condition implemented in rev[1] and it was not possible to add a
stock move in a ready picking anymore in the classic view.

[1] f359ca0585
2017-10-02 15:50:37 +02:00
qsm-odoo ff702bc6e8 [FIX] doc: update following af297345c6 2017-10-02 15:45:26 +02:00
qsm-odoo 14c7af50fe [FIX] website: prevent dropping snippets in <p/>
Main snippets can be dropped in `.oe_structure` elements and
`[data-oe-type=html]` elements. The second case happens when adding
a field in a page thanks to `t-field`. If used on a <p/> element,
the content cannot contain snippets (as browsers will not allow <div/>
and <section/> in a <p/>).

Note: we should not use <p/> with HTML fields at all but this might
happen with old databases... or by mistake. The problem is that the
problem is not visible during development without this fix.
2017-10-02 15:43:44 +02:00
stefanorigano 299d2ea153 [FIX] mail: thread note bg-color
This commit fix 596e88f , using a better bg-color in order to improve
text readability. It apply also apply a minor padding-left to avoid
having text attached to the coloured div border.
Moreover, the bg-colour can not be applied to activities thread.

The little history behind: remove the bg-color was decided by fp and
the UX dep. I’m not aware if 596e88f is approved or not, but the final
result was not acceptable.
2017-10-02 15:42:24 +02:00
stefanorigano a5f8ed8975 [REF] mail: adapt systray mobile chatter to v11 design 2017-10-02 15:42:24 +02:00
stefanorigano 06b6df95f5 [FIX] mail: 'chatter's entry', restore UX prior to 7a91d87
This commit will restore the chatter entries UX defined for v11
and accidentally removed on 7a91d87.

In v11 unread systray chat entries have white bg and bold text. Entries
that have been read, instead, should be less emphasised with
light grey bg and normal font weight
2017-10-02 15:42:24 +02:00
stefanorigano 6e5157187d [FIX] mail: 'chatter app icons', restore design prior to 7a91d87
This commit will restore the chatter App icon design defined for v11
and accidentally removed on 7a91d87.

Apps icons should NOT have a circular shape in order to keep branding
consistency.
2017-10-02 15:42:24 +02:00
amoyaux f359ca0585 [FIX] stock: lock/unlock show details view
It is not possible to work directly on the operation tab
when the detailed operation tab is available. On detailed
operations page it is now impossible to add a new move line
when the picking is done and locked.

This commit add some condition in the view and add a check
in the move line creation. If the move line has a picking but
no move then we create it (mark as done directly)
2017-10-02 15:34:24 +02:00
Simon Lejeune d11a8049a7 [FIX] stock: scrap: consider reserved quantity 2017-10-02 15:28:34 +02:00
Olivier Colson 0556b7fe31 [FIX] account, base_setup, crm, event, google_calendar, hr, hr_attendance, hr_expense, hr_payroll, hr_recruitment, l10n_be_hr_payroll_fleet, mass_mailing, mrp, project, purchase, sale, stock, website: rename the actions leading to settings to "settings", for breadcrumbs
Before that, the breadcrumb used the name of the action called to access the settings view, which sometimes did no correspond with the settings tab that was actually used.
2017-10-02 15:15:14 +02:00
Odoo Translation Bot 0333007a08 [I18N] Update translation terms from Transifex 2017-10-02 15:06:48 +02:00
Martin Trigaux 71c8fd8d89 [I18N] base: add missing terms
base.pot includes the description of all modules, including enterprise modules
2017-10-02 13:58:30 +02:00
Martin Trigaux 998a1aee3b [IMP] hr: remove useless group description
The group is in base, this is where the group should be described.
Manage your "own stuff" is probably not very informative anyway.
2017-10-02 13:58:01 +02:00
Richard Mathot ff3b21bd3f [FIX] ir_actions: help messages cleaning 2017-10-02 13:45:54 +02:00
Pierre Masereel fcc0404f84 [FIX] stock: stock move edition
This commit fine tune the appearance of the show detials icon as well as
the editability of the quantity done directly through the move line.

- if no product is selected, don't allow to fill quantity done
- if the selected product requires the show details icon, don't allow to
  fill quantity done and directly display it
2017-10-02 13:42:43 +02:00
Martin Trigaux 0e3455222d [I18N] Update translation source terms 2017-10-02 13:34:51 +02:00
Martin Trigaux 446971925e [FIX] pad: pad content encoding
Avoid error during pad creation

TypeError: cannot use a string pattern on a bytes-like object
2017-10-02 13:34:51 +02:00
Martin Trigaux e1b0e33830 [FIX] hr_recuitment: grammar 2017-10-02 13:34:51 +02:00
Christophe Simonis 5ce21c7355 [MERGE] forward port branch saas-16 up to b3d0897f2d 2017-10-02 13:05:17 +02:00
Simon Lejeune abfac77a06 [REF] stock, stock_account: scheduler
The scheduler cron will now only call `run_scheduler`. We refactore this
method to extract `_run_scheduler_tasks` and place a call to
`_merge_quant` a the end.

We override `_run_scheduler_tasks` in stock_account to run the fifo
vacuum when the scheduler cron is executed.
2017-10-02 12:55:22 +02:00
Christophe Simonis b3d0897f2d [MERGE] forward port branch saas-15 up to 729cf0e17d 2017-10-02 12:06:22 +02:00