def METHOD_NAME(self, vals, code=False):
    sub_locations = super(StockWarehouse, self).METHOD_NAME(vals, code)
    if self.env["res.company"]._check_is_l10n_ro_record(
        company=vals.get("company_id")
    ):
        code = vals.get("code") or code or ""
        code = code.replace(" ", "").upper()
        company_id = vals.get(
            "company_id", self.default_get(["company_id"])["company_id"]
        )
        sub_locations.update(
            {
                "l10n_ro_wh_consume_loc_id": {
                    "name": _("Consume"),
                    "active": True,
                    "usage": "consume",
                    "barcode": self._valid_barcode(code + "-CONSUME", company_id),
                },
                "l10n_ro_wh_usage_loc_id": {
                    "name": _("Usage"),
                    "active": True,
                    "usage": "usage_giving",
                    "barcode": self._valid_barcode(code + "-USAGE", company_id),
                },
            }
        )
    return sub_locations