diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-07-19 08:34:33 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-07-19 08:34:33 +0700 |
| commit | 41a1567f7dd7d600e66aab11a851b2e9b53083ab (patch) | |
| tree | 28ade82e22b51bc7d563b2a67ebb618bf9e85f3c | |
| parent | f65ef8f208607a2d906e612822b92681e1f85d54 (diff) | |
Model stock.altama dan View stock.altama
| -rw-r--r-- | indoteknik_custom/__manifest__.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/models/__init__.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/models/stock_altama.py | 9 | ||||
| -rw-r--r-- | indoteknik_custom/security/ir.model.access.csv | 3 | ||||
| -rw-r--r-- | indoteknik_custom/views/stock_altama.xml | 42 |
5 files changed, 55 insertions, 1 deletions
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 @@ +<odoo> + <data> + <record id="stock_altama_action" model="ir.actions.act_window"> + <field name="name">Stock Altama</field> + <field name="res_model">stock.altama</field> + <field name="view_mode">tree,form</field> + <field name="help" type="html"> + <p class="o_view_nocontent_smiling_face"> + Stock Altama + </p> + </field> + </record> + + <record id="stock_altama_tree" model="ir.ui.view"> + <field name="name">Stock Altama</field> + <field name="model">stock.altama</field> + <field name="arch" type="xml"> + <tree> + <field name="product_variant_id"/> + <field name="quantity"/> + </tree> + </field> + </record> + + <record id="stock_altama_form" model="ir.ui.view"> + <field name="name">Stock Altama</field> + <field name="model">stock.altama</field> + <field name="arch" type="xml"> + <form> + <field name="product_variant_id"/> + <field name="quantity"/> + </form> + </field> + </record> + + <menuitem id="stock_altama" + name="Stock Altama" + parent="sale.product_menu_catalog" + sequence="3" + action="stock_altama_action"/> + </data> +</odoo>
\ No newline at end of file |
