from trytond.pool import PoolMeta
from trytond.model import fields
from trytond.pyson import Eval

__all__ = ['Location']
__metaclass__ = PoolMeta


class Location:
    __name__ = "stock.location"

    return_address = fields.Many2One(
        "party.address", "Return Address", states={
            'invisible': Eval('type') != 'warehouse',
            'readonly': ~Eval('active'),
        }, depends=['type', 'active'],
        help="Return address to print on shipping label"
    )

from trytond.pool import PoolMeta
from trytond.model import fields
from trytond.pyson import Eval

__all__ = ['Location']
__metaclass__ = PoolMeta


class Location:
    __name__ = "stock.location"

    return_address = fields.Many2One(
        "party.address", "Return Address", states={
            'invisible': Eval('type') != 'warehouse',
            'readonly': ~Eval('active'),
        }, depends=['type', 'active'],
        help="Return undelivered shipments to this address"
    )

Rename help text of return address field
Rename help text of return address field

  from trytond.pool import PoolMeta
  from trytond.model import fields
  from trytond.pyson import Eval
  
  __all__ = ['Location']
  __metaclass__ = PoolMeta
  
  
  class Location:
      __name__ = "stock.location"
  
      return_address = fields.Many2One(
          "party.address", "Return Address", states={
              'invisible': Eval('type') != 'warehouse',
              'readonly': ~Eval('active'),
          }, depends=['type', 'active'],
-         help="Return address to print on shipping label"
+         help="Return undelivered shipments to this address"
      )
  
Rename help text of return address field
## Code Before:
from trytond.pool import PoolMeta
from trytond.model import fields
from trytond.pyson import Eval

__all__ = ['Location']
__metaclass__ = PoolMeta


class Location:
    __name__ = "stock.location"

    return_address = fields.Many2One(
        "party.address", "Return Address", states={
            'invisible': Eval('type') != 'warehouse',
            'readonly': ~Eval('active'),
        }, depends=['type', 'active'],
        help="Return address to print on shipping label"
    )

## Instruction:
Rename help text of return address field
## Code After:
from trytond.pool import PoolMeta
from trytond.model import fields
from trytond.pyson import Eval

__all__ = ['Location']
__metaclass__ = PoolMeta


class Location:
    __name__ = "stock.location"

    return_address = fields.Many2One(
        "party.address", "Return Address", states={
            'invisible': Eval('type') != 'warehouse',
            'readonly': ~Eval('active'),
        }, depends=['type', 'active'],
        help="Return undelivered shipments to this address"
    )
