Skip to content

[ADD] pos_receipt: allow custom receipt layout with preview #904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

niyp-odoo
Copy link

@niyp-odoo niyp-odoo commented Jul 31, 2025

Before this commit:
POS receipts had only one fixed layout.
Logo, header, and footer fields were not in one place.

After this commit:
Users can choose from 3 receipt layouts: light, lined, and boxes.
Header, footer, and logo can be updated from POS settings.
A live preview shows how the receipt will look.

Impact:
Easier receipt setup for users.
Helps businesses match their branding.
Reduces errors by showing preview before saving.

@robodoo
Copy link

robodoo commented Jul 31, 2025

Pull request status dashboard

@niyp-odoo niyp-odoo force-pushed the 18.0-POS-receipt-niyp branch 2 times, most recently from 0c8c020 to cc52a23 Compare August 7, 2025 13:57
@niyp-odoo niyp-odoo changed the title [ADD] pos_receipt: enable flexible and user-friendly receipt customization [ADD] pos_receipt: allow custom receipt layout with preview Aug 7, 2025
@niyp-odoo niyp-odoo force-pushed the 18.0-POS-receipt-niyp branch from cc52a23 to 6e0ece3 Compare August 7, 2025 17:29
@niyp-odoo niyp-odoo force-pushed the 18.0-POS-receipt-niyp branch from 6e0ece3 to e0d4c8e Compare August 18, 2025 05:58
def _compute_receipt_preview(self):
if self.receipt_layout == "lined":

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this loop over self? If not why?

},

get order() {
return this.pos.get_order()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return this.pos.get_order()
return this.pos.get_order();

Before this commit:
POS receipts had only one fixed layout.
Logo, header, and footer fields were not in one place.

After this commit:
Users can choose from 3 receipt layouts: light, lined, and boxes.
Header, footer, and logo can be updated from POS settings.
A live preview shows how the receipt will look.

Impact:
Easier receipt setup for users.
Helps businesses match their branding.
Reduces errors by showing preview before saving.
@niyp-odoo niyp-odoo force-pushed the 18.0-POS-receipt-niyp branch from e0d4c8e to 7475cf4 Compare August 18, 2025 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants