Commit Graph
105301 Commits
Author SHA1 Message Date
Denis Vermylen (dve) f00e823a8d [IMP] website_sale: improve tooltips + strings on views
Better tooltips for settings options:
    - Pricing Strategy: remove tooltip
    - Sales Price:
        - Specific prices per customer segment, currency, etc.: new pricing table available in product detail form (Sales tab).
        - Advanced pricing based on formulas (discounts, margins, rounding): apply price rules from a new *Pricelists* menu in Configuration.
    - Optional products: Installs *e-Commerce Optional Products*
Better tooltips in product page:
  - Website Categories: Categories can be published on the Shop page (online catalog grid) to help customers find all the items within a category. To publish them, go to the Shop page, hit Customize and turn *Product Categories* on. A product can belong to several categories.
  - Suggested Products
  - Relabel the field on product detail form, web page + web customize menu: should be Alternative Products
  - new tooltip: Propose more expensive alternatives to your customers (upsell strategy). Those products show up on the product page.
  - Accessory Products: Accessories show up when the customer reviews the cart before paying (cross-sell strategy, e.g. for computers: mouse, keyboard, etc.). An algorithm figures out a list of accessories based on all the products added to cart.
  - Optional Products: Optional Products are suggested whenever the customer hits *Add to Cart* (cross-sell strategy, e.g. for computers: warranty, software, etc.).
  - Availability: Adds an availability status on the web product page.
2016-09-08 12:28:22 +02:00
Denis Vermylen (dve) 6a72b37a76 [FIX] website_sale: hide saved cards
When no saved cards, hide the option.

Put saved cards computation in controller outside of loop.
2016-09-08 12:26:36 +02:00
Yannick Tivisse 09079ef857 [REM] account: Remove commented method 2016-09-07 14:18:35 +02:00
Ravi Patel 6e01dd43ca [IMP] account: Don't raise errors if account currency = base currency
Steps to Reproduce:
- Company set in USD
- Customer Invoices journal set in USD
- Related account set in USD
- Create an invoice, validate

It raises an error: "The selected account of your Journal Entry forces to provide a secondary currency. You should remove the secondary currency on the account."

The error should be raised if the currencies are different. It should be transparent to the user if the currencies are the same. It should raise an error when:
- The journal currency' and Currency of Accounts Selected on Journal are different
- The journal currency is blank (by default company currency) and the account currency is other than company currency

+ Some wording improvements
2016-09-07 13:53:17 +02:00
Yannick Tivisse c8f5c193a2 [IMP] stock: Remove useless sudo in the Picking Report
Since the portal users have the read access right on the procurement orders, this sudo doesn't make any sense anymore.
2016-09-07 11:22:50 +02:00
Yannick Tivisse 4910092d3e [FIX] report: Allow a portal user to print the 'external_layout_footer'
A user portal cannot have the read access right on the res partner, except his commercial_partner_id (his partner or the root partner if he got a parent company). That would a big security flaw.

In the header we use the contact widget to print the company information. This widget uses sudo to get all the required fields to display.

But in the footer, we still access some fields like company.fax which is not allowed.

As the contact widget uses sudo to display the company information in the header, we did the same here for the footer.
2016-09-07 11:22:50 +02:00
Yannick Tivisse 97a4d41776 [FIX] portal_stock: Grant read access right to portal on procurement.order
The portal user should have acces on the procurement orders because this model is present on some models like sale orders to avoid issues on printed reports.

Currently, when an user portal prints the Delivery report (report_delivery_document) from 'My Account/Sale Orders', he got an ACL Access Denied to print the sale order reference because he cannot read the procurement orders on the sale order.
2016-09-07 11:22:49 +02:00
jpr-odoo a155eafca4 [FIX] website_sale_stock: Don't display internal transfer on 'My account' portal
And on the other hand, use the correct report.
2016-09-07 11:20:12 +02:00
Ankit Joshi 4e7ce5a2d0 [IMP] purchase, stock_account: Improve the consistency of the term 'Standard Cost' 2016-09-06 16:26:14 +02:00
Haresh Shyara 62ec002d5a [IMP] hr: add list view for departments in Hr app 2016-09-06 16:06:57 +02:00
Kinjal Mehta 8698307374 [IMP] account_analytic_default: select default product when creating analytic rule from product 2016-09-06 16:06:57 +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
Christophe Matthieu 0cca5651a5 [FIX] web_editor: saved mass_mailing have small difference with edition 2016-09-05 17:00:09 +01:00
Christophe Matthieu 8fc60d3509 [FIX] web_editor: display fullscreen button in readonly mode 2016-09-05 17:00:02 +01:00
Martin Trigaux 2d64653853 [FIX] correct the path to base module
In Transifex configuration file
2016-09-05 16:45:43 +02:00
Damien Bouvy 7b489ed42c [IMP] sale: show complete SO view by default
Instead of showing the columns delivered/invoiced qties on SOs
by setting a special key in the view's context, let's do the opposite
and hide them for a sepcial key instead.

The rationale behind this decision is that when a user wants to see
a SO from another place in the system, it is often a SO and not a quote
(i.e. accessing from an invoice's chatter message, from a subscription,
etc.). The default should then be to show these fields unless otherwise
specified in the context (and not the opposite).
2016-09-05 16:42:15 +02:00
Martin Trigaux e37d0909a2 [I18N] export master source terms
Since the externalidpocalypse
2016-09-05 16:33:43 +02:00
Martin Trigaux 136630c56f [FIX] mail: do not split translations on mail template
This commit is a port of a17c09af to master
The email templates may contain non-html content (mako) which should not be
sanitized.
Changing this attribute to sanitize_attributes made the translations to be split
when translated.
2016-09-05 15:54:01 +02:00
Thibault Delavallée 06e97cf766 [FIX] account: fix groups on invoice buttons
Double tap

 * fix wrong group xml_ids probably introduced when rebasing the branch
   removing workflow after xml-id-pocalypse
 * fix wrong group used for buttons, should be for Billing users
2016-09-05 15:21:42 +02:00
qsm-odoo b6b3e156a0 [IMP] web, website(_quote): move jSignature lib location (website -> web)
The jSignature lib is now used by non-frontend module (at least it
will be in upcoming commits).
2016-09-05 15:01:21 +01:00
Richard Mathot 0494ae5cd6 [REV] 827b9988ce
Because it does not fix the problem.
2016-09-05 14:59:55 +02:00
Richard Mathot 33dd2e5a54 [FIX] l10n_in_hr_payroll: no crash when installing
This is a minimal fix after a broken inheritance. Usability may not be
optimal.
2016-09-05 14:41:50 +02:00
Pierre Masereel 5a939ba4d8 [FIX] base: error during migration
There is a traceback when we are trying to install module from the list
view and clicking on the button 'Module Immediate Install'.
This traceback appears because of a server action that has not been migrated
during the rev https://github.com/odoo/odoo/commit/d465346f1

To fix this, we've converted the server action in new API.
2016-09-05 14:28:15 +02:00
Richard Mathot 827b9988ce [FIX] l10n_cr: bad external ids for new records 2016-09-05 14:26:51 +02:00
Yannick Tivisse 0b83dd9a8d [FIX] sale_timesheet: Set the account_id on the analytic entries from timesheets
When we create a timesheet activity, it create an analytic line that allows to re-invoice the costs from the employee. If the account_id is not set on the analytic account line, the employee cost is not passed correctly on the Analytic Entries, which is not the behavior we should expect.

This commit simply adds a account_id on the employee and this account is returned with the cost and the uom by the method `_get_timesheet_cost`
2016-09-05 13:59:48 +02:00