Skip to content

Commit

Permalink
[IMP] purchase_variant_configurator_on_confirm: pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralmau committed Jun 25, 2024
1 parent a9a8d8a commit b7bbaad
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ProductTemplate(models.Model):
_inherit = "product.template"

def _product_from_tmpl(self):
""" Creates a product in memory from template to use its methods """
"""Creates a product in memory from template to use its methods"""
return self.env["product.product"].new(
{"product_tmpl_id": self.id, "name": self.name}
)
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class PurchaseOrderLine(models.Model):

@api.onchange("product_tmpl_id")
def _onchange_product_tmpl_id_configurator(self):
""" Make use of PurchaseOrderLine onchange_product_id method with
"""Make use of PurchaseOrderLine onchange_product_id method with
a virtual product created on the fly.
"""
res = super()._onchange_product_tmpl_id_configurator()
Expand Down
6 changes: 6 additions & 0 deletions setup/purchase_variant_configurator_on_confirm/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit b7bbaad

Please sign in to comment.