summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-01-02 14:18:46 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-01-02 14:18:46 +0700
commitbd6db8fa22dd602cfaffe0a4b44cc2a794fa1975 (patch)
tree1d840c49664b393c867f528b0dfa2430cd981c6e
parentb2b458d4a642271b98f23403c74eb7aad06cd71d (diff)
<iman> update merchant menu
-rw-r--r--indoteknik_custom/models/user_form_merchant.py2
-rw-r--r--indoteknik_custom/views/user_company_request.xml19
-rw-r--r--indoteknik_custom/views/user_form_merchant.xml5
-rw-r--r--indoteknik_custom/views/user_merchant_request.xml4
4 files changed, 18 insertions, 12 deletions
diff --git a/indoteknik_custom/models/user_form_merchant.py b/indoteknik_custom/models/user_form_merchant.py
index 31c85481..18d82e25 100644
--- a/indoteknik_custom/models/user_form_merchant.py
+++ b/indoteknik_custom/models/user_form_merchant.py
@@ -6,7 +6,7 @@ from odoo.http import request
class UserFormMerchant(models.Model):
_name = 'user.form.merchant'
_inherit = ['mail.thread', 'mail.activity.mixin']
- name = fields.Char(string='Name', required=True)
+ name = fields.Char(string='Name')
pic_merchant = fields.Char(string='PIC Merchant', required=True)
name_merchant = fields.Char(string='Name')
address = fields.Char(string='Alamat')
diff --git a/indoteknik_custom/views/user_company_request.xml b/indoteknik_custom/views/user_company_request.xml
index 1c80e923..a4a9d842 100644
--- a/indoteknik_custom/views/user_company_request.xml
+++ b/indoteknik_custom/views/user_company_request.xml
@@ -54,12 +54,17 @@
<field name="res_model">user.company.request</field>
<field name="view_mode">tree,form</field>
</record>
+ <menuitem id="res_partner_menu_user"
+ name="User Request"
+ parent="contacts.menu_contacts"
+ groups="base.group_system"
+ sequence="3"/>
+
+<menuitem id="menu_user_company_request"
+ name="User Company Request"
+ parent="res_partner_menu_user"
+ sequence="4"
+ action="action_user_company_request"
+ groups="base.group_system"/>
- <menuitem
- id="menu_user_company_request"
- name="User Company Request"
- parent="contacts.menu_contacts"
- sequence="3"
- action="action_user_company_request"
- />
</odoo> \ No newline at end of file
diff --git a/indoteknik_custom/views/user_form_merchant.xml b/indoteknik_custom/views/user_form_merchant.xml
index c30f2756..230b6425 100644
--- a/indoteknik_custom/views/user_form_merchant.xml
+++ b/indoteknik_custom/views/user_form_merchant.xml
@@ -70,11 +70,12 @@
<field name="view_mode">tree,form</field>
</record>
+
<menuitem
id="menu_user_form_merchant"
name="User Form Merchant"
- parent="contacts.menu_contacts"
- sequence="3"
+ parent="res_partner_menu_user"
+ sequence="1"
action="action_user_form_merchant"
/>
diff --git a/indoteknik_custom/views/user_merchant_request.xml b/indoteknik_custom/views/user_merchant_request.xml
index c67daae4..e4f309fd 100644
--- a/indoteknik_custom/views/user_merchant_request.xml
+++ b/indoteknik_custom/views/user_merchant_request.xml
@@ -105,8 +105,8 @@
<menuitem
id="menu_user_merchant_request"
name="User Merchant Request"
- parent="contacts.menu_contacts"
- sequence="3"
+ parent="res_partner_menu_user"
+ sequence="2"
action="action_user_merchant_request"
/>
</odoo> \ No newline at end of file