Ran
|
Files
7
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci-com
<a href="https://github.com/OCA/pylint-odoo/commit/<a class=hub.com/OCA/pylint-odoo/commit/27ad80ea937bf8afc85c3d719a62ea95efd4cb52">27ad80ea9<a href="https://github.com/OCA/pylint-odoo/commit/27ad80ea937bf8afc85c3d719a62ea95efd4cb52">">[ADD] context-overridden: Better using kwargs instead of dictionary (#256) More info about see docstring of the method: - https://github.com/odoo/odoo/blob/</a><a class="double-link" href="https://github.com/OCA/pylint-odoo/commit/<a class="double-link" href="https://github.com/OCA/pylint-odoo/commit/ff3064258a320e4008b3fb52a149e6751ae1e7f5">ff3064258</a>">ff3064258</a><a href="https://github.com/OCA/pylint-odoo/commit/27ad80ea937bf8afc85c3d719a62ea95efd4cb52">/odoo/models.py#L5086-L5105 Using - `self.with_context({'key': 'value'})` The original context is overridden It should be: - `self.with_context(**{'key': 'value'})` - `self.with_context(key='value')` If you need to override the full context only silent this check using: - `self.with_context({'key': 'value'}) # pylint: disable=context-overridden` In order to allow an explicit overridden
1494 of 1513 relevant lines covered (98.74%)
0.99 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|