Commit Graph
127612 Commits
Author SHA1 Message Date
Christophe Matthieu 2adcf523cf [FIX] web: company image not update when use 'Edit Company data' button
Wrong class selector and must add '#' to force the browser to reload the picture because the picture is in the cache with the previous cache informations.
2016-09-08 16:17:04 +02:00
Christophe Matthieu 8bb4d9df68 [FIX] web: traceback when click on 'Edit Company data' button
Try to bind event without wait the action deferred
2016-09-08 16:15:30 +02:00
Denis Ledoux c86201c553 [FIX] mrp: fix BOM smart button for product variants
Do not force the `search_default_product_id`to the current
product variant, as the domain just above could return a
result, a BOM which is set for the template of this variant
but not for the variant istself, that this filter would hide.

This is following the revision
52cba1b563

Because of this, a product variant smart button could
display "1 BOM", but when clicking on it, none would be displayed,
which is not user-friendly at all.

opw-687912
2016-09-08 16:01:42 +02:00
Fabien Meghazi ff4549ec6a [FIX] point_of_sale: bug in decimal.precision lookup 2016-09-08 15:34:34 +02:00
Fabien Meghazi 03b0fe1d64 [FIX] point_of_sale: the POS html bootstrap javascript not contain db_info 2016-09-08 15:16:21 +02:00
Denis Vermylen (dve) ca84c07437 Revert "[FIX] website_sale: handle "enter" key when editing product price on website"
This reverts commit e7f6746d2a which crashed
the shop tour.
2016-09-08 13:51:25 +02:00
Denis Vermylen (dve) e7f6746d2a [FIX] website_sale: handle "enter" key when editing product price on website 2016-09-08 12:29:01 +02:00
Denis Vermylen (dve) 6c97545f1e [FIX] website_*: add kwargs to route "my/home" methods
kwargs were needed when trying out the mobile preview on route my/home
2016-09-08 12:29:01 +02:00
Denis Vermylen (dve) d13a39ef9d [IMP] website_sale: data: improve empty shop page message 2016-09-08 12:28:52 +02:00
Denis Vermylen (dve) f657e1e178 [IMP] website: data: improve empty homepage message 2016-09-08 12:28:40 +02:00
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
Martin Geubelle fddd748156 [FIX] account_asset: allow deferred revenue on one month
One could want to use deferred revenue for revenues invoiced in February
but the services are provided in June (e.g.)
2016-09-08 12:24:39 +02:00
Christophe Simonis 7dc7c306c1 [FIX] odoo.py: handle call without arguments 2016-09-08 11:54:15 +02:00
Martin Geubelle 7fe89d08b3 [FIX] account_asset: asset in company currency
When the asset is created from an invoice line it should be in company currency and not in invoice currency
2016-09-08 11:21:29 +02:00
Martin Geubelle f5e3a52236 [FIX] account_asset: generated account.move.line name
If `method_time` is set to end, `method_number` is not the reference for the number of depreciation lines.
Take directly the number of depreciation lines is more correct.
2016-09-08 11:19:08 +02:00
qdp-odoo d08c947440 [FIX] account_tax_cash_basis: set the entry date for tax_cash_basis as the maximum of involved operations, instead of the reconciliation date.
Also refactored account_tax_cash_basis and account_tax_exigible to have the minimum code lines in the bugfix module
2016-09-08 10:46:46 +02:00
Nicolas Martinelli 86eee6246b [FIX] hr_timesheet: task creation on project
When creating a task on a project which is accessible to followers only,
an access error pops up.

This comes from the `subtask_project_id` field on the task, which is a
related to a `project.project` field. When a task is created, the ORM
tries to write on the related field, and hence on `project.project`.

opw-687252
2016-09-08 10:43:25 +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
Denis Ledoux 49b807d877 [FIX] product: force empty context in product_template_action_all
This revision removes the context from the action:
afd29b277d

The thing is, in saas-11, the `product.template.type`
no longer has in its selection values `product`,
in the module `product`,
there is only `consu` and `service`.
the type `product` is added in the module `stock`

Therefore, this `product` cannot be used as default value
when only the module `product` is installed and not
`stock`.

We force the empty context for migration purposes,
so bases in ealier releases than saas-11 do not have
`'default_type': 'product'` within this action
when they are upgraded to saas-11.

opw-687986
2016-09-07 18:04:48 +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
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
Thibault Delavallée 8802994964 [FIX] hr_holidays: take employee resource when computing days of leaves request 2016-09-07 13:30:53 +02:00
Nicolas Martinelli a666cd06bd [FIX] point_of_sale: round globally
Commit 06754b32 brings an inconsistency between the PoS frontend, the
pos_order and the account_invoice tax calculation. Part of the commit is
correct since it corrects the matching between the `compute_all`
methods, however.

opw-680891
2016-09-07 13:08:31 +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
qsm-odoo e696def3c5 [FIX] website: properly allow to remove slide from banner snippet
Removing a slide was buggy :
* Removing the last slide left the slide handles (and the user had to
click on remove slide again)
* There was an ugly delay before the removal
* Changing the bg image of a slide was not possible anymore once one
slide was removed
* ...
2016-09-07 12:30:40 +02:00
Denis Ledoux d94c449547 [FIX] account: improve usability journal refund sequence
WHen checking `Dedicated Refund Sequence` in a
sale / purchase journal,
the field `Refund Entry Sequence` must be filled with a sequence.

Otherwise, later, when issuing a refund invoice, it won't be able
to generate the number of the refund invoice as it won't be able
to find the sequence to use.

opw-687839
2016-09-07 12:05:07 +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
Damien Bouvy 23d8ab5ec9 [FIX] rating: use t-att-value instead of t-esc to display textarea
When using t-esc, if the value is False/not set, the element is not
added to the DOM. Therefore the page asked for feedback but never
actually displayed a textarea input.

Using t-att-value simply prefills the input.
2016-09-07 11:59:14 +02:00
Damien Bouvy 259cc9a708 [FIX] rating: fetch the rated partner when applying the rating
A function named rating_get_rated_partner_id is there, let's use it.
2016-09-07 11:44:42 +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
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
qsm-odoo 0eafeab183 [FIX] website: colorpicker option for banner snippet 2016-09-07 11:18:04 +02:00
Martin Trigaux fb74fec3f5 [I18N] export 10.0 source terms 2016-09-07 11:08:42 +02:00
Martin Trigaux 05d91ea4e9 [I18N] update saas-11 translations by merging 9.0 and master
Without fuzzy-matching that is too flexible and error prone.
Was matching on wrong source and got translation without '%s'
2016-09-07 09:40:37 +02:00
Nicolas Martinelli 06754b3237 [FIX] point_of_sale: tax calculation
Inconsistencies can arise between the tax calculation performed in the
PoS and in the backend (e.g. in a SO). For example:
- Unit price: 9.479
- Tax: excluded, 5.5 %
- Buy 5 units
- Round globally

In the backend, the result is 47.40 + 2.60 = 50.00
In the PoS, the result is 47.40 + 2.61 = 50.01

We make the PoS apply the same logic than in the backend. First, at the
level of the `compute_all` method, especially to use the appropriate
rounding precision before starting the calculation (so we move the
rounding of `total_excluded` after the rounding precision adjustment).
Then, by calculating the taxes amount as the difference between
`priceWithTax` with `priceWithoutTax`. This is mandatory since they
contain the result of `compute_all` in which the rounding logic has
already been applied.

opw-680891
2016-09-07 09:13:03 +02:00
Nicolas Lempereur b4e829f96e [FIX] stock: @api.model on _prepare_values_extra_move
In saas-11 stock was migrated to new API, but some old API still called
_prepare_values_extra_move so it needs to be callable via both API
version.

opw-687958
2016-09-07 09:02:18 +02:00
Pierre Masereel 8e65b57df7 [FIX] web, web-kanban: update dataset size at record's drop in a column
When we drag and drop a record in a folded column, the number of elements
in this column displayed  in the column title is not updated.
This issue is present because when a record is droped in a column
its id is not added to the dataset of its new column.

To fix this, we had to add the id of the record in the dataset, and
override the method 'add_ids' in 'DataSetSearch' to have the size
of the dataset equal to the number of ids in it. We have replicated
the behaviour of the function 'remove_ids' in the new function 'add_ids'.
2016-09-06 17:15:44 +02:00