diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-01-04 14:52:24 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-01-04 14:52:24 +0700 |
| commit | dd5fcceb381eccbc1b08fd7afb08f8e6f15d04be (patch) | |
| tree | d1ee81a002f87f1de3d7f03801c2f3a8c3283f57 /indoteknik_custom | |
| parent | db2f280683b29ac5d32158f3fab0f3df671935e9 (diff) | |
update api wishlish for variant and product
Diffstat (limited to 'indoteknik_custom')
| -rw-r--r-- | indoteknik_custom/models/website_user_wishlist.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/website_user_wishlist.xml | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/website_user_wishlist.py b/indoteknik_custom/models/website_user_wishlist.py index a6ee35d4..0a7bcf69 100644 --- a/indoteknik_custom/models/website_user_wishlist.py +++ b/indoteknik_custom/models/website_user_wishlist.py @@ -7,3 +7,4 @@ class WebsiteUserWishlist(models.Model): user_id = fields.Many2one('res.users', string='User', help="User ID yang terdaftar di table res.users") product_id = fields.Many2one('product.template', string='Product', help="Product yang terdaftar di table product.template") + variant_id = fields.Many2one('product.product', string='Variant', help="Product yang terdaftar di table product.product") diff --git a/indoteknik_custom/views/website_user_wishlist.xml b/indoteknik_custom/views/website_user_wishlist.xml index 998877b2..89cae263 100755 --- a/indoteknik_custom/views/website_user_wishlist.xml +++ b/indoteknik_custom/views/website_user_wishlist.xml @@ -13,6 +13,7 @@ <tree> <field name="user_id"/> <field name="product_id"/> + <field name="variant_id"/> </tree> </field> </record> @@ -27,6 +28,7 @@ <group> <field name="user_id"/> <field name="product_id"/> + <field name="variant_id"/> </group> <group></group> </group> |
