Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .weblate.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,11 @@
"filemask": "theater/i18n/*.po",
"new_base": "theater/i18n/theater.pot"
},
{
"name": "thrift_store",
"filemask": "thrift_store/i18n/*.po",
"new_base": "thrift_store/i18n/thrift_store.pot"
},
{
"name": "toy_store",
"filemask": "toy_store/i18n/*.po",
Expand Down
49 changes: 49 additions & 0 deletions thrift_store/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
'name': 'Thrift Store',
'version': '1.0',
'category': 'Services',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'category': 'Services',
'category': 'Retail',

'depends': [
'appointment_account_payment',
'base_industry_data',
'hr_sign',
'knowledge',
'planning',
'pos_online_payment',
'project',
'sale',
'stock',
'survey',
Comment on lines +6 to +15
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading the task, I don't see any trace of Appointment, Project, Sale, Sign & Survey. Could you confirm?

Suggested change
'appointment_account_payment',
'base_industry_data',
'hr_sign',
'knowledge',
'planning',
'pos_online_payment',
'project',
'sale',
'stock',
'survey',
'base_industry_data',
'hr',
'knowledge',
'planning',
'pos_online_payment',
'stock',

],
'data': [
'data/ir_attachment.xml',
'data/knowledge_cover.xml',
'data/knowledge_article.xml',
'data/knowledge_article_favorite.xml',
'data/mail_message.xml',
'data/pos_category.xml',
'data/pos_config.xml',
'data/product_template.xml',
'data/product_product.xml',
'data/pos_session.xml',
'data/res_config_settings.xml',
],
'demo': [
'demo/res_partner.xml',
'demo/planning_role.xml',
'demo/hr_employee.xml',
'demo/planning_slot_template.xml',
'demo/planning_slot.xml',
'demo/planning_slot_post.xml',
'demo/pos_order.xml',
'demo/pos_order_line.xml',
'demo/pos_confirm.xml',
'demo/pos_config.xml',
'demo/resource_calendar.xml',
],
'cloc_exclude': [
'data/knowledge_article.xml',
],
'license': 'OPL-1',
'author': 'Odoo S.A.',
'images': ['images/main.png'],
}
7 changes: 7 additions & 0 deletions thrift_store/data/ir_attachment.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="ir_attachment_1" model="ir.attachment">
<field name="name">ir_attachment_1.jpg</field>
<field name="datas" type="base64" file="thrift_store/static/src/binary/ir_attachment/ir_attachment_1.jpg"/>
</record>
</odoo>
291 changes: 291 additions & 0 deletions thrift_store/data/knowledge_article.xml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions thrift_store/data/knowledge_article_favorite.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="knowledge_favorite" model="knowledge.article.favorite">
<field name="article_id" ref="welcome_article"/>
<field name="user_id" ref="base.user_admin"/>
</record>
</odoo>
6 changes: 6 additions & 0 deletions thrift_store/data/knowledge_cover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="knowledge_cover_8" model="knowledge.cover">
<field name="attachment_id" ref="ir_attachment_1"/>
</record>
</odoo>
15 changes: 15 additions & 0 deletions thrift_store/data/mail_message.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record model="mail.message" id="notification_knowledge">
<field name="model">discuss.channel</field>
<field name="res_id" ref="mail.channel_all_employees"/>
<field name="message_type">email</field>
<field name="author_id" ref="base.partner_root"/>
<field name="subtype_id" ref="mail.mt_comment"/>
<field name="subject">🚀 Get started with Odoo Thrift Store</field>
<field name="body" model="knowledge.article" eval="
'&lt;span>&#x1F44B; Hi! Follow this &lt;a href=\''
+ obj().env.ref('thrift_store.welcome_article').article_url
+ '\'>onboarding guide&lt;/a>. You can find it anytime in the Knowledge app.&lt;/span>'"/>
</record>
</odoo>
15 changes: 15 additions & 0 deletions thrift_store/data/pos_category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="pos_category_1" model="pos.category">
<field name="name">Amounts</field>
<field name="image_512" type="base64" file="thrift_store/static/src/binary/pos_category/1-image_512"/>
</record>
<record id="pos_category_2" model="pos.category">
<field name="name">Products</field>
<field name="image_512" type="base64" file="thrift_store/static/src/binary/pos_category/2-image_512"/>
</record>
<record id="pos_category_3" model="pos.category">
<field name="name">To Weight</field>
<field name="image_512" type="base64" file="thrift_store/static/src/binary/pos_category/3-image_512"/>
</record>
</odoo>
7 changes: 7 additions & 0 deletions thrift_store/data/pos_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="point_of_sale.pos_config_retail" model="pos.config" forcecreate="1">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you need to call load_onboarding_retail_scenario first? It's the scenario building this PoS

<field name="name">Thrift Store</field>
<field name="tip_product_id" eval="False"/>
</record>
</odoo>
8 changes: 8 additions & 0 deletions thrift_store/data/pos_session.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="pos_session_1" model="pos.session">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move session to demo/

<field name="config_id" ref="point_of_sale.pos_config_retail"/>
<field name="name">Thrift Store/00001</field>
<field name="user_id" ref="base.user_admin"/>
</record>
</odoo>
52 changes: 52 additions & 0 deletions thrift_store/data/product_product.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="point_of_sale.product_product_tip" model="product.product" forcecreate="1">
<field name="default_code">TIPS</field>
<field name="product_tmpl_id" ref="point_of_sale.product_product_tip_product_template"/>
</record>
Comment on lines +3 to +6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for Tip, you don't use it in the pos

Suggested change
<record id="point_of_sale.product_product_tip" model="product.product" forcecreate="1">
<field name="default_code">TIPS</field>
<field name="product_tmpl_id" ref="point_of_sale.product_product_tip_product_template"/>
</record>

<record id="product_product_16" model="product.product">
<field name="product_tmpl_id" ref="product_template_16"/>
</record>
<record id="product_product_17" model="product.product">
<field name="product_tmpl_id" ref="product_template_17"/>
</record>
<record id="product_product_18" model="product.product">
<field name="product_tmpl_id" ref="product_template_18"/>
</record>
<record id="product_product_14" model="product.product">
<field name="product_tmpl_id" ref="product_template_14"/>
</record>
<record id="product_product_19" model="product.product">
<field name="product_tmpl_id" ref="product_template_19"/>
</record>
<record id="product_product_15" model="product.product">
<field name="product_tmpl_id" ref="product_template_15"/>
</record>
<record id="product_product_20" model="product.product">
<field name="product_tmpl_id" ref="product_template_20"/>
</record>
<record id="product_product_12" model="product.product">
<field name="product_tmpl_id" ref="product_template_12"/>
</record>
<record id="product_product_13" model="product.product">
<field name="product_tmpl_id" ref="product_template_13"/>
</record>
<record id="product_product_9" model="product.product">
<field name="product_tmpl_id" ref="product_template_9"/>
</record>
<record id="product_product_8" model="product.product">
<field name="product_tmpl_id" ref="product_template_8"/>
</record>
<record id="product_product_11" model="product.product">
<field name="product_tmpl_id" ref="product_template_11"/>
</record>
<record id="product_product_10" model="product.product">
<field name="product_tmpl_id" ref="product_template_10"/>
</record>
<record id="product_product_6" model="product.product">
<field name="product_tmpl_id" ref="product_template_6"/>
</record>
<record id="product_product_7" model="product.product">
<field name="product_tmpl_id" ref="product_template_7"/>
</record>
</odoo>
149 changes: 149 additions & 0 deletions thrift_store/data/product_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="product_template_16" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/16-image_1920"/>
<field name="name">10</field>
<field name="list_price">10.0</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_1')])]"/>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">16</field>
</record>
<record id="product_template_17" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/17-image_1920"/>
<field name="name">15</field>
<field name="list_price">15.0</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_1')])]"/>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">17</field>
</record>
<record id="product_template_18" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/18-image_1920"/>
<field name="name">20</field>
<field name="list_price">20.0</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_1')])]"/>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">18</field>
</record>
<record id="product_template_14" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/14-image_1920"/>
<field name="name">3</field>
<field name="list_price">3.0</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_1')])]"/>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">14</field>
</record>
<record id="product_template_19" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/19-image_1920"/>
<field name="name">30</field>
<field name="list_price">30.0</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_1')])]"/>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">19</field>
</record>
<record id="product_template_15" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/15-image_1920"/>
<field name="name">5</field>
<field name="list_price">5.0</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_1')])]"/>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">15</field>
</record>
<record id="product_template_20" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/20-image_1920"/>
<field name="name">50</field>
<field name="list_price">50.0</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_1')])]"/>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">20</field>
</record>
<record id="product_template_12" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/12-image_1920"/>
<field name="name">Accessories</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_2')])]"/>
<field name="color">6</field>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">12</field>
</record>
<record id="product_template_13" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/13-image_1920"/>
<field name="name">Jackets</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_2')])]"/>
<field name="color">6</field>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">13</field>
</record>
<record id="product_template_9" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/9-image_1920"/>
<field name="name">Pants</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_2')])]"/>
<field name="color">6</field>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">9</field>
</record>
<record id="product_template_8" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/8-image_1920"/>
<field name="name">Shirts</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_2')])]"/>
<field name="color">6</field>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">8</field>
</record>
<record id="product_template_11" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/11-image_1920"/>
<field name="name">Shoes</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_2')])]"/>
<field name="color">6</field>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">11</field>
</record>
<record id="product_template_10" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/10-image_1920"/>
<field name="name">Shorts</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_2')])]"/>
<field name="color">6</field>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">10</field>
</record>
<record id="product_template_6" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/6-image_1920"/>
<field name="name">To Weight</field>
<field name="list_price">15.0</field>
<field name="uom_id" ref="uom.product_uom_kgm"/>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_3')])]"/>
<field name="color">6</field>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="to_weight" eval="True"/>
<field name="pos_sequence">6</field>
</record>
<record id="product_template_7" model="product.template" context="{'create_product_product': False}">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/product_template/7-image_1920"/>
<field name="name">Tshirts</field>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_2')])]"/>
<field name="color">6</field>
<field name="responsible_id" ref="base.user_admin"/>
<field name="available_in_pos" eval="True"/>
<field name="pos_sequence">7</field>
</record>
<record id="point_of_sale.product_product_tip_product_template" model="product.template" context="{'create_product_product': False}" forcecreate="1">
<field name="name">Tips</field>
<field name="categ_id" ref="product.product_category_services"/>
<field name="weight">0.01</field>
<field name="default_code">TIPS</field>
<field name="responsible_id" ref="base.user_root"/>
<field name="pos_sequence">1</field>
</record>
Comment on lines +141 to +148
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Suggested change
<record id="point_of_sale.product_product_tip_product_template" model="product.template" context="{'create_product_product': False}" forcecreate="1">
<field name="name">Tips</field>
<field name="categ_id" ref="product.product_category_services"/>
<field name="weight">0.01</field>
<field name="default_code">TIPS</field>
<field name="responsible_id" ref="base.user_root"/>
<field name="pos_sequence">1</field>
</record>

</odoo>
10 changes: 10 additions & 0 deletions thrift_store/data/res_config_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo noupdate="1">
<record model="res.config.settings" id="res_config_settings_enable">
<field name="pos_tax_regime_selection" eval="1"/>
<field name="group_uom" eval="1"/>
<field name="account_price_include">tax_included</field>
</record>

<function model="res.config.settings" name="execute" eval="[ref('res_config_settings_enable')]"/>
</odoo>
40 changes: 40 additions & 0 deletions thrift_store/demo/hr_employee.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo noupdate="1">
<record id="hr.employee_admin" model="hr.employee" forcecreate="1">
<field name="name">Casey Admin</field>
<field name="user_id" ref="base.user_admin"/>
<field name="work_contact_id" ref="base.partner_admin"/>
<field name="work_email">[email protected]</field>
<field name="legal_name">Administrator</field>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bet legal_name is not needed

Suggested change
<field name="legal_name">Administrator</field>

</record>
<record id="hr_employee_3" model="hr.employee">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/hr_employee/3-image_1920"/>
<field name="name">Ella Gance</field>
<field name="work_contact_id" ref="res_partner_9"/>
<field name="work_email">[email protected]</field>
<field name="legal_name">Ella Gance</field>
<field name="parent_id" ref="hr.employee_admin"/>
<field name="coach_id" ref="hr.employee_admin"/>
<field name="planning_role_ids" eval="[(6, 0, [ref('planning_role_1')])]"/>
</record>
<record id="hr_employee_2" model="hr.employee">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/hr_employee/2-image_1920"/>
<field name="name">John Bargayne</field>
<field name="work_contact_id" ref="res_partner_8"/>
<field name="work_email">[email protected]</field>
<field name="legal_name">John Bargayne</field>
<field name="parent_id" ref="hr.employee_admin"/>
<field name="coach_id" ref="hr.employee_admin"/>
<field name="planning_role_ids" eval="[(6, 0, [ref('planning_role_1')])]"/>
</record>
<record id="hr_employee_4" model="hr.employee">
<field name="image_1920" type="base64" file="thrift_store/static/src/binary/hr_employee/4-image_1920"/>
<field name="name">Polly Ester</field>
<field name="work_contact_id" ref="res_partner_10"/>
<field name="work_email">[email protected]</field>
<field name="legal_name">Polly Ester</field>
<field name="parent_id" ref="hr.employee_admin"/>
<field name="coach_id" ref="hr.employee_admin"/>
<field name="planning_role_ids" eval="[(6, 0, [ref('planning_role_1')])]"/>
</record>
</odoo>
6 changes: 6 additions & 0 deletions thrift_store/demo/planning_role.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="planning_role_1" model="planning.role">
<field name="name">Swiss Knife</field>
</record>
</odoo>
Loading