Commit Graph
99776 Commits
Author SHA1 Message Date
Denis Ledoux 9ad357553d [FIX] mass_mailing: missing auto_commit in send_mail overrides
The argument `auto_commit` was omitted in `send_mail` overrides.
`auto_commit` was therefore allmost always `False` when
reaching the `send` method of model `mail.mail`,
in `mail/mail_mail.py`. At least it was when either
`sale`, `purchase` or `account` were installed.

Not committing the sql transaction leaded to the fact
the mail statistics were never created when the queue
process was interrupted (e.g. process time limit reached),
and knowing if an email in a mass mailing has already been sent or not
is based on the fact the mail statistics exists or not.

Therefore, if a mass mailing sending process was interrupted,
the emails were re-sent over and over.

opw-649106
2015-09-11 14:18:45 +02:00
Olivier Dony abde3e0e5b [IMP] http: LazyResponse rendering w/ concurrent access protection
QWeb's LazyResponse mechanism allows controllers to be inherited
and to alter the rendering context (qwebcontext) *after* calling
super().

However it caused the final rendering to occur outside the protection
of the @service.model.check decorator that handles concurrent access
errors. In rare cases the lazy rendering can be interrupted by
a concurrent access error, for example when bootstrapping the
the cache of asset bundles (as it INSERTs a bunch of attachments).

By forcing the flatten()ing of the lazy response earlier, right
after calling the route's endpoint(), it occurs within the
protection of the @service.model.check, and benefits from the
automatic retry.

flatten() was modified to avoid rendering twice the template
The flatten() in get_response() is still necessary for addons
code that directly calls get_response().

Moved QWebException into openerp.exceptions next to the other
exceptions classes - since it now has more global semantics.

~
The whole request dispatching code could really do with a
complete redesign/simplification.
2015-09-11 14:15:57 +02:00
Josse Colpaert b9420fdea8 [FIX] stock: Initial Demand picking form should use correct tree 2015-09-11 13:50:44 +02:00
Josse Colpaert b09d0732bd [IMP] stock: demo data stock moves only parent locations 2015-09-11 13:23:09 +02:00
Arthur Maniet c4f8deecc0 [FIX] barcodes: dumb typo 2015-09-11 13:14:45 +02:00
Arthur Maniet 4d9b9b0919 [IMP] barcodes: complete the documentation 2015-09-11 12:04:13 +02:00
Arthur Maniet d0423b5e5c [IMP] barcodes: form views action barcodes
Make all common form operations doable through barcode scanning
2015-09-11 12:04:13 +02:00
Arthur Maniet 5b96b4349e [IMP] barcodes: form view barcode handler 'pre_onchange_hook' mechanism
Since the method must return a deferred, resolve it with true to proceed with onchange
and with false to prevent the onchange. Deferred failure is not an option.
2015-09-11 12:04:13 +02:00
Nicolas Martinelli 20a2bcd2f7 [FIX] lunch: previous orders
For some reason, the computed Many2many or One2many field is not
received through the onchange RPC call when creating a new order, but
only once the order is saved. This makes the widget displaying previous
orders kind of useless. We use this workaround with the default value
in order to be sure to send the value in the default_get call.

We also display previous orders and the agressive alerts in edit mode.
2015-09-11 12:02:23 +02:00
Nicolas Martinelli d43a3efdb5 [FIX] sale_service: prevent deleting a task linked to a SO 2015-09-11 11:55:49 +02:00
qsm-odoo d4c4267dcc [FIX] web: Formview saving when listview editable in edition
In some cases, saving the formview when a listview editable line was
being edited forced the line changes to be discarded.
2015-09-11 11:38:08 +02:00
qsm-odoo d5dd6284dd [IMP/FIX] web: CRM next activity section layout 2015-09-11 11:38:08 +02:00
qsm-odoo 9632f897ad [IMP] web_editor: change font-family to webclient default 2015-09-11 11:38:07 +02:00
rsi-odoo a49a29b94b [FIX] l10n_hu: create new tags for enterprise 2015-09-11 11:33:41 +02:00
Josse Colpaert f7dd7d8992 [IMP] stock: product form Forecast statbutton with incoming/outgoing qty and product template and product product should be the same and consistent
The button Inventory Adjustement is also changed to Update Qty On Hand
as an inventory adjustment would expect a total inventory.
These buttons do not need a variant security group.

The incoming and outgoing quantity give more information on the forecast
button immediately.

The stock move view (Traceability statbutton) should not allow for creating or editing immediately.
2015-09-11 11:09:00 +02:00
Christophe Matthieu a4f041ed45 [FIX] mail: display attachment preview 2015-09-11 11:07:07 +02:00
Christophe Matthieu 614b40b304 [FIX] attachment: fix the close button position 2015-09-11 11:07:07 +02:00
Christophe Matthieu 0300e0b7ba [FIX] mail: onchange_template_id return a valid command of commands
Use convert_to_cache and convert_to_read to format onchange values.
Fix: default value can be a command list, the onchange convert the comand list into a wrong comand list of command list.
2015-09-11 11:07:07 +02:00
Christophe Matthieu 9c7d366229 [FIX] web: add a check to detect server convert_to_onchange errors. 2015-09-11 11:07:07 +02:00
Raphael Collet 60898513bd [IMP] product: add archive button on pricelists 2015-09-11 09:46:53 +02:00
Nicolas Martinelli 94588c4302 [FIX] account_cancel: allow canceling the Cash Register in the same manner as Bank Statement
Closes #8342
2015-09-11 09:07:11 +02:00
Olivier Dony 27587a5e8e [FIX] *: typos in b568affe 2015-09-11 09:02:31 +02:00
Fabien Pinckaers b568affe66 [IMP] Adding placeholders to all oe_title (thanks xgrep), usability guidelines 2015-09-11 08:51:57 +02:00
Olivier Laurent 7163a0c865 [ADD] doc: database upgrade API (background image)
Add a background image.
The previous one was empty.
2015-09-11 08:46:01 +02:00
Fabien Pinckaers 8b57d712a3 [IMP] Config menu visible in events 2015-09-11 08:07:03 +02:00
Olivier Dony d982ba0d5a [IMP] hr_equipment: grammar/spellcheck 2015-09-11 03:03:43 +02:00
Olivier Dony 89e40ddee5 [FIX] hr_equipment test: equipment only visible to assigned employee and managers 2015-09-11 03:00:40 +02:00
Fabien Pinckaers b8e203ffef [IMP] Remove dual deferred revenue on product form 2015-09-10 22:22:52 +02:00
Olivier Dony 8d2a3ba12d [FIX] http: stop altering endpoints during routing
Request arguments were being stored on the routing
endpoint during the dispatching.
This could cause request0 to use parameters from request1
if request1.set_handler() is called before request0's
dispatching is over. No reason to store request arguments
on routing endpoints anyway.
2015-09-10 20:51:07 +02:00
Fabien Pinckaers 40b846241c [IMP] Adding location on IT asset 2015-09-10 20:46:49 +02:00
Fabien Pinckaers 132dcc9786 [IMP] Equipment --> IT Asset 2015-09-10 20:45:14 +02:00
Fabien Pinckaers 1c81d601c9 [FIX] bug when creating a SO line in mobile view 2015-09-10 20:34:07 +02:00
Fabien Pinckaers 97a950c831 [FIX] crash on pricelist: customer segment, product form 2015-09-10 20:18:27 +02:00
Fabien Pinckaers d0a4e399cb [IMP] Equipment: cleaning views and usability 2015-09-10 20:12:16 +02:00
Martin Geubelle 0e6d850b34 [IMP] sales_team, crm: use currency on sales_team dashboard 2015-09-10 18:07:52 +02:00
Martin Geubelle eb6c3f6288 [IMP] use monetary widget in all concerned kanban views 2015-09-10 18:07:52 +02:00
Martin Geubelle 786e5bc775 [ADD] web_kanban: monetary widget 2015-09-10 18:07:51 +02:00
Martin Geubelle 28760284f9 [FIX] note: misplaced tags in form and kanban views 2015-09-10 18:07:51 +02:00
Martin Geubelle 648674dff0 [IMP] base: use color for demo on res.partner.category 2015-09-10 18:07:51 +02:00
Foram Katharotiya 453adf434f [IMP] account: put back old PDF reports for people using only the community version 2015-09-10 17:52:51 +02:00
qdp-odoo 5ead16b9b0 [FIX] stock_account: allow users to force the accounting date of a stock inventory (as it was possible to do before the new accounting) 2015-09-10 17:15:44 +02:00
Denis Ledoux 63a5bc8c5f [FIX] website_quote: default quote template values
Once the website_quote module installed,
the "default template" is set by default
on all new quotations.

There is an onchange on the field `template_id`,
setting some values according to the template,
including the description in the website quote.

When creating the quotation / sale order from
the web interface, the on change is triggered,
and the values related to the template are correctly
loaded.

However, when the quotation is created through
the code or the API, the default `template_id` was
correctly set, but as the onchange wasn't triggered,
as onchanges are automatically triggered only
through the webclient creations, the related values,
issued from the template, were not, such as
the quote website description, or the date expiration,
and so on.

In particular, this happen when creating a quotation from
an opportunity, through the "Convert to quotation"
button.

opw-648920
2015-09-10 15:56:05 +02:00
Mohamed M. Hagag 9069f29efa [ADD] l10n_sa: Saudi Arabia multi-lang CoA
Closes #8098
2015-09-10 15:20:05 +02:00
Denis Ledoux 428588a8b7 [FIX] website_quote: Amount before discount with included taxes
The undiscounted amount did not take into account the taxes
included in the price. Included taxes were seen as a discount.

For a quotation with one line with an included tax of 15%,
but no discount, the undiscounted amount must be the line price subtotal,
the price subtotal already removing the taxes from the price unit.

For a quotation with one line with an included tax of 15%,
and a discount of 10%, the undiscounted amount must be the line price subtotal,
plus the amount discounted. That way, the taxes included are already removed
from the price, but the discount is not included.

opw-648388
2015-09-10 15:06:44 +02:00
Martin Trigaux a9757d99c3 [FIX] account_anglo_saxon: price computation with different uom
When recording the cost of good sold, fetch the price based on the stock.move
Revision fb57514c used the standard_price fixing a UoM issues
2015-09-10 15:04:37 +02:00
Nicolas Martinelli 3e57405ff0 [FIX] purchase: track state and _amount_all depends 2015-09-10 14:15:01 +02:00
Goffin Simon 92c4a3e89a [FIX] stock_landed_costs: Former Cost
The former cost of a stock.valuation.adjustment.lines line is the sum
of cost * qty  of each quant linked to the stock.move record linked to
this line (with the field 'move_id').

opw:648922
2015-09-10 14:08:37 +02:00
Olivier Laurent 1545591f3b [ADD] doc: database upgrade API 2015-09-10 12:51:47 +02:00
Nicolas Martinelli 7326dd570a [FIX] sale: remove unnecessary message_post
The message "Sale Order created" is generated automatically anyway.
2015-09-10 12:29:56 +02:00
Martin Trigaux 087f8bed48 [FIX] correct some English mistakes
Missing spaces, typos, rephrase unclear text
Courtesy of Eric Geens
2015-09-10 12:22:17 +02:00