Commit Graph
99161 Commits
Author SHA1 Message Date
qsm-odoo 3b87ef6dda [FIX] product_*,website_sale: wrong template inheritance
In v8, some fields were added for the product.pricelist formview by
template inheritance : after the active field. For v9, this active
field was moved in a button_box button (archive stat_button), so the
added fields (inheritance) landed in the stat_button too.
2015-09-22 14:28:23 +02:00
Goffin Simon 1bcc5b5797 X] hr_evaluation: _rec_name
To avoid warning when making a name_search on "hr_evaluation.evaluation".
2015-09-22 13:40:26 +02:00
Goffin Simon 14b060ed71 [FIX] purchase: journal_id in auto procurement
The journal_id used in a purchase.order created in auto procurement
(by the function make_po) must be the journal_id of the company_id
set on the procurement. The company_id set on the procurement is
the company_id set on the SO (function _prepare_order_line_procurement).

When creating the PO in function make_po, the company_id must be set in the
context to use the right journal_id with the function _get_journal in
"purchase.order" model.

opw:648600
2015-09-22 13:34:45 +02:00
Martin Trigaux 7a9c0097af [FIX] account: typo 2015-09-22 13:26:36 +02:00
qsm-odoo 250b3ba506 [IMP] product: pricelist items formview layout
* Group with 6 columns caused problem when inside a dialog because of
wrong use of labels.
* Use o_row to align input followed by a '%' sign.
* col=6 group should not be in a parent group (moreover: this group was
alone in this parent group).
2015-09-22 13:02:59 +02:00
Joren Van Onder 07dac79ddb [FIX] point_of_sale: remove references to pos_loyalty
Was causing issues when clicking on Settings. pos_loyalty was moved to
enterprise in 9f1cb9ed97.
2015-09-22 11:57:39 +02:00
Yannick Tivisse e5181b05f7 [FIX] web_kanban, web: KanbanSelection widget refactoring
- Change the widget behavior from asynchronous to asynchronous, by adding 3 related fields
  on the project.task model, which are the custom labels defined for the stage
- Instead of making a rpc call, we are taking directly the labels on the parent for the kanban view,
  or on the view datarecord for the form view
- There are now 2 templates for the kanban view or the form view
- The development has been backported in the community version
- The options attribute has been removed on the project_view.xml file for the kanban_state field
2015-09-22 11:33:58 +02:00
Richard Mathot 8c8fee29ea [FIX] delivery: it is better when parameters are passed in the right order 2015-09-22 11:14:47 +02:00
Thibault Delavallée 396c5db41a [FIX] mail, various: buttons in notifications
Various fixes :
- new button (task / issue / note) param name + correct action
- method button fix
2015-09-22 10:28:01 +02:00
Thibault Delavallée a852218759 [FIX] mail: slack: log a note with internal subtype
The subtype id was not correctly computed, leading to all subtypes being notes. This
make the activites feature of CRM crash.
2015-09-22 10:28:01 +02:00
Martin Trigaux a8c74c8bfd [FIX] website_forum: field label 2015-09-22 10:06:07 +02:00
Joren Van Onder 8a232e7f45 [FIX] point_of_sale: don't automatically open the frontend from workflow
It was preventing pos managers from opening sessions for pos
users. Because pos users cannot open their own sessions, this means they
couldn't do anything anymore.

The reason for it is that the open frontend function checks whether or
not the opened session belongs to the current user. If it doesn't, it
throws a UserError, which prevents the session from being
created. That's all open_frontend_cb did when called from
wkf_action_open anyway, because the action it returns just gets ignored
in the workflow.

This also removes the validate & open session button because the only
reason not to use the new dashboard to create a session is when you want
to create a session for a different user. When doing that, validating
and opening the session yourself makes no sense. When people do want to
create a session for themselves without using the dashboard they can
still do so, they will just have to save the session form and then click
on the continue selling button.
2015-09-22 09:22:40 +02:00
Fabien Pinckaers 973b94bd83 [IMP] request procurement on product 2015-09-21 18:14:46 +02:00
Fabien Pinckaers 4aabd1ef2a [IMP] request procurement on product 2015-09-21 18:14:04 +02:00
eLBati 16fda32a0e [FIX] l10n_it: tax code for Iva al 10% indetraibile
The tax code of `Iva al 10% indetraibile (D)`
is `template_ivacode_pagata_10ind`, like its
sibbling `Iva al 10% indetraibile (I)`.

The fact it wasn't is due to a typo.

Something similar is done with the taxes
`Iva al 20% indetraibile (D)`
and
`Iva al 20% indetraibile (I)`
with the tax code `template_ivacode_pagata_20ind`

opw-649557
Closes #8047
2015-09-21 17:35:01 +02:00
Ruchir Shukla 61300ee7f1 [FIX] stock_landed_costs: modify quants as admin
Nobody has write access to stock.quants so only the admin was able to execute
this method.
Fix it by using SUPERUSER_ID
Closes #8544
2015-09-21 16:40:34 +02:00
Ruchir Shukla 516d723cd4 [CLA] signature for BizzAppDev 2015-09-21 16:40:34 +02:00
qsm-odoo 3807733be6 [FIX] web: field radio empty value
The get_value method of field radio returned sometines an undefined
value (while it is expected to return false is there is no value).

This caused traceback for siblings fields trying to access the value
of an empty field radio (onchange, ...).
2015-09-21 16:21:14 +02:00
odoo-tac a88fae84e4 [FIX] point_of_sale : Virtual keyboard and product search fixed.
The pos search uses keypress instead of keydown event. The virtual keyboard has thus been fixed to trigger the same kind of event.
Using keypress instead of keyup also made the search behaviour erratic. This is fixed with the appropriate use of a timeout.
Finally a keydown listener is added to update the search after a backspace or delete.
2015-09-21 16:07:24 +02:00
Denis Ledoux a3648fd23a [MERGE] forward port of branch 8.0 up to aabbdc7 2015-09-21 16:01:58 +02:00
Martin Trigaux 6a752daaae [IMP] account: cleaning labels on fields
account: add missing or unclear labels
POS: remove useless surcharge changing the label
l10n_be_invoice_bba: unify label name with account
2015-09-21 15:55:43 +02:00
Denis Ledoux aabbdc7339 [FIX] web: Safari, download of attachments with accents
The structure `filename*=UTF-8` works in Safari, from
release 6.2 (which is set as version 537 in the user_agent version).

This structure has the advantage to handle the UTF-8 encoding,
and therefore special characters, such as accents.

Therefore, from this Safari release, we use the same format
than other browser. For older releases, we use the format
`filename=`, without UTF-8, ASCII encoded, replacing
special characters by `?`.

opw-649863
2015-09-21 15:30:05 +02:00
Joren Van Onder 29ced971c6 [IMP] point_of_sale: make demo user a pos user 2015-09-21 15:02:52 +02:00
Adrien Peiffer (ACSONE) 0b4bd7a6d1 [FIX] mail: allow to delete mail alias all employees
It was allowed for all employees to read, create and edit
mail aliases. Only the deletion was prevented.
Nevertheless, giving the possibility to rename a mail alias
is allmost seen as a deletion, as you can rename it to something
that just won't be used anymore. Therefore, we can consider
to give any employees the rights to delete mail aliases.

Besides, not allowing the unlink leads to issues when the
mail alias is associated to a record the user wants to delete.
He was able to create the record, and its mail aliases, but
he could not remove the record, as he was not allowed to remove
the mail alias.
For instance, an HR officer was able to create a job position,
with its mail alias, but couldn't remove the job position he created.

Closes #8466
2015-09-21 14:26:37 +02:00
qsm-odoo c673d3250c [IMP] sales_team: main dashboard alignement&focus
* Adapt LESS rules so that the tables are top aligned and respect
correct margins.
* Set td min height so that toggling between edit mode and readonly
mode does not modify the table cells dimensions.
* Before this commit, clicking on a target to edit while one was
already being edited closed the new editable target immediately.
2015-09-21 13:58:15 +02:00
qsm-odoo 85b1021fc7 [FIX] project: dashboard button alignment
Flex 0 0 x% layout is broken if content is larger than x% with nowrap
white-space property. Solution is to change in flex 0 0 auto and force
width to x% thanks to the width property.
Also: was always a problem on firefox windows.
2015-09-21 13:58:15 +02:00
Christophe Matthieu e8b57c1457 [FIX] website: addapt tour rte_translator wait for page load
Next steps executed before the next page loading could cause a test
false positive. Remove hack and use waitFor and WaitNot.
2015-09-21 13:45:36 +02:00
Christophe Matthieu b6c987a2fc [FIX] web: Tour test: remove false positive
re-test (element, waitFor, waitNot) because if click on a link to change page, don't want to click again after
2015-09-21 13:45:36 +02:00
Christophe Matthieu e4866f830e [FIX] mass_mailing: remove the wrong scrollbar in html field
Add "web_editor_inside_iframe" id in web_editor iframe template to apply css style only when the field is in html field.
Remove "content" css media query in iframe editor to remove scrollbar.
2015-09-21 13:45:36 +02:00
Christophe Matthieu a41f915493 [FIX] web_editor: iframe of html widget must be checked before render value
If the iframe is destroyed, detached, hide (eg: click on a record, return into the list view and click on an other record), the render_value method try to resize the iframe but jQery raise an exception because contentWindow doesn't exist.
2015-09-21 13:45:36 +02:00
Damien Bouvy f89e8f9df2 [IMP] payment, website_sale, website_payment: unique reference on payment no longer prevent paying
Payment transactions referenceis have a unique constraint which was problematic when a payment was cancelled from the acquirer's page.
To stick the to DRY principle, I factorized a method that checks for existing references and happens a numerical suffix if necessary.
This was already implemented in website_payment but was moved to payment and used in website_sale.
2015-09-21 13:15:58 +02:00
Mahendra barad 727f7c4175 [FIX] point_of_sale : Prevent a traceback when adding a global discount on an empty pos, allow use of a numeric pad dot (.) in payment screen. 2015-09-21 12:53:32 +02:00
Thibault Delavallée 5492f88126 [FIX] mail: mail_message write right
Notified people should be able to write on the message, for example to be
able to star / unstar, needactionize / unneedactionize (nice word).
2015-09-21 12:44:40 +02:00
Olivier Laurent 85a19db1fe [IMP] base: use 'raise_view_error' when checking the inheritance
The message used in 'valid_inheritance' was not very helpful when the
inheritance validity was not passed.
You only knew that some view was not OK without knowing which one.

We now use the 'raise_view_error' method, which can already display all
the meaningful info (view_id, parent_id, view name, ...)
2015-09-21 12:36:02 +02:00
Martin Trigaux 4c73125931 [FIX] delivery: typo 2015-09-21 12:22:54 +02:00
Darshan Kalola 5327869356 [IMP]point of sale: added fiscal_position_id field in pos config to set fiscal postion on each shop. 2015-09-21 12:10:10 +02:00
Martin Trigaux 991e0cbef7 [IMP] base: less technical label
Courtesy of Lionel Sausin
2015-09-21 11:57:19 +02:00
Denis Ledoux 9975a04e4d [FIX] website_quote: quote creation without default template
onchanges methods are expected to return dicts
opw-649862
2015-09-21 11:46:50 +02:00
Martin Trigaux 1a48daa4ce [I18N] export source terms 2015-09-21 11:46:35 +02:00
Cedric Snauwaert 17a950c432 [REF] module: cleanup of unused function 2015-09-21 11:38:08 +02:00
Cedric Snauwaert f6054e8937 [FIX] module: move the process of loading translation before the post_init_hook and tests phase 2015-09-21 11:38:08 +02:00
Keyur Gajjar b522283ffd [FIX] mass_mailing: mailing list was not created
Add "editable_area" id and remove default html content.
2015-09-21 11:11:11 +02:00
Damien Bouvy 332658c6b6 [IMP] hr_expense: terminology: "More" menu is now "Action" menu; adapt tip 2015-09-21 10:40:22 +02:00
Damien Bouvy 3c5818f6cf [IMP] hr_expense: allow product creation in many2one field 2015-09-21 10:33:41 +02:00
Damien Bouvy a7c379a495 [IMP] sale: better mechanism for expense registration
When a SO is linked to the analytic account: ensure the SO is validated and warn user if not
When there is no SO: simply register the line on the AA; registering expense lines on analytic accounts must not require the use of a sale order
2015-09-21 10:33:41 +02:00
Damien Bouvy ec4203598d [IMP] hr_expense: terminology
analytic accounts are not contracts anymore
2015-09-21 10:33:41 +02:00
Denis Ledoux 06138db78d [FIX] sale_crm: Sales button
The amount displayed in this sales button
is the amount sold for this opporunity,
not for this specific partner, see
See `_get_sale_amount_total`

Therefore, forcing the `search_default_partner_id`
was wrong, as the sale orders could be on other partners
(for instance, the partner parent/`commercial_partner_id`)
The domain `"[('opportunity_id', 'in', [active_id])]"`
is already applied on the window action anyway.
See `sale_action_quotations`

opw-649712
2015-09-21 10:27:06 +02:00
Richard Mathot ec7fb80775 [REM] delivery: unused field for now, should not have been merged in a223111b92 2015-09-21 10:20:03 +02:00
Prashant Panchal f41575238b [REM] crm,point_of_sale,sale_crm: unused imports 2015-09-21 09:14:11 +02:00
Yannick Tivisse 44a3e55a8d [FIX] hr_equipment: typo in module description 2015-09-21 09:10:35 +02:00