Commit Graph
60 Commits
Author SHA1 Message Date
Kevin Baptiste 86aa7b78aa [IMP] *: introduce data-hotkey on form and modal views
Define `data-hotkey` on most used action buttons.

For the modals, the following keys are dedicated for "special"
actions:
 - Alt+G: add
 - Alt+V: save
 - Alt+Z: cancel

closes odoo/odoo#73275

Taskid: 2588233
Related: odoo/enterprise#19464
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-07-15 08:39:49 +00:00
Romain Derie 4a1c516b01 [FIX] *: search_view_id expects an id/name pair
Passing an id directly to `search_view_id` is not working. It is silently
ignored.
The framework js code expects an id/name pair, as described in the ORM doc.

Most of the time, this will be unoticed as the specified search view being
ignored, the default one will be used instead, which is often the same one as
there is only one search view.

Only 3 occurences are real misbehavior.

Note that the `name` of the pair is useless, you can just pass the ID in an
array.

Working:
'search_view_id': [123, 'search'],
'search_view_id': [123],

Not working:
'search_view_id': 123,

closes odoo/odoo#72247

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-06-17 10:38:18 +00:00
Xavier Morel 6835aeb0de [REM] core, *: deprecate <act_window> and <report>
Convert deprecated tags through the codebase.
2020-07-28 13:03:13 +00:00
Swapnesh Shah df175f7716 [IMP] product_margin: remove create and edit from views
Create and Edit Buttons are not needed on views being opened from
the Product Margin report

Fixes odoo/odoo#39069

closes odoo/odoo#39072

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-11-25 13:16:38 +00:00
Adrian Torres 4b38cc6590 [REM] *: calls to @api.multi
Multi is the default api for methods, it is not necessary to explicitly
decorate methods with it, adds clutter and most people use it because
they see that the rest of the code uses it.

Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
2019-07-17 14:13:12 +02:00
Hiral Bhavsar d3abf5c9fb [IMP] product_margin: remove actions from the controlpanel action menu
Here remove the 'binding_model' attributes from 'act_window' to
remove the action menu 'Product Margins' from the 'product.product'
model

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 3cd7ed07a2 [IMP] *: remove 'view_type' on window actions.
The old tree views don't really exist anymore, this odd pseudo-flag to
dispatch between "list" and "tree" tree views has no reason to remain.

Task 1937686

closes odoo/odoo#31243

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-06-17 11:34:17 +00:00
Xavier Morel 10f1a1a0c4 [REM] multi from ir.actions.act_window
Task 1843603

* src_model is redundant with binding_model_id
* multi -> binding_view_types (if empty => all views) (maybe should be
empty by default yo?)
* in convert, type => rec.get(type) but no @type possible on <act_window>...
* removed deprecated auto_refresh & auto_search (not used anywhere (?))

closes odoo/odoo#24738

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-05-27 12:00:39 +00:00
qsm-odoo c59380bac5 [REF] *: BS4, rename btn-default to btn-secondary
BS4 "btn-default" class was replaced with "btn-secondary", which makes
more sense.
2018-07-27 12:36:54 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Thibault Delavallée c8a313d51e [IMP] various: use odoo for imports instead of openerp and update class names 2016-08-10 15:48:07 +02:00
Yannick Tivisse 9a479e6572 [MIG] product_margin: Migrate to new API 2016-08-09 10:29:06 +02:00
Ronak Baxi 393f136509 [IMP] *: Uniformize all modal footers
The main button has classnames btn btn-primary.
Other buttons have classnames btn btn-default.
No more 'or' between the buttons.
2015-08-19 08:10:45 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Purnendu Singh (OpenERP) f82f13f44d [IMP] product_margin: improve the code
bzr revid: psi@tinyerp.com-20121030125849-q1rn3f5ish8gexf5
2012-10-30 18:28:49 +05:30
Purnendu Singh (OpenERP) 1607b1ddc7 [FIX] product_margin: Fix header translation issue
lp bug: https://launchpad.net/bugs/937856 fixed

bzr revid: psi@tinyerp.com-20121030124727-tm5vdpld7oiwpjlx
2012-10-30 18:17:27 +05:30
Twinkle Christian (OpenERP) fc1b1749a8 [IMP]Remove type field from the modules
bzr revid: tch@tinyerp.com-20120809060516-zgx3gdyv6wdshfyw
2012-08-09 11:35:16 +05:30
Fabien Pinckaers 64a9321d56 [IMP] footer on forms
bzr revid: fp@tinyerp.com-20120710164011-unqi1okf2uu8yhts
2012-07-10 18:40:11 +02:00
Raphael Collet 5133bee1d5 [FIX] in form views, replace class 'oe_highlight_on_dirty' by 'oe_highlight'
bzr revid: rco@openerp.com-20120629083024-rqhtbf9melkygg0m
2012-06-29 10:30:24 +02:00
Randhir Mayatra (OpenERP) a4b94dbee6 [USA] add cancel button
bzr revid: rma@tinyerp.com-20120627141917-bs9bg2j3dasy9n1y
2012-06-27 19:49:17 +05:30
Twinkle (OpenERP) 471037495c [IMP]Apply css class flow on wizards buttons
bzr revid: tch@tinyerp.com-20120626063119-5i93di16milljxap
2012-06-26 12:01:19 +05:30
Twinkle (OpenERP) 0e97cefe9e [IMP]Improve wizard button
bzr revid: tch@tinyerp.com-20120625100901-ucjbttxod55erqmf
2012-06-25 15:39:01 +05:30
Twinkle (OpenERP) 660cc67256 [IMP]Added highlight button on wizard
bzr revid: tch@tinyerp.com-20120620104923-z1hty740vn160fg9
2012-06-20 16:19:23 +05:30
ajay javiya (OpenERP) 4311eaa121 [REM] : Remove cancel button from wizard
bzr revid: aja@tinyerp.com-20120618091236-3e8vhdb4thokf72i
2012-06-18 14:42:36 +05:30
Fabien Pinckaers 1f885950b4 [FIX] headers
bzr revid: fp@tinyerp.com-20120609222849-gm9loztzarjyn7pl
2012-06-10 00:28:49 +02:00
Fabien Pinckaers e715b8cbce [IMP] better form views, new guidelines
bzr revid: fp@tinyerp.com-20120609153741-gkmqamwbr0s84wy6
2012-06-09 17:37:41 +02:00
Mustufa Rangwala b0f61a9546 [MERGE] merge from trunk addons
bzr revid: mra@mra-laptop-20101214130232-wqsim6966u1hilu9
bzr revid: mra@mra-laptop-20101217043732-ri8dfx38pacpruye
2010-12-17 10:07:32 +05:30
Mustufa Rangwala fd7a65d142 [FIX] Product_margin: Bug with product margin
lp bug: https://launchpad.net/bugs/689656 fixed

bzr revid: mra@mra-laptop-20101214071321-ynyrnm0hrm5jbkkd
2010-12-14 12:43:21 +05:30
uco (OpenERP) d827b2f6ea [REF]: Added remaining context changes in _constraints. Removed unnecessary checking for context from methods.
bzr revid: uco@tinyerp.com-20101213064309-vg36f1510xv2f8zb
2010-12-13 12:13:09 +05:30
uco (OpenERP) 6dd290e824 [REF]: Replace the condition 'if not context' with 'if context is None'.
bzr revid: uco@tinyerp.com-20101123070505-9i2lrqhgxzaii3zn
2010-11-23 12:35:05 +05:30
uco (OpenERP) 8035df3e11 [IMP]: Added context=None in function argument for rest modules.
bzr revid: uco@tinyerp.com-20101122103753-idv9fdaqc28rvugu
2010-11-22 16:07:53 +05:30
MTR(OpenERP) d781b93335 [IMP] product_margin, product_expiry,product_manufacturer: improve and cleaning
bzr revid: mra@mra-laptop-20100813072843-l72opp20yoiik3pg
2010-08-13 12:58:43 +05:30
sbh (Open ERP) 6de7835f1c [IMP] product_margin : Improve the python code and view
bzr revid: sbh@tinyerp.com-20100608130611-0yi56h4wjq1m4ep3
2010-06-08 18:36:11 +05:30
sbh (Open ERP) 441989a4eb Task-844 :Compute the margin int stadard price
bzr revid: sbh@tinyerp.com-20100603095031-ntssds69fn8tunvv
2010-06-03 15:20:31 +05:30
sbh (Open ERP) 57cfa6d154 [IMP] point_of_sale:Removed @summary from docstring
bzr revid: sbh@tinyerp.com-20100323052130-49zeyij8z7c7kzt0
2010-03-23 10:51:30 +05:30
uco (OpenERP) a268acb4c7 [REF] delivery, mrp, mrp_repair, point_of_sale, product_margin, slae, stock: Removed '@summary' from docstring.
bzr revid: uco@tinyerp.co.in-20100317073413-ks8i2ppev0pxm3cf
2010-03-17 13:04:13 +05:30
mso c6be2d42a3 [IMP]: stock,sale:docstrings added in the osv_memory files
bzr revid: mso@mso-20100312134255-b8h0bg1gjah1s2e1
2010-03-12 19:12:55 +05:30
mso fcaeab33ca [Merge]:Merged with parent branch
bzr revid: mso@mso-20100312071916-zat2nj2rvz5fc10t
2010-03-12 12:49:16 +05:30
mso c613516087 [IMP] stock, product_margin:Code Improvements
bzr revid: mso@mso-20100312065144-npkjl2p4vsyg6qgm
2010-03-12 12:21:44 +05:30
mso 149920642d [IMP] product_margin,stock:Introduce act_window by replacing action in wizard & Code optimization in stock
bzr revid: mso@mso-20100312054152-ytyj9c8woj1kp2r9
2010-03-12 11:11:52 +05:30
Harry (Open ERP) bdc78703ea [MERGE]
bzr revid: hmo@tinyerp.com-20100311142449-gfhiuwigpchfr074
2010-03-11 19:54:49 +05:30
mso d4ac06e0c7 [IMP] product_margin:Changes in wizard by converting them into OSV memory
bzr revid: mso@mso-20100309120043-kadkz0b2xdo47c3k
2010-03-09 17:30:43 +05:30
Stephane Wirtel fb3ef7a2f4 [FIX] Change the year of the copyright
bzr revid: stephane@openerp.com-20100112091839-a6p7tenhb4e4zxyx
2010-01-12 10:18:39 +01:00
PSO(OpenERP) eb0b928cc0 Changed licencing terms
bzr revid: hda@tinyerp.com-20091014111534-1vtk21rz8byhszzf
2009-10-14 16:45:34 +05:30