From 803e4f8b3cf9c1d6a43a354023edc1e065f4121e Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 17:21:18 +0700 Subject: initial commit 2 --- indoteknik_custom/__init__.py | 1 + indoteknik_custom/__manifest__.py | 33 ++++++++++ indoteknik_custom/models/__init__.py | 9 +++ indoteknik_custom/models/coupon_program.py | 20 ++++++ .../models/product_public_category.py | 11 ++++ indoteknik_custom/models/product_template.py | 19 ++++++ indoteknik_custom/models/x_banner_banner.py | 20 ++++++ indoteknik_custom/models/x_banner_category.py | 11 ++++ indoteknik_custom/models/x_biaya_kirim.py | 15 +++++ indoteknik_custom/models/x_manufactures.py | 34 ++++++++++ .../models/x_partner_purchase_order.py | 13 ++++ indoteknik_custom/models/x_product_tags.py | 9 +++ indoteknik_custom/security/ir.model.access.csv | 7 +++ indoteknik_custom/views/coupon_program.xml | 24 +++++++ .../views/product_public_category.xml | 34 ++++++++++ indoteknik_custom/views/product_template.xml | 40 ++++++++++++ indoteknik_custom/views/vit_kecamatan.xml | 56 +++++++++++++++++ indoteknik_custom/views/vit_kelurahan.xml | 58 +++++++++++++++++ indoteknik_custom/views/vit_kota.xml | 58 +++++++++++++++++ indoteknik_custom/views/x_banner_banner.xml | 62 ++++++++++++++++++ indoteknik_custom/views/x_banner_category.xml | 54 ++++++++++++++++ indoteknik_custom/views/x_biaya_kirim.xml | 64 +++++++++++++++++++ indoteknik_custom/views/x_manufactures.xml | 73 ++++++++++++++++++++++ .../views/x_partner_purchase_order.xml | 56 +++++++++++++++++ indoteknik_custom/views/x_product_tags.xml | 50 +++++++++++++++ 25 files changed, 831 insertions(+) create mode 100644 indoteknik_custom/__init__.py create mode 100644 indoteknik_custom/__manifest__.py create mode 100644 indoteknik_custom/models/__init__.py create mode 100644 indoteknik_custom/models/coupon_program.py create mode 100644 indoteknik_custom/models/product_public_category.py create mode 100644 indoteknik_custom/models/product_template.py create mode 100644 indoteknik_custom/models/x_banner_banner.py create mode 100644 indoteknik_custom/models/x_banner_category.py create mode 100644 indoteknik_custom/models/x_biaya_kirim.py create mode 100644 indoteknik_custom/models/x_manufactures.py create mode 100644 indoteknik_custom/models/x_partner_purchase_order.py create mode 100644 indoteknik_custom/models/x_product_tags.py create mode 100644 indoteknik_custom/security/ir.model.access.csv create mode 100644 indoteknik_custom/views/coupon_program.xml create mode 100644 indoteknik_custom/views/product_public_category.xml create mode 100644 indoteknik_custom/views/product_template.xml create mode 100644 indoteknik_custom/views/vit_kecamatan.xml create mode 100644 indoteknik_custom/views/vit_kelurahan.xml create mode 100644 indoteknik_custom/views/vit_kota.xml create mode 100644 indoteknik_custom/views/x_banner_banner.xml create mode 100644 indoteknik_custom/views/x_banner_category.xml create mode 100644 indoteknik_custom/views/x_biaya_kirim.xml create mode 100644 indoteknik_custom/views/x_manufactures.xml create mode 100644 indoteknik_custom/views/x_partner_purchase_order.xml create mode 100644 indoteknik_custom/views/x_product_tags.xml diff --git a/indoteknik_custom/__init__.py b/indoteknik_custom/__init__.py new file mode 100644 index 00000000..9a7e03ed --- /dev/null +++ b/indoteknik_custom/__init__.py @@ -0,0 +1 @@ +from . import models \ No newline at end of file diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py new file mode 100644 index 00000000..fb309c56 --- /dev/null +++ b/indoteknik_custom/__manifest__.py @@ -0,0 +1,33 @@ +{ + 'name': 'Custom Indoteknik', + 'version': '1.0', + 'category': '', + 'sequence': 1, + 'summary': 'Custom Indoteknik', + 'description': '', + 'author': 'Rafi Zadanly', + 'website': '', + 'images': ['assets/favicon.ico'], + 'depends': ['base', 'coupon', 'delivery', 'sale', 'sale_management', 'vit_kelurahan'], + 'data': [ + 'security/ir.model.access.csv', + 'views/coupon_program.xml', + 'views/product_public_category.xml', + 'views/product_template.xml', + 'views/vit_kelurahan.xml', + 'views/vit_kecamatan.xml', + 'views/vit_kota.xml', + 'views/x_banner_banner.xml', + 'views/x_banner_category.xml', + 'views/x_biaya_kirim.xml', + 'views/x_manufactures.xml', + 'views/x_partner_purchase_order.xml', + 'views/x_product_tags.xml', + ], + 'demo': [], + 'css': [], + 'installable': True, + 'application': True, + 'auto_install': False, + 'license': '', +} diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py new file mode 100644 index 00000000..2679aa23 --- /dev/null +++ b/indoteknik_custom/models/__init__.py @@ -0,0 +1,9 @@ +from . import x_banner_banner +from . import x_banner_category +from . import x_biaya_kirim +from . import x_manufactures +from . import coupon_program +from . import product_public_category +from . import product_template +from . import x_partner_purchase_order +from . import x_product_tags diff --git a/indoteknik_custom/models/coupon_program.py b/indoteknik_custom/models/coupon_program.py new file mode 100644 index 00000000..4c839c9f --- /dev/null +++ b/indoteknik_custom/models/coupon_program.py @@ -0,0 +1,20 @@ +from odoo import fields, models + + +class CouponProgram(models.Model): + _inherit = "coupon.program" + + x_studio_banner_promo = fields.Binary(string="Banner Promo") + x_studio_field_2Ul77 = fields.Binary(string="Icon Program Promo 2") + x_studio_field_Ifopn = fields.Binary(string="Icon Program Promo") + x_studio_field_xaRIr = fields.One2many( + comodel_name="x_banner.banner", + inverse_name="x_studio_field_7ppSi", + string="New One2many" + ) + x_studio_field_xo3cl = fields.One2many( + comodel_name="x_banner.banner", + inverse_name="x_studio_field_7ppSi", + string="Relasi Banner" + ) + x_studio_image_promo = fields.Binary(string="Image Promo") diff --git a/indoteknik_custom/models/product_public_category.py b/indoteknik_custom/models/product_public_category.py new file mode 100644 index 00000000..bb661772 --- /dev/null +++ b/indoteknik_custom/models/product_public_category.py @@ -0,0 +1,11 @@ +from odoo import fields, models + +class ProductPublicCategory(models.Model): + _inherit = "product.public.category" + + x_studio_field_4qhoN = fields.Boolean(string="Tampil di Index") + # x_studio_field_5RdHI = fields.Many2many("product.template", string="Product Template") + x_studio_field_7bVEO = fields.Many2many("x_banner.banner", string="Banner Index") + x_studio_field_BfNp2 = fields.Char(string="Nama Alias") + x_studio_field_d1HS4 = fields.Char(string="Name 2") + x_studio_field_f54P2 = fields.Char(string="Name 3") diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py new file mode 100644 index 00000000..b2816d3f --- /dev/null +++ b/indoteknik_custom/models/product_template.py @@ -0,0 +1,19 @@ +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + x_studio_field_tGhJR = fields.Many2many('x_product_tags', string="Product Tags") + x_manufacture = fields.Many2one( + comodel_name="x_manufactures", + string="Manufactures" + ) + x_model_product = fields.Char(string="Model Produk") + x_product_manufacture = fields.Many2one( + comodel_name="x_manufactures", + string="Manufacture" + ) + x_lazada = fields.Text(string="Lazada") + x_tokopedia = fields.Text(string="Tokopedia") + diff --git a/indoteknik_custom/models/x_banner_banner.py b/indoteknik_custom/models/x_banner_banner.py new file mode 100644 index 00000000..a402789a --- /dev/null +++ b/indoteknik_custom/models/x_banner_banner.py @@ -0,0 +1,20 @@ +from odoo import fields, models + + +class XBannerBanner(models.Model): + _name = "x_banner.banner" + _description = "Banner" + _rec_name = "x_name" + + x_name = fields.Char(string="Name") + x_url_banner = fields.Char(string="URL Banner") + x_banner_image = fields.Binary(string="Image") + x_banner_category = fields.Many2one('x_banner.category', string="Banner Category") + # x_banner_tags = fields.Many2many('blog.tag', string="Banner Tags") + x_relasi_manufacture = fields.Many2one('x_manufactures', string="Relasi Merek") + x_sequence_banner = fields.Integer(string="Sequence") + x_status_banner = fields.Selection([ + ('tayang', 'Tayang'), + ('tidak_tayang', 'Tidak Tayang') + ], string="Status") + x_studio_field_7ppSi = fields.Many2one('coupon.program', string="Coupon Program") \ No newline at end of file diff --git a/indoteknik_custom/models/x_banner_category.py b/indoteknik_custom/models/x_banner_category.py new file mode 100644 index 00000000..7c91bd78 --- /dev/null +++ b/indoteknik_custom/models/x_banner_category.py @@ -0,0 +1,11 @@ +from odoo import fields, models + + +class XBannerCategory(models.Model): + _name = "x_banner.category" + _description = "Banner Category" + _rec_name = "x_name" + + x_name = fields.Char(string="Name") + x_banner_subtitle = fields.Char(string="Sub Title") + x_studio_field_KKVl4 = fields.Char(string="URL") diff --git a/indoteknik_custom/models/x_biaya_kirim.py b/indoteknik_custom/models/x_biaya_kirim.py new file mode 100644 index 00000000..2869d5f3 --- /dev/null +++ b/indoteknik_custom/models/x_biaya_kirim.py @@ -0,0 +1,15 @@ +from odoo import models, fields + + +class XBiayaKirim(models.Model): + _name = "x_biaya_kirim" + _description = "Biaya Kirim" + _rec_name = "x_name" + + x_name = fields.Char(string="Name") + x_studio_field_8GRtX = fields.Integer(string="Biaya Kirim") + x_studio_field_BSNiA = fields.Boolean(string="Gratis Ongkir?") + x_studio_field_CxtaQ = fields.Boolean(string="Minimum KG") + x_studio_field_KKYEj = fields.Many2one('vit.kecamatan', string="Kecamatan") + x_studio_field_Ww89j = fields.Many2one("delivery.carrier", string="Carrier") + x_studio_field_XusU9 = fields.Char(string="Estimasi Kirim") diff --git a/indoteknik_custom/models/x_manufactures.py b/indoteknik_custom/models/x_manufactures.py new file mode 100644 index 00000000..8aff7f26 --- /dev/null +++ b/indoteknik_custom/models/x_manufactures.py @@ -0,0 +1,34 @@ +from odoo import models, fields + + +class XManufactures(models.Model): + _name = 'x_manufactures' + _description = "Manufactures" + _rec_name = "x_name" + + x_name = fields.Char(string="Name") + x_description = fields.Html(string="Description") + x_logo_manufacture = fields.Binary(string="Logo Manufacture") + x_manufacture_level = fields.Selection([ + ('prioritas', 'Prioritas'), + ('gold', 'Gold'), + ('silver', 'Silver') + ], string="Manufacture Level") + x_manufacture_product = fields.One2many( + comodel_name="product.template", + inverse_name="x_manufacture", + string="Relasi Produk" + ) + x_manufacture_service_center = fields.Many2many("res.partner", string="Service Center") + x_manufactures_banners = fields.One2many( + comodel_name="x_banner.banner", + inverse_name="x_relasi_manufacture", + string="Relasi Manufacture Banner" + ) + x_negara_asal = fields.Char(string="Negara Asal") + x_produk_aksesoris_sparepart = fields.Selection([ + ('produk', 'Produk'), + ('aksesoris', 'Aksesoris'), + ('sparepart', 'Spare Part') + ], string="Jenis Produk") + x_short_desc = fields.Text(string="Short Description") diff --git a/indoteknik_custom/models/x_partner_purchase_order.py b/indoteknik_custom/models/x_partner_purchase_order.py new file mode 100644 index 00000000..6beca5df --- /dev/null +++ b/indoteknik_custom/models/x_partner_purchase_order.py @@ -0,0 +1,13 @@ +from odoo import models, fields + + +class XPartnerPurchaseOrder(models.Model): + _name = "x_partner.purchase.order" + _description = "Customer Purchase Order" + _rec_name = "x_name" + + x_name = fields.Char(string="Nomor PO/Name") + x_studio_field_56vPy = fields.Text(string="Keterangan") + x_studio_field_EcZlH = fields.Integer(string="Partner ID") + x_studio_field_eFt2C = fields.Binary(string="Upload PO") + x_studio_field_yDfr5 = fields.Many2one('sale.order', string="Sales Order") diff --git a/indoteknik_custom/models/x_product_tags.py b/indoteknik_custom/models/x_product_tags.py new file mode 100644 index 00000000..dac7ffe1 --- /dev/null +++ b/indoteknik_custom/models/x_product_tags.py @@ -0,0 +1,9 @@ +from odoo import fields, models + + +class XProductTags(models.Model): + _name = "x_product_tags" + _description = "Product Tags" + _rec_name = "x_name" + + x_name = fields.Char(string="Name") diff --git a/indoteknik_custom/security/ir.model.access.csv b/indoteknik_custom/security/ir.model.access.csv new file mode 100644 index 00000000..e5a8b39e --- /dev/null +++ b/indoteknik_custom/security/ir.model.access.csv @@ -0,0 +1,7 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_x_banner_category,access.x.banner.category,model_x_banner_category,,1,1,1,1 +access_x_banner_banner,access.x.banner.banner,model_x_banner_banner,,1,1,1,1 +access_x_biaya_kirim,access.x.biaya.kirim,model_x_biaya_kirim,,1,1,1,1 +access_x_manufactures,access.x.manufactures,model_x_manufactures,,1,1,1,1 +access_x_partner_purchase_order,access.x.partner.purchase.order,model_x_partner_purchase_order,,1,1,1,1 +access_x_product_tags,access.x.product.tags,model_x_product_tags,,1,1,1,1 \ No newline at end of file diff --git a/indoteknik_custom/views/coupon_program.xml b/indoteknik_custom/views/coupon_program.xml new file mode 100644 index 00000000..e4ad0bd8 --- /dev/null +++ b/indoteknik_custom/views/coupon_program.xml @@ -0,0 +1,24 @@ + + + + coupon.program.inherited + coupon.program + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/indoteknik_custom/views/product_public_category.xml b/indoteknik_custom/views/product_public_category.xml new file mode 100644 index 00000000..858d7ada --- /dev/null +++ b/indoteknik_custom/views/product_public_category.xml @@ -0,0 +1,34 @@ + + + + product.public.category.inherited + product.public.category + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml new file mode 100644 index 00000000..78aac34a --- /dev/null +++ b/indoteknik_custom/views/product_template.xml @@ -0,0 +1,40 @@ + + + + + Product Template + product.template + + + + + + + + + + + + + + + + + + + + + + + + product.template.search.inherit + product.template + + + + + + + + + \ No newline at end of file diff --git a/indoteknik_custom/views/vit_kecamatan.xml b/indoteknik_custom/views/vit_kecamatan.xml new file mode 100644 index 00000000..09ae6920 --- /dev/null +++ b/indoteknik_custom/views/vit_kecamatan.xml @@ -0,0 +1,56 @@ + + + + vit.kecamatan.tree + vit.kecamatan + + + + + + + + + + + vit.kecamatan.form + vit.kecamatan + +
+ +
+

+ +

+
+ + + + + + +
+
+
+
+ + + Kecamatan + ir.actions.act_window + vit.kecamatan + tree,form + +

+ Add Kecamatan! +

+
+
+ + +
\ No newline at end of file diff --git a/indoteknik_custom/views/vit_kelurahan.xml b/indoteknik_custom/views/vit_kelurahan.xml new file mode 100644 index 00000000..afbf84e0 --- /dev/null +++ b/indoteknik_custom/views/vit_kelurahan.xml @@ -0,0 +1,58 @@ + + + + vit.kelurahan.tree + vit.kelurahan + + + + + + + + + + + + vit.kelurahan.form + vit.kelurahan + +
+ +
+

+ +

+
+ + + + + + + +
+
+
+
+ + + Kelurahan + ir.actions.act_window + vit.kelurahan + tree,form + +

+ Add Kelurahan! +

+
+
+ + +
\ No newline at end of file diff --git a/indoteknik_custom/views/vit_kota.xml b/indoteknik_custom/views/vit_kota.xml new file mode 100644 index 00000000..97c7e66c --- /dev/null +++ b/indoteknik_custom/views/vit_kota.xml @@ -0,0 +1,58 @@ + + + + vit.kota.tree + vit.kota + + + + + + + + + + + + vit.kota.form + vit.kota + +
+ +
+

+ +

+
+ + + + + + + +
+
+
+
+ + + Kota + ir.actions.act_window + vit.kota + tree,form + +

+ Add Kota! +

+
+
+ + +
\ No newline at end of file diff --git a/indoteknik_custom/views/x_banner_banner.xml b/indoteknik_custom/views/x_banner_banner.xml new file mode 100644 index 00000000..f48b20c4 --- /dev/null +++ b/indoteknik_custom/views/x_banner_banner.xml @@ -0,0 +1,62 @@ + + + + x_banner.banner.tree + x_banner.banner + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/indoteknik_custom/views/x_banner_category.xml b/indoteknik_custom/views/x_banner_category.xml new file mode 100644 index 00000000..0c2e053d --- /dev/null +++ b/indoteknik_custom/views/x_banner_category.xml @@ -0,0 +1,54 @@ + + + + + + + + + + \ No newline at end of file diff --git a/indoteknik_custom/views/x_biaya_kirim.xml b/indoteknik_custom/views/x_biaya_kirim.xml new file mode 100644 index 00000000..13393573 --- /dev/null +++ b/indoteknik_custom/views/x_biaya_kirim.xml @@ -0,0 +1,64 @@ + + + + x.biaya.kirim.tree + x_biaya_kirim + + + + + + + + + + + + + + x.biaya.kirim.form + x_biaya_kirim + +
+ +
+

+ +

+
+ + + + + + + + + + + +
+
+
+
+ + + Biaya Kirim + ir.actions.act_window + x_biaya_kirim + tree,form + +

+ Add Biaya Kirim! +

+
+
+ + +
\ No newline at end of file diff --git a/indoteknik_custom/views/x_manufactures.xml b/indoteknik_custom/views/x_manufactures.xml new file mode 100644 index 00000000..afecea9b --- /dev/null +++ b/indoteknik_custom/views/x_manufactures.xml @@ -0,0 +1,73 @@ + + + + Manufacture + x_manufactures + tree,form + +

+ Add Manufactures! +

+
+
+ + + Manufactures + x_manufactures + + + + + + + + + + + + + + Manufactures + x_manufactures + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/indoteknik_custom/views/x_partner_purchase_order.xml b/indoteknik_custom/views/x_partner_purchase_order.xml new file mode 100644 index 00000000..4b858726 --- /dev/null +++ b/indoteknik_custom/views/x_partner_purchase_order.xml @@ -0,0 +1,56 @@ + + + + x.partner.purchase.order.tree + x_partner.purchase.order + + + + + + + + + + + + + x.partner.purchase.order.form + x_partner.purchase.order + +
+ + + + + + + + + + + +
+
+
+ + + Customer PO + ir.actions.act_window + x_partner.purchase.order + tree,form + +

+ Add Customer PO! +

+
+
+ + +
\ No newline at end of file diff --git a/indoteknik_custom/views/x_product_tags.xml b/indoteknik_custom/views/x_product_tags.xml new file mode 100644 index 00000000..54378aee --- /dev/null +++ b/indoteknik_custom/views/x_product_tags.xml @@ -0,0 +1,50 @@ + + + + x.product.tags.tree + x_product_tags + + + + + + + + + + x.product.tags.form + x_product_tags + +
+ + + + + + + + +
+
+
+ + + Product Tags + ir.actions.act_window + x_product_tags + tree,form + +

+ Add Product Tags! +

+
+
+ + +
\ No newline at end of file -- cgit v1.2.3