From 41a1567f7dd7d600e66aab11a851b2e9b53083ab Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Tue, 19 Jul 2022 08:34:33 +0700 Subject: Model stock.altama dan View stock.altama --- indoteknik_custom/__manifest__.py | 1 + indoteknik_custom/models/__init__.py | 1 + indoteknik_custom/models/stock_altama.py | 9 ++++++ indoteknik_custom/security/ir.model.access.csv | 3 +- indoteknik_custom/views/stock_altama.xml | 42 ++++++++++++++++++++++++++ 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 indoteknik_custom/models/stock_altama.py create mode 100644 indoteknik_custom/views/stock_altama.xml diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py index 9b46313f..2c3c0b7e 100644 --- a/indoteknik_custom/__manifest__.py +++ b/indoteknik_custom/__manifest__.py @@ -23,6 +23,7 @@ 'views/x_manufactures.xml', 'views/x_partner_purchase_order.xml', 'views/x_product_tags.xml', + 'views/stock_altama.xml', 'report/report.xml', 'report/report_banner_banner.xml', 'report/report_banner_banner2.xml', diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py index 2679aa23..3da85d05 100644 --- a/indoteknik_custom/models/__init__.py +++ b/indoteknik_custom/models/__init__.py @@ -7,3 +7,4 @@ from . import product_public_category from . import product_template from . import x_partner_purchase_order from . import x_product_tags +from . import stock_altama diff --git a/indoteknik_custom/models/stock_altama.py b/indoteknik_custom/models/stock_altama.py new file mode 100644 index 00000000..c3ebc857 --- /dev/null +++ b/indoteknik_custom/models/stock_altama.py @@ -0,0 +1,9 @@ +from odoo import fields, models + + +class StockAltama(models.Model): + _name = "stock.altama" + _description = "Stock Altama" + + product_variant_id = fields.Many2one("product.product", string="Product Variant") + quantity = fields.Integer(string="Quantity") diff --git a/indoteknik_custom/security/ir.model.access.csv b/indoteknik_custom/security/ir.model.access.csv index e5a8b39e..7592f687 100644 --- a/indoteknik_custom/security/ir.model.access.csv +++ b/indoteknik_custom/security/ir.model.access.csv @@ -4,4 +4,5 @@ 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 +access_x_product_tags,access.x.product.tags,model_x_product_tags,,1,1,1,1 +access_stock_altama,access.stock.altama,model_stock_altama,,1,1,1,1 \ No newline at end of file diff --git a/indoteknik_custom/views/stock_altama.xml b/indoteknik_custom/views/stock_altama.xml new file mode 100644 index 00000000..ee54a52e --- /dev/null +++ b/indoteknik_custom/views/stock_altama.xml @@ -0,0 +1,42 @@ + + + + Stock Altama + stock.altama + tree,form + +

+ Stock Altama +

+
+
+ + + Stock Altama + stock.altama + + + + + + + + + + Stock Altama + stock.altama + +
+ + + + +
+ + +
+
\ No newline at end of file -- cgit v1.2.3