Browse Source

Jun 13: [FIX] Bug fixed 'product_multi_uom'

pull/384/head
Cybrosys Technologies 2 months ago
parent
commit
f3c249f061
  1. 2
      product_multi_uom/__manifest__.py
  2. 6
      product_multi_uom/doc/RELEASE_NOTES.md
  3. 2
      product_multi_uom/models/secondary_uom_line.py
  4. BIN
      product_multi_uom/static/description/assets/screenshots/2.png
  5. BIN
      product_multi_uom/static/description/assets/screenshots/3.png
  6. BIN
      product_multi_uom/static/description/assets/screenshots/6.png
  7. 2
      product_multi_uom/views/product_product_views.xml

2
product_multi_uom/__manifest__.py

@ -21,7 +21,7 @@
############################################################################# #############################################################################
{ {
'name': "Product Multi UoM", 'name': "Product Multi UoM",
'version': '18.0.1.0.0', 'version': '18.0.1.0.1',
'category': 'Sales', 'category': 'Sales',
'summary': 'This module help to sell a product with multiple Uom category', 'summary': 'This module help to sell a product with multiple Uom category',
'description': "This versatile module empowers your sales strategy by " 'description': "This versatile module empowers your sales strategy by "

6
product_multi_uom/doc/RELEASE_NOTES.md

@ -4,3 +4,9 @@
#### Version 18.0.1.0.0 #### Version 18.0.1.0.0
##### ADD ##### ADD
- Initial Commit for Product Multi UoM - Initial Commit for Product Multi UoM
#### 12.06.2025
#### Version 18.0.1.0.1
##### Update
- Updated the field position in the product_product model and the _onchange_secondary_uom_id function in the
secondary_uom_line model. Also updated the index images.

2
product_multi_uom/models/secondary_uom_line.py

@ -54,7 +54,7 @@ class SecondaryUomLine(models.Model):
f" {self.secondary_uom_ratio} " f" {self.secondary_uom_ratio} "
f"{self.product_id.uom_id.name}") f"{self.product_id.uom_id.name}")
if self._context.get('params'): if self._context.get('params'):
sec_uom_ids = self.env['product.template'].browse( sec_uom_ids = self.env['product.product'].browse(
self._context.get('params').get('id')).secondary_uom_ids.mapped( self._context.get('params').get('id')).secondary_uom_ids.mapped(
'secondary_uom_id.id') 'secondary_uom_id.id')
if self.secondary_uom_id.id in sec_uom_ids: if self.secondary_uom_id.id in sec_uom_ids:

BIN
product_multi_uom/static/description/assets/screenshots/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 99 KiB

BIN
product_multi_uom/static/description/assets/screenshots/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 111 KiB

BIN
product_multi_uom/static/description/assets/screenshots/6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 115 KiB

2
product_multi_uom/views/product_product_views.xml

@ -7,7 +7,7 @@
<field name="model">product.product</field> <field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/> <field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='uom_po_id']" position="after"> <xpath expr="//field[@name='product_tooltip']" position="after">
<field name="is_need_secondary_uom" groups="uom.group_uom"/> <field name="is_need_secondary_uom" groups="uom.group_uom"/>
<field name="secondary_uom_ids" <field name="secondary_uom_ids"
invisible="is_need_secondary_uom == False" invisible="is_need_secondary_uom == False"

Loading…
Cancel
Save