Trịnh Anh Ngọc

Results 146 issues of Trịnh Anh Ngọc

Model `sale.order`: ```python transaction_ids = fields.Many2many( comodel_name='payment.transaction', relation='sale_order_transaction_rel', column1='sale_order_id', column2='transaction_id', string="Transactions", copy=False, readonly=True) ``` Model `payment.transaction`: ```python sale_order_ids = fields.Many2many('sale.order', 'sale_order_transaction_rel', 'transaction_id', 'sale_order_id', string='Sales Orders', copy=False, readonly=True) ``` If the...

enhancement

E.g. when creating `custom_module/views/res_partner_views.xml`, the `data` values in `custom_module/__manifest__.py` will be updated automatically: ```python { 'data': [ 'views/res_partner_views.xml' ], } ```

enhancement

E.g. when creating `custom_module/models/res_partner.py`, the following import will be inserted into `custom_module/models/__init__.py` automatically: ```python from . import res_partner.py ```

enhancement

E.g. when creating `ir.model.access.csv`, the following template will be inserted automatically: ```csv id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink ```

enhancement

E.g. when creating `res_partner_views.xml`, the following template will be inserted automatically: ```xml ... res.partner ```

enhancement

E.g. when creating `res_partner.py`, the following template will be inserted automatically: ```python from odoo import models, fields class ResPartner(models.Model): _inherit = 'res.partner' ```

enhancement

https://www.odoo.com/documentation/16.0/developer/reference/backend/orm.html#odoo.models.Model.name_search

enhancement

![](https://user-images.githubusercontent.com/26465107/222632407-f87c06b3-7138-48df-a43e-bf11f0722f55.png) ![error](https://user-images.githubusercontent.com/11208291/222662534-86a66713-5417-4538-b660-44cdfd1386ed.jpg) Since Odoo 14, we cannot do a dynamic attribute assignment on a recordset. Ref: https://github.com/odoo/odoo/pull/51075 cc @anhbtit

enhancement
inspection

Ref: https://github.com/odoo/odoo/pull/109065

enhancement
inspection

For example, `t-esc` and `t-raw` are deprecated since Odoo 15, use `t-out` instead. https://www.odoo.com/documentation/16.0/developer/reference/frontend/qweb.html#deprecated-output-directives

enhancement
inspection