Files
app-odoo/app_base_chinese/models/stock_location.py
2022-12-28 18:30:25 +08:00

13 lines
300 B
Python

# -*- coding: utf-8 -*-
import logging
from odoo import api, fields, models, _
_logger = logging.getLogger(__name__)
class Location(models.Model):
_inherit = "stock.location"
complete_name = fields.Char("Full Location Name", compute='_compute_complete_name', store=True, translate=True)