diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-26 10:20:59 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-26 10:20:59 +0700 |
| commit | 25a3271bd14671d57da6b4349745e446e94ebfef (patch) | |
| tree | d5a6554c61a02cd08f41c8068237a926e29874dd /indoteknik_custom/views/promotion | |
| parent | bd8a83a76cea6ef2466c250226f7c95c38b3024c (diff) | |
| parent | 50b5bd7bd984ef108e8bd324440050a222d8262f (diff) | |
Merge branch 'change/feature/promotion-program' into production
# Conflicts:
# indoteknik_custom/models/sale_order.py
Diffstat (limited to 'indoteknik_custom/views/promotion')
4 files changed, 235 insertions, 0 deletions
diff --git a/indoteknik_custom/views/promotion/promotion_program.xml b/indoteknik_custom/views/promotion/promotion_program.xml new file mode 100644 index 00000000..f8432d8a --- /dev/null +++ b/indoteknik_custom/views/promotion/promotion_program.xml @@ -0,0 +1,73 @@ +<odoo> + <record id="promotion_program_tree" model="ir.ui.view"> + <field name="name">Promotion Program Tree</field> + <field name="model">promotion.program</field> + <field name="arch" type="xml"> + <tree> + <field name="name" /> + <field name="start_time" /> + <field name="end_time" /> + <field name="applies_to" /> + </tree> + </field> + </record> + + <record id="promotion_program_form" model="ir.ui.view"> + <field name="name">Promotion Program Form</field> + <field name="model">promotion.program</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <group> + <field name="name" /> + <field name="banner" widget="image" height="160" /> + <field name="keyword_ids" widget="many2many_tags" /> + </group> + <group> + <field name="start_time" /> + <field name="end_time" /> + <field name="applies_to" /> + </group> + </group> + <notebook> + <page string="Program Lines" name="program_lines"> + <field name="program_line" /> + </page> + <page string="Image Properties" name="image_properties"> + <group> + <group> + <field name="icon" widget="image" height="120" /> + <field name="icon_top" widget="image" height="80" /> + <field name="icon_bottom" widget="image" height="80" /> + </group> + </group> + </page> + </notebook> + </sheet> + </form> + </field> + </record> + + <record id="promotion_program_action" model="ir.actions.act_window"> + <field name="name">Promotion Program</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">promotion.program</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem + id="menu_promotion_program_parent" + name="Promotion Program" + parent="website.menu_website_configuration" + sequence="7" + /> + + <menuitem + id="menu_promotion_program" + name="Program" + parent="indoteknik_custom.menu_promotion_program_parent" + sequence="1" + action="promotion_program_action" + /> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/promotion/promotion_program_free_item.xml b/indoteknik_custom/views/promotion/promotion_program_free_item.xml new file mode 100644 index 00000000..52d421fe --- /dev/null +++ b/indoteknik_custom/views/promotion/promotion_program_free_item.xml @@ -0,0 +1,44 @@ +<odoo> + <record id="promotion_program_free_item_tree" model="ir.ui.view"> + <field name="name">Promotion Program Free Item Tree</field> + <field name="model">promotion.program.free_item</field> + <field name="arch" type="xml"> + <tree> + <field name="product_id" /> + <field name="qty" /> + </tree> + </field> + </record> + + <record id="promotion_program_free_item_form" model="ir.ui.view"> + <field name="name">Promotion Program Free Item Form</field> + <field name="model">promotion.program.free_item</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <group> + <field name="product_id" /> + <field name="qty" /> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="promotion_program_free_item_action" model="ir.actions.act_window"> + <field name="name">Promotion Program Free Item</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">promotion.program.free_item</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem + id="menu_promotion_program_free_item" + name="Program Free Item" + parent="indoteknik_custom.menu_promotion_program_parent" + sequence="3" + action="promotion_program_free_item_action" + /> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/promotion/promotion_program_keyword.xml b/indoteknik_custom/views/promotion/promotion_program_keyword.xml new file mode 100644 index 00000000..fd279665 --- /dev/null +++ b/indoteknik_custom/views/promotion/promotion_program_keyword.xml @@ -0,0 +1,44 @@ +<odoo> + <record id="promotion_program_keyword_tree" model="ir.ui.view"> + <field name="name">Promotion Program Keyword Tree</field> + <field name="model">promotion.program.keyword</field> + <field name="arch" type="xml"> + <tree> + <field name="name" /> + <field name="program_id" /> + </tree> + </field> + </record> + + <record id="promotion_program_keyword_form" model="ir.ui.view"> + <field name="name">Promotion Program Keyword Form</field> + <field name="model">promotion.program.keyword</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <group> + <field name="name" /> + <field name="program_id" /> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="promotion_program_keyword_action" model="ir.actions.act_window"> + <field name="name">Promotion Program Keyword</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">promotion.program.keyword</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem + id="menu_promotion_program_keyword" + name="Program Keyword" + parent="indoteknik_custom.menu_promotion_program_parent" + sequence="4" + action="promotion_program_keyword_action" + /> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/promotion/promotion_program_line.xml b/indoteknik_custom/views/promotion/promotion_program_line.xml new file mode 100644 index 00000000..db6d5252 --- /dev/null +++ b/indoteknik_custom/views/promotion/promotion_program_line.xml @@ -0,0 +1,74 @@ +<odoo> + <record id="promotion_program_line_tree" model="ir.ui.view"> + <field name="name">Promotion Program Line Tree</field> + <field name="model">promotion.program.line</field> + <field name="arch" type="xml"> + <tree> + <field name="name" /> + <field name="promotion_type" /> + <field name="product_ids" /> + <field name="free_product_ids" /> + <field name="price" /> + </tree> + </field> + </record> + + <record id="promotion_program_line_form" model="ir.ui.view"> + <field name="name">Promotion Program Line Form</field> + <field name="model">promotion.program.line</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <group> + <field name="name" /> + <field name="promotion_type" /> + <field name="image" widget="image" height="160" /> + </group> + <group> + <field name="package_limit" /> + <field name="package_limit_user" /> + <field name="package_limit_trx" /> + <field name="price" attrs="{'invisible': [('promotion_type', '=', 'special_price')]}" /> + <field name="discount_type" attrs="{'invisible': [('promotion_type', '!=', 'special_price')]}" /> + <field name="discount_amount" attrs="{'invisible': [('promotion_type', '!=', 'special_price')]}" /> + </group> + </group> + <notebook> + <page string="Product Required" name="product_required"> + <field name="product_ids"> + <tree editable="top"> + <field name="product_id" required="1" /> + <field name="qty" required="1" /> + </tree> + </field> + </page> + <page string="Free Product" name="free_product" attrs="{'invisible': [('promotion_type', '=', 'special_price')]}"> + <field name="free_product_ids"> + <tree editable="top"> + <field name="product_id" required="1" /> + <field name="qty" required="1" /> + </tree> + </field> + </page> + </notebook> + </sheet> + </form> + </field> + </record> + + <record id="promotion_program_line_action" model="ir.actions.act_window"> + <field name="name">Promotion Program Line</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">promotion.program.line</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem + id="menu_promotion_program_line" + name="Program Line" + parent="indoteknik_custom.menu_promotion_program_parent" + sequence="2" + action="promotion_program_line_action" + /> +</odoo>
\ No newline at end of file |
