summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/website_user_wishlist.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-15 17:35:23 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-15 17:35:23 +0700
commitf6671dd4595af3c1075b27925f10c457854cecf8 (patch)
treefadac999707657fc3ce1b0e359e5acc69d497308 /indoteknik_custom/models/website_user_wishlist.py
parent2861ba3cd7844079ce85ad31aa1470e95de7f71d (diff)
Fitur crud cart dan wishlist
Update struktur response product
Diffstat (limited to 'indoteknik_custom/models/website_user_wishlist.py')
-rw-r--r--indoteknik_custom/models/website_user_wishlist.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/indoteknik_custom/models/website_user_wishlist.py b/indoteknik_custom/models/website_user_wishlist.py
new file mode 100644
index 00000000..a6ee35d4
--- /dev/null
+++ b/indoteknik_custom/models/website_user_wishlist.py
@@ -0,0 +1,9 @@
+from odoo import fields, models
+
+
+class WebsiteUserWishlist(models.Model):
+ _name = 'website.user.wishlist'
+ _rec_name = 'user_id'
+
+ 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")