/** @odoo-module */

import { PosStore } from "@point_of_sale/app/store/pos_store";
import { patch } from "@web/core/utils/patch";

patch(PosStore.prototype, {
    async _processData(loadedData) {
        await super._processData(...arguments);
        // We don't necessarily need to load the full image data for all partners on load
        // because it would be heavy. We only need to send it back when saving.
        // However, if we want to show existing images in the edit screen, we might need them.
        // But standard Odoo doesn't load full images for partners in POS to save bandwidth.
        // It usually loads small avatars.
        // For now, let's NOT load them by default to avoid performance issues.
        // The edit screen will show empty if not modified in current session, 
        // or we could fetch them on demand (like `partnerImageUrl` does).
        // BUT, `saveChanges` in `partner_editor.js` sends `processedChanges`.
        // If we want to support editing, we need to handle the fields.
    }
});
