
from odoo import fields, models


class AccountMoveLine(models.Model):

    _inherit = 'account.move.line'

    date_range_fm_id = fields.Many2one(
        related='move_id.date_range_fm_id',
        store=True, copy=False)


from odoo import fields, models


class AccountMoveLine(models.Model):

    _inherit = 'account.move.line'

    date_range_fm_id = fields.Many2one(
        related='move_id.date_range_fm_id',
    )

Remove unneeded and inefficient "store=True"
[FIX] Remove unneeded and inefficient "store=True"

  
  from odoo import fields, models
  
  
  class AccountMoveLine(models.Model):
  
      _inherit = 'account.move.line'
  
      date_range_fm_id = fields.Many2one(
          related='move_id.date_range_fm_id',
-         store=True, copy=False)
+     )
  
Remove unneeded and inefficient "store=True"
## Code Before:

from odoo import fields, models


class AccountMoveLine(models.Model):

    _inherit = 'account.move.line'

    date_range_fm_id = fields.Many2one(
        related='move_id.date_range_fm_id',
        store=True, copy=False)

## Instruction:
Remove unneeded and inefficient "store=True"
## Code After:

from odoo import fields, models


class AccountMoveLine(models.Model):

    _inherit = 'account.move.line'

    date_range_fm_id = fields.Many2one(
        related='move_id.date_range_fm_id',
    )
