Browse Source

Feb 12 [UPDT] : Updated 'customer_product_qrcode'

pull/352/merge
AjmalCybro 2 months ago
parent
commit
61d6b68ccd
  1. 2
      customer_product_qrcode/__manifest__.py
  2. 6
      customer_product_qrcode/doc/RELEASE_NOTES.md
  3. 2
      customer_product_qrcode/models/product_product.py
  4. 2
      customer_product_qrcode/report/report_action.xml

2
customer_product_qrcode/__manifest__.py

@ -20,7 +20,7 @@
#############################################################################
{
'name': 'Customer and Product QR Code Generator',
'version': '17.0.1.0.0',
'version': '17.0.1.0.1',
'category': 'Extra Tools',
'summary': 'Generate Unique QR Codes for Customers and Products',
'description': '''QR Code, QR Code Generator, Odoo QR Code Generator,

6
customer_product_qrcode/doc/RELEASE_NOTES.md

@ -4,3 +4,9 @@
#### Version 17.0.1.0.0
#### ADD
- Initial commit for Customer and Product QR Code Generator
#### 03.02.2025
#### Version 17.0.1.0.1
##### UPDT
- Bug Fix-Solved the issue due to unwanted report action linking in the model

2
customer_product_qrcode/models/product_product.py

@ -71,7 +71,7 @@ class ProductProduct(models.Model):
'customer_product_qr.config.product_prefix')
if not prefix:
raise UserError(
_('Set A Customer Prefix In General Settings'))
_('Set A Product Prefix In General Settings'))
prefix = str(prefix)
self.sequence = prefix + self.env['ir.sequence'].next_by_code(
'product.product') or '/'

2
customer_product_qrcode/report/report_action.xml

@ -10,7 +10,6 @@
<field name="report_file">customer_product_qrcode.customer_qr_template</field>
<field name="paperformat_id" ref="customer_product_qrcode.customer_badge_paperformat"/>
<field name="print_report_name">'%s - Badge' % object.name</field>
<field name="binding_model_id" ref="model_res_partner"/>
<field name="binding_type">report</field>
</record>
<!-- report action for product-->
@ -22,7 +21,6 @@
<field name="report_file">customer_product_qrcode.customer_qr_template</field>
<field name="paperformat_id" ref="customer_product_qrcode.customer_badge_paperformat"/>
<field name="print_report_name">'%s - Badge' % object.name</field>
<field name="binding_model_id" ref="model_product_product"/>
<field name="binding_type">report</field>
</record>
</data>

Loading…
Cancel
Save