TIP: You can type at any time to perform a new search.

Security findings

Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Accounting/Localizations/Point of Sale
Folder size
0.06 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-09-28 18:31:21
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Khumam Alzagim, Yousef Alnashef (alny)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module brings the technical requirement for the Pakistan regulation.
Install this if you are using the Point of Sale app in Pakistan.
    

Code Analysis info_outline

Views touched (9)
XML IDNameModelTypeStatus
l10n_pk_edi_pos.pos_order_receipt_footer l10n_pk_edi_pos.pos_order_receipt_footer ir.ui.view qweb Inherits point_of_sale.pos_order_receipt_footer
l10n_pk_edi_pos.pos_order_receipt_header l10n_pk_edi_pos.pos_order_receipt_header ir.ui.view qweb Inherits point_of_sale.pos_order_receipt_header
pos_payment_method_view_form pos.payment.method.form.inherit.l10n.pk.edi.pos pos.payment.method form Inherits point_of_sale.pos_payment_method_view_form
product_template_form_view product.template.form.inherit.l10n.pk.edi.pos product.template form Inherits point_of_sale.product_template_form_view
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
res_config_settings_view_form res.config.settings.view.form.inherit.l10n.pk.edi.pos res.config.settings form Inherits point_of_sale.res_config_settings_view_form
view_pos_order_filter pos.order.list.select.inherit.l10n.pk.edi.pos pos.order list Inherits point_of_sale.view_pos_order_filter
view_pos_order_tree pos.order.list.inherit.l10n.pk.edi.pos pos.order list Inherits point_of_sale.view_pos_order_tree
view_pos_pos_form pos.order.form.inherit.l10n.pk.edi.pos pos.order form Inherits point_of_sale.view_pos_pos_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (7)
  • l10n_pk_edi_pos_charge_service_fee Boolean
    help='Add the FBR service fee to the customer receipt.' string='Charge Service Fee'
  • l10n_pk_edi_pos_enabled Boolean
    help='Submit your orders to the FBR to generate compliant receipts.' string='Pakistan electronic receipts (FBR)'
  • l10n_pk_edi_pos_identifier Integer
    help='Shop ID provided by the FBR when registering your point of sale.' string='Shop ID'
  • l10n_pk_edi_pos_sandbox Boolean
    help='Submit orders to the FBR sandbox environment for testing.' string='Use Sandbox Environment'
  • l10n_pk_edi_pos_service_fee_product_id Many2one → product.product
    comodel_name='product.product' default=<expr> help='Product used to charge the FBR service fee on the receipt.' string='Service Fee Product'
  • l10n_pk_edi_pos_test_identifier Integer
    help='Shop ID provided by the FBR for the sandbox environment.' string='Test Shop ID'
  • l10n_pk_edi_pos_token Char
    help='Shop Token provided by the FBR when registering your point of sale.' string='Shop Token'
Public methods (0)

No public methods.

New fields (6)
  • l10n_pk_edi_pos_enabled Boolean
    related='config_id.l10n_pk_edi_pos_enabled'
  • l10n_pk_edi_pos_error Text
    copy=False help='Error returned by the FBR when the order submission failed.' readonly=True string='FBR Error'
  • l10n_pk_edi_pos_invoice_number Char
    copy=False help='Invoice number returned by the FBR after submitting this order.' readonly=True string='FBR Invoice Number'
  • l10n_pk_edi_pos_payload Binary
    compute='_compute_l10n_pk_edi_pos_payload' help='JSON payload submitted to the FBR, downloadable while the submission fails.' string='FBR Payload'
  • l10n_pk_edi_pos_qr Char
    copy=False help='QR code content returned by the FBR after submitting this order.' readonly=True string='FBR QR'
  • l10n_pk_edi_pos_state Selection
    copy=False default='to_send' help='State of the order submission to the FBR.' readonly=True selection=[('to_send', 'To Send'), ('successful', 'Successful'), ('unsuccessful', 'Unsuccessful'), ('successful_demo', 'Successful (Demo)')] string='FBR State'
Public methods (3)
  • action_l10n_pk_edi_pos_resend(self)
  • action_pos_order_paid(self)
  • download_l10n_pk_edi_pos_payload(self)

New fields (0)

No new fields.

Public methods (1)
  • order_receipt_generate_data(self, basic_receipt=False)

New fields (2)
  • country_code Char
    depends=['company_id.country_id'] related='company_id.country_id.code'
  • l10n_pk_edi_pos_fbr_payment_code Selection
    help='Payment code reported to the FBR for this payment method.' selection=[('1', 'Cash'), ('2', 'Card'), ('6', 'Cheque')] string='FBR Payment Code'
Public methods (0)

No public methods.

New fields (1)
  • l10n_pk_is_fbr_3rd_schedule Boolean
    help='Product taxed on its printed MRP under the FBR 3rd Schedule.' string='Is FBR 3rd Schedule Product'
Public methods (0)

No public methods.

New fields (7)
  • pos_l10n_pk_edi_pos_charge_service_fee Boolean
    readonly=False related='pos_config_id.l10n_pk_edi_pos_charge_service_fee'
  • pos_l10n_pk_edi_pos_enabled Boolean
    readonly=False related='pos_config_id.l10n_pk_edi_pos_enabled'
  • pos_l10n_pk_edi_pos_identifier Integer
    readonly=False related='pos_config_id.l10n_pk_edi_pos_identifier'
  • pos_l10n_pk_edi_pos_sandbox Boolean
    readonly=False related='pos_config_id.l10n_pk_edi_pos_sandbox'
  • pos_l10n_pk_edi_pos_service_fee_product_id Many2one
    readonly=False related='pos_config_id.l10n_pk_edi_pos_service_fee_product_id'
  • pos_l10n_pk_edi_pos_test_identifier Integer
    readonly=False related='pos_config_id.l10n_pk_edi_pos_test_identifier'
  • pos_l10n_pk_edi_pos_token Char
    readonly=False related='pos_config_id.l10n_pk_edi_pos_token'
Public methods (0)

No public methods.