Skip to content

Commit

Permalink
[ADD] odoo_partner: did some cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrs-odoo committed Sep 27, 2024
1 parent e22751e commit 31bb7e3
Show file tree
Hide file tree
Showing 21 changed files with 417 additions and 586 deletions.
18 changes: 7 additions & 11 deletions odoo_partner/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,31 @@
'category': 'Services',
'description': "",
'depends': [
'account_edi_ubl_cii',
'account_invoice_extract',
'account_online_synchronization',
'appointment_account_payment',
'documents_hr',
'documents_product',
'documents_project',
'documents_spreadsheet',
'helpdesk',
'hr_skills',
'knowledge',
'product_barcodelookup',
'project_sms',
'sale_crm',
'sale_pdf_quote_builder',
'sale_planning',
'sale_timesheet_enterprise',
'spreadsheet_sale_management',
'sale_timesheet',
'web_studio',
],
'data': [
'data/res_config_settings.xml',
'data/ir_attachment_pre.xml',
'data/ir_model_fields.xml',
'data/ir_default.xml',
'data/documents_folder.xml',
'data/product_attribute.xml',
'data/product_category.xml',
'data/product_pricelist.xml',
'data/project_task_type.xml',
'data/project_tags.xml',
'data/project_project.xml',
'data/product_product.xml',
'data/product_pricelist_item.xml',
'data/sale_order_template.xml',
'data/sale_order_template_line.xml',
'data/knowledge_cover.xml',
Expand All @@ -45,16 +39,18 @@
'data/ir_model_data.xml',
],
'demo': [
'demo/account_analytic_line.xml',
'demo/res_partner.xml',
'demo/account_analytic_account.xml',
'demo/appointment_type.xml',
'demo/crm_lead.xml',
'demo/hr_employee.xml',
'demo/sale_order.xml',
'demo/sale_order_line.xml',
'demo/sale_order_confirm.xml',
'demo/project_task.xml',
'demo/mail_activity.xml',
'demo/project_project.xml',
'demo/sale_order_confirm.xml',
],
'license': 'OPL-1',
'author': 'Odoo S.A.',
Expand Down
2 changes: 1 addition & 1 deletion odoo_partner/data/ir_default.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<odoo noupdate="1">
<record id="project_description_record" model="ir.default">
<field name="field_id" ref="x_project_description_field"/>
<field name="json_value">""</field>
Expand Down
8 changes: 4 additions & 4 deletions odoo_partner/data/knowledge_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<li>Manage your sales pipeline</li>
<li>Follow up on inquiries and proposals</li>
</ul>
<p><a class="btn btn-outline-primary btn-sm" href="https://www.odoo.com/documentation/master/applications/sales/crm.html" target="_blank">🎓 CRM</a></p>
<p><a class="btn btn-outline-primary btn-sm" href="https://www.odoo.com/documentation/latest/applications/sales/crm.html" target="_blank">🎓 CRM</a></p>
<p><br /></p>
<h3>Sales and Quote Management 💼</h3>
<p>Leverage the Sales app to create professional quotes and manage your sales process:</p>
Expand Down Expand Up @@ -65,7 +65,7 @@
<ul>
<li>Track your sales orders and revenue</li>
</ul>
<p><a class="btn btn-outline-primary btn-sm" href="https://www.odoo.com/documentation/master/applications/sales/sales.html" target="_blank">🎓 Sales</a></p>
<p><a class="btn btn-outline-primary btn-sm" href="https://www.odoo.com/documentation/latest/applications/sales/sales.html" target="_blank">🎓 Sales</a></p>
<h3><br /></h3>
<h3>Projects 📊 </h3>
<p>Utilize the Project app to manage Success Packs and large implementations:</p>
Expand All @@ -74,7 +74,7 @@
<li>Track tasks, milestones, and deadlines</li>
<li>Collaborate with your team and clients</li>
</ul>
<p><a href="https://www.odoo.com/documentation/master/applications/services/project.html" class="btn btn-outline-primary btn-sm" target="_blank">🎓 Projects</a></p>
<p><a href="https://www.odoo.com/documentation/latest/applications/services/project.html" class="btn btn-outline-primary btn-sm" target="_blank">🎓 Projects</a></p>
<p><br /></p>
<h3>Documents 📁 </h3>
<p>Store and organize important files in the Documents app:</p>
Expand All @@ -83,7 +83,7 @@
<li>Share documents securely with your team and clients</li>
<li>Use tags and folders for easy retrieval</li>
</ul>
<p><a class="btn btn-outline-primary btn-sm" href="https://www.odoo.com/documentation/master/applications/productivity/documents.html" target="_blank">🎓 Documents</a></p>
<p><a class="btn btn-outline-primary btn-sm" href="https://www.odoo.com/documentation/latest/applications/productivity/documents.html" target="_blank">🎓 Documents</a></p>
<p><br /></p>
<div data-oe-protected="true" class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-success pb-0 pt-3">
<i class="o_editor_banner_icon mb-3 fst-normal">✅</i>
Expand Down
27 changes: 0 additions & 27 deletions odoo_partner/data/product_attribute.xml

This file was deleted.

75 changes: 75 additions & 0 deletions odoo_partner/data/product_pricelist_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="product_pricelist_item_9" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_7').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">1800.0</field>
</record>
<record id="product_pricelist_item_8" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_3').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">150.0</field>
</record>
<record id="product_pricelist_item_7" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_4').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">1800.0</field>
</record>
<record id="product_pricelist_item_6" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_6').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">1200.0</field>
</record>
<record id="product_pricelist_item_5" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_5').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">1200.0</field>
</record>
<record id="product_pricelist_item_4" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_3').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">100.0</field>
</record>
<record id="product_pricelist_item_3" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_4').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">1250.0</field>
</record>
<record id="product_pricelist_item_2" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_6').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">850.0</field>
</record>
<record id="product_pricelist_item_1" model="product.pricelist.item">
<field name="company_id" ref="base.main_company"/>
<field name="pricelist_id" ref="product_pricelist_2"/>
<field name="product_tmpl_id" model="product.product" eval="obj().env.ref('odoo_partner.product_product_5').product_tmpl_id.id"/>
<field name="currency_id" ref="base.EUR"/>
<field name="applied_on">1_product</field>
<field name="fixed_price">850.0</field>
</record>
</odoo>
5 changes: 5 additions & 0 deletions odoo_partner/data/product_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<odoo noupdate="1">
<record id="product_product_5" model="product.product">
<field name="name">Business Analyst</field>
<field name="type">service</field>
<field name="image_1920" type="base64" file="odoo_partner/static/src/binary/product_template/5-image_1920"/>
<field name="list_price">850.0</field>
<field name="purchase_ok" eval="False"/>
Expand All @@ -12,6 +13,7 @@
</record>
<record id="product_product_6" model="product.product">
<field name="name">Developer</field>
<field name="type">service</field>
<field name="image_1920" type="base64" file="odoo_partner/static/src/binary/product_template/6-image_1920"/>
<field name="list_price">850.0</field>
<field name="purchase_ok" eval="False"/>
Expand All @@ -22,6 +24,7 @@
</record>
<record id="product_product_4" model="product.product">
<field name="name">Project Manager</field>
<field name="type">service</field>
<field name="image_1920" type="base64" file="odoo_partner/static/src/binary/product_template/4-image_1920"/>
<field name="service_tracking">task_in_project</field>
<field name="list_price">1250.0</field>
Expand All @@ -34,6 +37,7 @@
</record>
<record id="product_product_7" model="product.product">
<field name="name">ROI Analysis Setup</field>
<field name="type">service</field>
<field name="image_1920" type="base64" file="odoo_partner/static/src/binary/product_template/7-image_1920"/>
<field name="service_tracking">task_in_project</field>
<field name="list_price">1250.0</field>
Expand All @@ -46,6 +50,7 @@
</record>
<record id="product_product_3" model="product.product">
<field name="name">Success Pack</field>
<field name="type">service</field>
<field name="image_1920" type="base64" file="odoo_partner/static/src/binary/product_template/3-image_1920"/>
<field name="service_tracking">task_global_project</field>
<field name="list_price">100.0</field>
Expand Down
4 changes: 4 additions & 0 deletions odoo_partner/data/project_project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<record id="project_project_4" model="project.project">
<field name="name">Implementation</field>
<field name="allow_billable" eval="True"/>
<field name="tag_ids" eval="[(6, 0, [ref('project_tags_1')])]"/>
<field name="favorite_user_ids" eval="[(6, 0, [ref('base.user_admin')])]"/>
<field name="type_ids" eval="[(6, 0, [ref('project_task_type_15'), ref('project_task_type_16'), ref('project_task_type_17'), ref('project_task_type_18')])]"/>
<field name="documents_folder_id" ref="documents_folder_12"/>
Expand All @@ -17,6 +18,7 @@
</record>
<record id="project_project_6" model="project.project">
<field name="name">ROI Analysis</field>
<field name="tag_ids" eval="[(6, 0, [ref('project_tags_1')])]"/>
<field name="allow_billable" eval="True"/>
<field name="favorite_user_ids" eval="[(6, 0, [ref('base.user_admin')])]"/>
<field name="type_ids" eval="[(6, 0, [ref('project_task_type_26'), ref('project_task_type_27'), ref('project_task_type_28')])]"/>
Expand All @@ -25,6 +27,7 @@
<record id="project_project_5" model="project.project">
<field name="name">S00005 - Implementation</field>
<field name="allow_billable" eval="True"/>
<field name="tag_ids" eval="[(6, 0, [ref('project_tags_3')])]"/>
<field name="company_id" ref="base.main_company"/>
<field name="type_ids" eval="[(6, 0, [ref('project_task_type_15'), ref('project_task_type_16'), ref('project_task_type_17'), ref('project_task_type_18')])]"/>
<field name="last_update_status">at_risk</field>
Expand All @@ -34,6 +37,7 @@
<record id="project_project_7" model="project.project">
<field name="name">S00006 - ROI Analysis</field>
<field name="allow_billable" eval="True"/>
<field name="tag_ids" eval="[(6, 0, [ref('project_tags_3')])]"/>
<field name="company_id" ref="base.main_company"/>
<field name="type_ids" eval="[(6, 0, [ref('project_task_type_26'), ref('project_task_type_27'), ref('project_task_type_28')])]"/>
<field name="last_update_status">on_track</field>
Expand Down
9 changes: 9 additions & 0 deletions odoo_partner/data/project_tags.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="project_tags_3" model="project.tags">
<field name="name">Customer Projects</field>
</record>
<record id="project_tags_1" model="project.tags">
<field name="name">Template</field>
</record>
</odoo>
9 changes: 9 additions & 0 deletions odoo_partner/data/res_config_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="res_config_settings_enable" model="res.config.settings">
<field name="group_product_pricelist" eval="1"/>
<field name="group_sale_order_template" eval="1"/>
<field name="group_project_task_dependencies" eval="1"/>
</record>
<function model="res.config.settings" name="execute" eval="[ref('res_config_settings_enable')]"/>
</odoo>
6 changes: 0 additions & 6 deletions odoo_partner/demo/account_analytic_account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,30 @@
<record id="account_analytic_account_4" model="account.analytic.account">
<field name="name">Implementation</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="root_plan_id" ref="analytic.analytic_plan_projects"/>
<field name="company_id" eval="False"/>
</record>
<record id="account_analytic_account_1" model="account.analytic.account">
<field name="name">Internal</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="root_plan_id" ref="analytic.analytic_plan_projects"/>
</record>
<record id="account_analytic_account_6" model="account.analytic.account">
<field name="name">ROI Analysis</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="root_plan_id" ref="analytic.analytic_plan_projects"/>
<field name="company_id" eval="False"/>
</record>
<record id="account_analytic_account_5" model="account.analytic.account">
<field name="name">S00005</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="root_plan_id" ref="analytic.analytic_plan_projects"/>
<field name="partner_id" ref="res_partner_22"/>
</record>
<record id="account_analytic_account_7" model="account.analytic.account">
<field name="name">S00006</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="root_plan_id" ref="analytic.analytic_plan_projects"/>
<field name="partner_id" ref="res_partner_20"/>
</record>
<record id="account_analytic_account_3" model="account.analytic.account">
<field name="name">Success Packs</field>
<field name="plan_id" ref="analytic.analytic_plan_projects"/>
<field name="root_plan_id" ref="analytic.analytic_plan_projects"/>
<field name="company_id" eval="False"/>
</record>
</odoo>
Loading

0 comments on commit 31bb7e3

Please sign in to comment.