Skip to content

Commit 46bb42a

Browse files
committed
[IMP] agriculture_shop: Remove survey, lot and add variants, discount
New version of the agriculture shop module: - Remove the survey app and the lots and SN setting. - Add variant and discount settings - Add ecommerce categories - Add quantity and variants on products - Change picture for product "Battery spray pump" TASK-5123814
1 parent 4a76af8 commit 46bb42a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1280
-344
lines changed

agriculture_shop/__manifest__.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
'name': 'Agricultural Store',
3-
'version': '1.1',
3+
'version': '1.2',
44
'category': 'Retail',
55
'depends': [
6+
'crm',
67
'knowledge',
78
'pos_sale',
89
'product_expiry',
910
'purchase_requisition',
1011
'sale_purchase_stock',
11-
'survey_crm',
1212
'web_studio',
1313
'website_sale_loyalty',
1414
],
@@ -21,28 +21,33 @@
2121
'data/pos_config.xml',
2222
'data/product_category.xml',
2323
'data/product_pricelist.xml',
24+
'data/product_public_category.xml',
2425
'data/product_product.xml',
2526
'data/product_pricelist_item.xml',
27+
'data/product_attribute.xml',
28+
'data/product_attribute_value.xml',
29+
'data/product_template_attribute_line.xml',
30+
'data/product_image.xml',
2631
'data/knowledge_cover.xml',
2732
'data/knowledge_article.xml',
2833
'data/knowledge_article_favorite.xml',
2934
'data/mail_message.xml',
3035
'data/website_view.xml',
3136
'data/website_theme_apply.xml',
3237
'data/knowledge_tour.xml',
38+
'data/ir_ui_menu.xml',
39+
'data/product_ribbon.xml',
3340
],
3441
'demo': [
3542
'demo/res_partner.xml',
3643
'demo/product_product.xml',
37-
'demo/survey_survey.xml',
38-
'demo/survey_question.xml',
39-
'demo/survey_question_answer.xml',
44+
'demo/crm_tag.xml',
4045
'demo/crm_lead.xml',
46+
'demo/mail_activity.xml',
4147
'demo/product_supplierinfo.xml',
4248
'demo/loyalty_program.xml',
4349
'demo/loyalty_rule.xml',
4450
'demo/loyalty_reward.xml',
45-
'demo/stock_lot.xml',
4651
'demo/purchase_order.xml',
4752
'demo/purchase_order_line.xml',
4853
'demo/purchase_order_post.xml',

agriculture_shop/data/ir_attachment_pre.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<odoo noupdate="1">
3+
<record id="ir_attachment_1" model="ir.attachment">
4+
<field name="name">ir_attachment_1.png</field>
5+
<field name="datas" type="base64" file="agriculture_shop/static/src/binary/ir_attachment/ir_attachment_1.png"/>
6+
</record>
37
<record id="ir_attachment_583" model="ir.attachment">
48
<field name="name">Agro Covercc.png</field>
59
<field name="datas" type="base64" file="agriculture_shop/static/src/binary/ir_attachment/583-AgroCovercc.jpg"/>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<odoo>
3+
<record id="point_of_sale.menu_point_root" model="ir.ui.menu" forcecreate="0">
4+
<field name="sequence">1</field>
5+
</record>
6+
<record id="crm.crm_menu_root" model="ir.ui.menu" forcecreate="0">
7+
<field name="sequence">2</field>
8+
</record>
9+
<record id="sale.sale_menu_root" model="ir.ui.menu" forcecreate="0">
10+
<field name="sequence">3</field>
11+
</record>
12+
<record id="purchase.menu_purchase_root" model="ir.ui.menu" forcecreate="0">
13+
<field name="sequence">4</field>
14+
</record>
15+
<record id="stock.menu_stock_root" model="ir.ui.menu" forcecreate="0">
16+
<field name="sequence">5</field>
17+
</record>
18+
<record id="account.menu_finance" model="ir.ui.menu" forcecreate="0">
19+
<field name="sequence">6</field>
20+
</record>
21+
<record id="contacts.menu_contacts" model="ir.ui.menu" forcecreate="0">
22+
<field name="sequence">7</field>
23+
</record>
24+
<record id="website.menu_website_configuration" model="ir.ui.menu" forcecreate="0">
25+
<field name="sequence">8</field>
26+
</record>
27+
<record id="stock_barcode.stock_barcode_menu" model="ir.ui.menu" forcecreate="0">
28+
<field name="sequence">9</field>
29+
</record>
30+
<record id="knowledge.knowledge_menu_root" model="ir.ui.menu" forcecreate="0">
31+
<field name="sequence">10</field>
32+
</record>
33+
<record id="mail.menu_root_discuss" model="ir.ui.menu" forcecreate="0">
34+
<field name="sequence">11</field>
35+
</record>
36+
<record id="calendar.mail_menu_calendar" model="ir.ui.menu" forcecreate="0">
37+
<field name="sequence">12</field>
38+
</record>
39+
</odoo>

agriculture_shop/data/knowledge_article.xml

Lines changed: 500 additions & 56 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<odoo noupdate="1">
3+
<record id="product_attribute_9" model="product.attribute">
4+
<field name="name">Size / Weight</field>
5+
</record>
6+
<record id="product_attribute_10" model="product.attribute">
7+
<field name="name">Size / Liter</field>
8+
</record>
9+
<record id="product_attribute_11" model="product.attribute">
10+
<field name="name">Organic</field>
11+
</record>
12+
<record id="product_attribute_12" model="product.attribute">
13+
<field name="name">Brand</field>
14+
</record>
15+
</odoo>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<odoo noupdate="1" auto_sequence="1">
3+
<record id="product_attribute_value_7" model="product.attribute.value">
4+
<field name="name">1 Kg</field>
5+
<field name="attribute_id" ref="product_attribute_9"/>
6+
</record>
7+
<record id="product_attribute_value_8" model="product.attribute.value">
8+
<field name="name">0.5 Kg</field>
9+
<field name="attribute_id" ref="product_attribute_9"/>
10+
</record>
11+
<record id="product_attribute_value_9" model="product.attribute.value">
12+
<field name="name">0.2 Kg</field>
13+
<field name="attribute_id" ref="product_attribute_9"/>
14+
</record>
15+
<record id="product_attribute_value_3" model="product.attribute.value">
16+
<field name="name">1 L</field>
17+
<field name="attribute_id" ref="product_attribute_10"/>
18+
</record>
19+
<record id="product_attribute_value_4" model="product.attribute.value">
20+
<field name="name">0.5 L</field>
21+
<field name="attribute_id" ref="product_attribute_10"/>
22+
</record>
23+
<record id="product_attribute_value_5" model="product.attribute.value">
24+
<field name="name">0.33 L</field>
25+
<field name="attribute_id" ref="product_attribute_10"/>
26+
</record>
27+
<record id="product_attribute_value_6" model="product.attribute.value">
28+
<field name="name">5 L</field>
29+
<field name="attribute_id" ref="product_attribute_10"/>
30+
</record>
31+
<record id="product_attribute_value_1" model="product.attribute.value">
32+
<field name="name">Yes</field>
33+
<field name="attribute_id" ref="product_attribute_11"/>
34+
</record>
35+
<record id="product_attribute_value_2" model="product.attribute.value">
36+
<field name="name">No</field>
37+
<field name="attribute_id" ref="product_attribute_11"/>
38+
</record>
39+
<record id="product_attribute_value_10" model="product.attribute.value">
40+
<field name="name">TheBestBrand</field>
41+
<field name="attribute_id" ref="product_attribute_12"/>
42+
</record>
43+
<record id="product_attribute_value_11" model="product.attribute.value">
44+
<field name="name">AlwaysFirst</field>
45+
<field name="attribute_id" ref="product_attribute_12"/>
46+
</record>
47+
</odoo>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<odoo noupdate="1">
3+
<record id="product_image_1" model="product.image">
4+
<field name="image_1920" type="base64" file="agriculture_shop/static/src/binary/product_image/1-image_1920"/>
5+
<field name="name">SPray.webp</field>
6+
<field name="product_tmpl_id" ref="product_product_22"/>
7+
</record>
8+
</odoo>

0 commit comments

Comments
 (0)