Trịnh Anh Ngọc

Results 146 issues of Trịnh Anh Ngọc

Just discovered this stuff through the talk [**Patterns and antipatterns in Odoo module development**](https://www.odoo.com/event/odoo-experience-2022-2190/track/patterns-and-antipatterns-in-odoo-module-development-4728) in Odoo Experience 2022 and the article https://dev.to/guewen/introduction-to-odoo-components-bn0.

enhancement

@trinhanhngoc Oh, I forgot to install pydevd-odoo in V16 venv. It works after installation. Thanks _Originally posted by @auyeung112002 in https://github.com/odoo-ide/pycharm-odoo/issues/219#issuecomment-1319767307_

enhancement

https://github.com/odoo/odoo/blob/5760150213b68848ea280ba4b904b45db267c94e/odoo/addons/base/tests/common.py#L155 Upstream issue: https://youtrack.jetbrains.com/issue/PY-50066/Unresolved-attribute-reference-in-classmethod

bug of pycharm
downstream fix

**Old style** https://github.com/odoo/odoo/blob/5760150213b68848ea280ba4b904b45db267c94e/addons/sale_mrp_margin/tests/test_sale_mrp_flow.py#L28 **New style** https://github.com/odoo/odoo/blob/5760150213b68848ea280ba4b904b45db267c94e/odoo/addons/base/tests/common.py#L195

enhancement

https://github.com/odoo/odoo/blob/fa8fc5b26b948a9da4013874fb5af2d84ddb98c6/addons/account/views/partner_view.xml#L195 Code completion for xpath expr should also suggest xml tags and attributes.

enhancement

```python from typing import TypeVar _T = TypeVar('_T') class ResPartner(models.Model): _inherit = 'res.partner' def xxx(self: _T) -> _T: pass def yyy(self): x = self.xxx() # type of x should be...

bug

https://github.com/odoo/odoo/blob/9a81cf604bbbc626a0fa68219a4fe017cd781bc7/addons/sale/controllers/portal.py#L34 This continues the series of type hints #12 #194.

enhancement

https://github.com/odoo/odoo/blob/9a81cf604bbbc626a0fa68219a4fe017cd781bc7/addons/account/models/account_journal.py#L60

enhancement

https://github.com/odoo/odoo/blob/e39b2a8794840fced43793f1f45936b81c3c0c9e/addons/website/models/ir_model.py#L31 - [ ] Suppress unresolved attribute references. - [ ] Provide completion items.

enhancement

https://github.com/odoo/odoo/blob/e39b2a8794840fced43793f1f45936b81c3c0c9e/addons/website/models/ir_model.py#L28 Type of `self` should be tranformed from `base` to `website` after the if condition.

enhancement