Commit Graph
105314 Commits
Author SHA1 Message Date
Pierre Masereel 08ebf2cf61 [FIX] service: initialize_db: correctly set country
When we are creating a database with a country code from the database manager,
the country is not set in the company, so when we install the accounting app, there
is no chart of account installed by default. We have this bug because
we are trying to put a country id in a field that should receive a
'res.country' record.

To fix this bug, we change the call of function read_search by a search
that will return a recordset.

Bug introduced in rev https://github.com/odoo/odoo/commit/1b59643d4b96195edcdbe1b1168a11a3b6d85483
2016-09-09 15:39:40 +02:00
Martin Trigaux a5125cd1c4 [FIX] account: add action on currencies menu
The action was never there but added by overwrite in sale_teams which (wrongly)
shared the same ID. After 11812b0 which splits the menus, this menus had no
longer an action added by sale_team module.
2016-09-09 15:29:58 +02:00
Martin Trigaux f0a59c5f93 [IMP] account: reorder menus with their hierachical order
To understand which menu is below which
2016-09-09 15:29:58 +02:00
Pierre Masereel 9deb7eb981 [FIX] product: error during migration
When we create a 'product.product', the 'lst_price' entered is
not saved. This is due to the 'inverse' function of the field
named '_set_product_price' which is shared with 'price' and
'lst_price' and uses 'price' to set the value, even if its called
by 'lst_price' field.

Before the migration in new API, it was possible to have the same
inverse fucntion for different fields because the value was passed as param
to the function. In the new API, we cannot because we have to get the
value from the field.

To fix this error, we had to duplicate function '_set_product_price'
in 'set_product_lst_price' to have on function by field, and use the
value correspondig to the field.

Introducied in rev: https://github.com/odoo/odoo/commit/1aa5bc0fdfa402ac7cccbc3a7203ec5050f6339b
2016-09-09 14:27:56 +02:00
qsm-odoo 059ad64cea [FIX] web_tour: clear inconsistent localstorage keys
When users switch from one version to another, the localstorage is not
cleared and users can get errors because the tour manager is trying to
load steps (according to the localstorage content) which could not
exist anymore.

This could also happen when a module which extends another module tour
is installed.
2016-09-09 12:01:24 +02:00
Olivier Dony 975cb36cef [IMP] qweb: remove unused imports in generated ast
Those were apparently used by an earlier implementation
of the foreach directive, but now unused after revision
 https://github.com/odoo/odoo/commit/b3302398bc79f107588ff755666bf74a2ef4e11a
2016-09-08 19:00:30 +02:00
Christophe Simonis 7dc7c306c1 [FIX] odoo.py: handle call without arguments 2016-09-08 11:54:15 +02:00
Martin Geubelle 3f0fc7219c [REF] sales_team, web: remove sales_team_dashboard view
The view `sale_team_dashboard` (which extends kanban) has been removed
and replaced by a default kanban view.

To use it in the ViewManager, an option `js_class` is added
on the arch description and this class be used as the View.

This avoids creating a new view type just for one view.
2016-09-08 09:15:30 +02:00
Simon Lejeune 76c7041c5b [REF] server: remove the openerp-gevent file
* use a special arg in odoo.py
* note that the previous implementation was relying on the fact that
  the openerp-gevent file was located in the same directory than the
  odoo.py file. This was no longer true since rev a0eb172cab
  This commit brings back this behavior.
2016-09-07 18:09:46 +02:00
qsm-odoo e0784ee0b7 [FIX] web_tour: lower step delay to 10ms (instead of 300ms)
300ms was used during development but now 10ms seems to be high enough
to prevent bugs.
2016-09-07 17:37:23 +02:00
Cedric Snauwaert 2e72e4f27f [FIX] res_currency: wrong import that broke reconciliation view
fix error introduce in commit 7596fa3ee3
The get_format_currencies_js_function return javascript code and the openerp.web should not have been replaced by odoo.web. The result is that reconciliation view was broken.
2016-09-07 16:30:38 +02:00
Martin Trigaux d22676dc07 [FIX] typo 2016-09-07 16:19:39 +02:00
Yannick Tivisse f7495294cb [FIX] website_quote: fix due to module migration
Coming from https://github.com/odoo/odoo/commit/232eea36ab98eb268f712b2083c637a7cb463e2c
2016-09-07 15:50:08 +02:00
Raphael Collet 5b99b36022 [FIX] ir_attachment: implement garbage collection of the filestore 2016-09-07 14:58:06 +02:00
Raphael Collet cdd03c3afe [FIX] in all python code, rename openerp to odoo 2016-09-07 14:45:08 +02:00
Thibault Delavallée 8802994964 [FIX] hr_holidays: take employee resource when computing days of leaves request 2016-09-07 13:30:53 +02:00
qsm-odoo 8476d99101 [FIX] website: make the well snippet grow when putting an image in it 2016-09-07 13:00:02 +02:00
stefanorigano e1022f38a3 [IMP] web_editor, website: add colorpicker palettes customizations
* Add the ability to define palettes custom selection.
* Add the ability to define a custom title for the colorpicker dropdown
* Define a custom layout for single (unique) palette layout

* Define overlay color options based on new colopicker for
Cover and Banner text containers

* Define default palettes
2016-09-07 13:00:01 +02:00
stefanorigano 5b8c93f073 [IMP] web_editor: change design of transparent colors palette
* Add a "transparent" button
* Add a special background for transparent background buttons

+ Some minor colorpicker design change
2016-09-07 12:58:50 +02:00
Martin Trigaux 79a19c1eb8 [I18N] sale_expense, remove website_google_map from translatable modules
As there is no translation for them
2016-09-07 12:00:10 +02:00
Martin Trigaux 360a2c5724 [FIX] web: untranslatable term
Do not translate variables content, does not make sense
Its value should be translated earlier
2016-09-07 11:19:21 +02:00
Martin Trigaux fb74fec3f5 [I18N] export 10.0 source terms 2016-09-07 11:08:42 +02:00
This Is Banana a5e03c1bf4 [FIX] product: avoid having data depending on demo 2016-09-06 16:33:12 +02:00
Simon Lejeune a84070f3ba [REL] 9.saas~13 2016-09-06 14:56:08 +02:00
Yannick Tivisse 7fa2691175 [IMP] hr_*: Split the HR access rights by application
PURPOSE
=======

For each and every Hr application there should be one user category (One app = one category).

SPECIFICATION
=============

HR remains as it is : Employee, Officer, Manager

Each Application should have 2 access rights: User and Manager. Example for Recruitment:
- The user has access to the recruitment process
- The manager has access to the job position configuration

Each Application should grant the employee user access right (Namely the 'HR Officer')
2016-09-06 14:35:09 +02:00
Jeremy Kersten 93cc51a10b [FIX] product: fix default values for pricelist
Bad migration to new api... All values was resetted ith 'forumla'.
Why not formula as default value directly in product.pricelist.item ???
2016-09-06 13:59:35 +02:00
Jeremy Kersten f2db00d7ac [IMP] website_sale: improve data to be multi currency, multi pricelist and fix tests according to new data 2016-09-06 13:59:35 +02:00
Jeremy Kersten 3db0fd7cf3 [IMP] product: make property_product_pricelit dynamic for res partner
Now the porperty product pricelist is computed automatically.

Based on the res_country of the res_partner, and the pricelist available
for this country.

It is always possible to force another value (property) that the computed.
2016-09-06 13:59:35 +02:00
Jeremy Kersten fb860c11b5 [IMP] product, website_sale: add field sequence on pricelist.
Now that property is computed automatically.
In some case, the compute will take the first on available.
So, the order (sequence) allow to specify the priority.

Test from point of sale are base on currency $,
So we force for the test to use a pricelist in dollard (My company, Chicago)
2016-09-06 13:59:35 +02:00
Jeremy Kersten a26a84f9c0 [IMP] website_sale, website_sale_event: adapt views to respetc the show_discount
Now, the user can choose on the pricelist if the price should be displayed as a
discount or not (price striked red).

cart_update and confirm_order recompute unit price by default.
So we need for website_event_sale to be able to ask to don't recompute the price.
Else the price of product will be used instead of the price of ticket.
2016-09-06 13:59:35 +02:00
Jeremy Kersten 53abb4a277 [REF] sale,product,website_sale: merge website.pricelist and product.pricelist
Make it generic... It is not only a concept to website !

Update tests
2016-09-06 13:59:35 +02:00
Jeremy Kersten 7854105b31 [FIX] sale: fix old product_visible_discount to be multi_currency compatible
Without it, currency was ignored
2016-09-06 13:58:09 +02:00
Jeremy Kersten 583521f39c [REF] sale: Merge product_visible_discount in sale module 2016-09-06 13:58:09 +02:00
Denis Vermylen (dve) e9426b03e7 Revert "[IMP] website, doc: replace eCommerce by e-Commerce"
This reverts commit b4d7b7e6dc.
Odoo always uses term eCommerce
2016-09-06 13:55:12 +02:00
qsm-odoo 60b11d6d60 [IMP] web_tour: add useful logs when a tour fails 2016-09-06 13:35:01 +02:00
Ravi Gohil 5bd4218454 [IMP] payment_payumoney, payment_stripe: set private fields accessible to employees only
In 8.0 private fields have been recently set as visible only to employees
at commit b226510840.

However between v9 and v10 two new payment acquirers have been implemented
payumoney and stripe. Those addons now have their credential set as private.

Methods using the acquirers have been sudoed accordingly to avoid access
issues when rendering the buttons. Other payment modules will be updated when
the forward port from 8 to 9 and pre-10-master will be done.
2016-09-06 12:39:33 +02:00
Raphael Collet 9374892bb9 [IMP] tools: make OrderedSet implement the full set API 2016-09-06 12:23:06 +02:00
Raphael Collet 1e5ecfd183 [REF] models: add methods to efficiently concatenate and union recordsets 2016-09-06 12:23:01 +02:00
Martin Trigaux ae5f6df340 [IMP] rating_project: unify terms 2016-09-06 11:47:28 +02:00
dut-odoo d272bde197 [IMP] point_of_sale: Prevent backend sessions and orders creation
If your create an order in backend and you make payements, they remain opened while the POS session isn't closed, which may seens counter-intuitive. The payment in taken into account afterward and the reconciliation is made with the invoice (if applicable)

We shouldn't let people create POS orders from backend. And while we're at it, we should do the same with sessions. They're opened and closed from the dashboard.
2016-09-06 11:23:43 +02:00
Damien Bouvy 29d8576b0a [FIX] mail: remove duplicate code
There already is a redirect implementation in the chat_manager
which closely matches the on_redirect implementation in chatter.js,
however the former has the advantage of calling get_formview_id
to ensure that the view is correct.

This fixes a faulty behaviour when some models are referenced from
chatter message using data attribute data-oe-model and data-oe-id.
For example, linking invoices in the chatter would always open them
with the 'vendor invoice' view; from this revision on the correct
view will be used (assuming get_formview_id is implemented on the
model).

The default behaviour of the chat_manager when a user clicks on a
partner record is to open a channel if the partner has a user then
return a callback passed as a parameter (usually to open the channel
as a popup or in the discuss app). To keep the old behaviour
of the chatter followers list widget (i.e. open the partner form
when clicking on a follower), a small change has to be made on the
redirect implementation: when no callback is provided, do not create
the channel (instead a returning an empty callback).
2016-09-06 08:52:57 +02:00
Thibault Delavallée b9e31f132f [FIX] calendar: correct used variable probably introduced when migrating 2016-09-05 18:21:53 +02:00
Olivier Dony ad50d13b6a [FIX] stock: select picking type deterministically
The default order on `sequence` was not specific enough,
causing semi-random selection of picking type and warehouse
when several types exist with the same sequence.

The problem was made more likely by the fact that
warehouses create their own picking types.
The algorithm to determine the sequences for the
new types was not handling properly the case of
a NULL sequence.

The patch fixes both issues: the selection of the
default picking type (e.g. for purchase orders),
and the algorithm for choosing the sequence for
new picking types.
2016-09-05 18:02:43 +02:00
qsm-odoo b54ffcc0e7 [MERGE] mass_mailing, web_editor: new snippets and theme system
* Replace mail theme/template system with a cleaner one which only
allows to change a class on the main container of the mail
* Improve snippets
* Improve snippet options
* Improve web_editor UI
* ...
2016-09-05 17:07:43 +01:00
qsm-odoo 54b22541b6 [IMP] mass_mailing: use standard background colorpicker 2016-09-05 17:07:31 +01:00
qsm-odoo 61e48b09fb [REF] mass_mailing: convert templates to themes and clean code
* Remove mass mailing template switching system (lemon, airmail, ...)
and replace it with a theme selector which only toggle a different
class on the body.
* Lint JS files.
* Change the way the editor is overridden by mass_mailing in a more
odoo way (put the JS in assets and check on runtime if it must be
applied.

+ fix editor style
+ remove useless code
+ remove odoo template
2016-09-05 17:07:31 +01:00
qsm-odoo 71b8bc7570 [IMP] mass_mailing: correctly define snippets toolbar template
* Split snippets into templates and use the t-snippet directive
* Correctly handle snippet thumbnails thanks to t-thumbnail and not
with custom css
2016-09-05 17:02:00 +01:00
Csaba Fazekas 9676ceec02 [REF] mass_mailing: change/add snippets/themes layout/design
* Airmail/Lemon/Tech template/Odoo template
* Add bg color option
* Clean snippets
2016-09-05 17:01:50 +01:00
Christophe Matthieu 1501b30c53 [REF] mass_mailing: change theme/template selection and add new snippets
* remove theme/template selection screen for mass_mailing
* allow to use different layout on edition
* add new snippets
2016-09-05 17:00:45 +01:00
Christophe Matthieu ea8f29e260 [FIX] web_editor: debug mode is not applied in the iframe of html field 2016-09-05 17:00:33 +01:00