hunk.code_window:     name = fields.Char('Description', required=True)
       date = fields.Date('Date', required=True, index=True, default=fields.Date.context_today)
       amount = fields.Monetary('Amount', required=True, default=0.0)
       unit_amount = fields.Float('Quantity', default=0.0)
       account_id = fields.Many2one('account.analytic.account', 'Analytic Account', required=True, ondelete='restrict', index=True)
       partner_id = fields.Many2one('res.partner', string='Partner')
       user_id = fields.Many2one('res.users', string='User', default=_default_user)
       tag_ids = fields.Many2many('account.analytic.tag', 'account_analytic_line_tag_rel', 'line_id', 'tag_id', string='Tags', copy=True)
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:     product_uom_id = fields.Many2one('uom.uom', string='Unit of Measure')
  
hunk.file_path: addons/analytic/models/analytic_account.py
hunk.type: add
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo import fields, models
  
  class SomeObj(models.Model):
      _name = 'test_access_right.some_obj'
  
      val = fields.Integer()
  
  
  class Container(models.Model):
      _name = 'test_access_right.container'
  
      some_ids = fields.Many2many('test_access_right.some_obj', 'test_access_right_rel', 'container_id', 'some_id')
  