Trịnh Anh Ngọc
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...
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' ], } ```
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 ```
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 ```
E.g. when creating `res_partner_views.xml`, the following template will be inserted automatically: ```xml ... res.partner ```
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' ```
https://www.odoo.com/documentation/16.0/developer/reference/backend/orm.html#odoo.models.Model.name_search
  Since Odoo 14, we cannot do a dynamic attribute assignment on a recordset. Ref: https://github.com/odoo/odoo/pull/51075 cc @anhbtit
Ref: https://github.com/odoo/odoo/pull/109065
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