Commit Graph
14 Commits
Author SHA1 Message Date
Aaron Bohy b8fb8ad3f0 [FIX] account_asset: never hide depreciation widget
Before this rev., the widget was hidden when the value of its
corresponding field (move_check) was falsy. However, it should
always be visible, regardless its value.

opw 781628
2017-11-13 11:28:48 +01:00
Aaron Bohy 1e8f6d01ff [FIX] web,*: send correct context on button clicked
*account_asset

When a button of type 'action' is clicked (execute a given action),
special keys must be set in the context (active_id, active_ids and
active_model). They must be computed regarding the record containing
the clicked button, i.e. if we are in a modal, it must be the id
and model of the record displayed in the modal.

Before this rev., we always sent the id and model of the record
displayed in the background (i.e. the id and model of the url).

This caused a bug in MRP that could be reproduced as follows:
- open a manufacturing order in form view
- click on edit
- click on one of the line of the one2many, and click on the green
  icon to edit a product
- click on the update product quantity button on top of it
- the product field must be correctly filled, which was not the
  case before this rev.
2017-08-10 08:48:32 +02:00
Martin Geubelle 7524b8ef92 [FIX] web: allow passing multiple ids in call_button
Passing multiple ids wasn't correctly handled as the argument `record_id`
was wrapped in a list of list, which is not hashable.

The wrapping is now handled by the caller.
2017-05-19 15:04:16 +02:00
Aaron Bohy aa5700bb7c [REF] account_asset: convert widget to new API
Also change the view template as according to the doc, the widget
attribute is only available for field tagnames.
2017-04-11 19:44:38 +02:00
Goffin Simon 28a7bcd83c [FIX] account_asset: create move for a depreciation line
The color of the button "create_move" in a depreciation line is
green if the related move is posted, orange if it exists but not posted and
red in the other case.

opw:678905
2016-06-09 14:37:27 +02:00
Fabien Pinckaers 4c8e908b49 [IMP] Speed up app switcher loading: 645k --> 137k lossless compression for all icons 2016-02-26 11:39:38 +01:00
qsm-odoo 9b3f8246e1 [REF] account_asset: widgetonbutton widget (LESS/JS/XML)
The widget was still using gtk icons

* Delete useless template (use JS+LESS)
* JS Refactoring
2015-09-15 09:36:10 +02:00
Aaron Bohy 1d8cbf8a19 [IMP] account_asset: buttonwidget: invisible case
Instead of adding the classname oe_form_invisible to hide it, simply don't render
the button if it shouldn't be displayed.
2015-08-06 10:14:27 +02:00
Christophe Simonis 3cc8015aea [FIX] account_asset: use new js framework variables. 2015-06-03 09:15:13 +02:00
Christophe Simonis fe2b5f35a4 [MERGE] forward port of branch saas-6 up to bf1e999 2015-05-28 14:27:38 +02:00
Chirag Dodiya 6120babb45 [IMP] account_asset: new api conversion, added asset type 2015-05-08 17:30:54 +02:00
Antony Lesuisse fc70550ca2 [IMP] move html module description and icon
bzr revid: al@openerp.com-20130628100441-swpanf2jwcojygh4
2013-06-28 12:04:41 +02:00
Minh Tran 52ead43457 Changed module icons
bzr revid: mit@openerp.com-20111221173739-pl26y182tgjb1s2j
2011-12-21 18:37:39 +01:00
Minh Tran a64d3dbcbc Added modules icons for main apps
bzr revid: mit@openerp.com-20111214144815-itsfpfo68l2m0jnx
2011-12-14 15:48:15 +01:00