Skip to content

Commit

Permalink
[IMP] product_configurator: Dedicated image for custom value
Browse files Browse the repository at this point in the history
  • Loading branch information
SirAionTech committed Feb 22, 2024
1 parent 713d3c4 commit 6095076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions product_configurator/models/product_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def onchange_val_custom_field(self):
)
uom_id = fields.Many2one(comodel_name="uom.uom", string="Unit of Measure")
image = fields.Binary()
configurator_custom_image = fields.Binary(
string="Image for custom value",
)

# TODO prevent the same attribute from being defined twice on the
# attribute lines
Expand Down
3 changes: 3 additions & 0 deletions product_configurator/views/product_attribute_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
<group>
<field name="search_ok" />
</group>
<group>
<field name="configurator_custom_image" widget="image" />
</group>
</group>
</page>
</xpath>
Expand Down

0 comments on commit 6095076

Please sign in to comment.