Skip to content

Commit

Permalink
agriculture: review suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrs-odoo committed Feb 26, 2024
1 parent fc8b80f commit cf31b9a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion agriculture/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
'name': 'Agricultural Retail',
'version': '1.0',
'category': 'Manufacturing',
'category': 'Retail',
'description': """
Tailored setup for agricultural retail businesses engaged in B2B and B2C sales of farming products.
Point of Sale (POS) stores & website offer categorised items such as seeds, pesticides, plant nutrition, and farming equipment.
Expand Down
2 changes: 1 addition & 1 deletion agriculture/data/ir_actions_server.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="action_lead_survey_start" model="ir.actions.server">
<field name="name">lead survey start</field>
<field name="name">Lead Survey Start</field>
<field name="model_id" ref = "crm.model_crm_lead"/>
<field name="state">code</field>
<field name="code"><![CDATA[
Expand Down
4 changes: 2 additions & 2 deletions agriculture/data/ir_model_fields.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
<field name="model_id" ref="crm.model_crm_lead"/>
<field name="field_description">Answer</field>
<field name="relation">survey.user_input</field>
</record>
</record>
<record id="new_related_field_product_story" model="ir.model.fields">
<field name="name">x_product_story</field>
<field name="ttype">binary</field>
<field name="model_id" ref="account.model_account_move_line"/>
<field name="field_description">Product Story</field>
<field name="related">product_id.x_binary_field_product_template</field>
</record>
</record>
</odoo>
13 changes: 6 additions & 7 deletions agriculture/data/knowledge_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@
</ul>
<h1>​Business Flows<br/></h1>
<h2 style="margin-bottom: 0px;"><font class="text-o-color-5">Flow 1: Purchase</font></h2>
<p style="margin-bottom: 0px;"><br/></p>
<br/>
<ul style="margin-bottom: 0px;">
<li>
Create RFQ for product "<font style="color: rgb(57, 132, 198);"><strong>Onion Seeds</strong></font>" for vendor "<span style="color: rgb(57, 132, 198); font-size: 0.9625rem;"><strong>Gloster Organics</strong></span>"
<span style="color: rgb(17, 24, 39); font-size: 0.9625rem;">"</span>
</li>
<li>
Create other RFQ for same product with vendor "<font style="color: rgb(57, 132, 198);"><strong>Astron Agro</strong></font>"
Expand All @@ -76,7 +75,7 @@
<h2 style="margin-bottom: 0px;">
<font class="text-black"><strong>Flow 2: Sales from Website (B2B / B2C) </strong></font>
</h2>
<p style="margin-bottom: 0px;"><br/></p>
<br/>
<p>If the Customer is selling their Products from the website.</p>
<p>To do that,</p>
<ul>
Expand All @@ -89,9 +88,9 @@
<li>Make Payment<font class="text-o-color-5">​</font></li>
</ul>
<h2 style="margin-bottom: 0px;">Flow 3: Sales from POS</h2>
<p style="margin-bottom: 0px;"><br/></p>
<br/>
<p style="margin-bottom: 0px;">For Small Products, customers place orders and make payments at the shop.</p>
<p style="margin-bottom: 0px;"><br/></p>
<br/>
<ul style="margin-bottom: 0px;">
<li>Create a POS order with required product</li>
<li>
Expand All @@ -100,9 +99,9 @@
<li>Receive Payment</li>
</ul>
<h2 style="margin-bottom: 0px;"><font class="text-black">Flow 4: Opportunity from Website (B2B) and Survey fill</font></h2>
<p style="margin-bottom: 0px;"><br/></p>
<br/>
<p style="margin-bottom: 0px;">Receive the opportunities through a website. <br/></p>
<p style="margin-bottom: 0px;"><br/></p>
<br/>
<ul style="margin-bottom: 0px;">
<li>
​Prospect will go to website and fill the "<font style="color: rgb(57, 132, 198);"><strong>Contact us</strong></font>" form.
Expand Down
4 changes: 2 additions & 2 deletions agriculture/demo/loyalty_program.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id="loyalty_program_2" model="loyalty.program">
<field name="name">Discount code</field>
<field name="name">Discount Code</field>
<field name="program_type">promo_code</field>
<field name="trigger">with_code</field>
<field name="date_from" eval="DateTime.today() - relativedelta(days=5)"/>
<field name="date_to" eval="DateTime.today() + relativedelta(days=3)"/>
<field name="date_to" eval="DateTime.today() + relativedelta(days=3)"/>
</record>
</odoo>
4 changes: 2 additions & 2 deletions agriculture/demo/purchase_order_post.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
ref('purchase_order_line_1')
]"/>
</function>
<record id="cancel_alternative" model="purchase.requisition.alternative.warning">
<record id="purchase_requisition_alternative_1" model="purchase.requisition.alternative.warning">
<field name="alternative_po_ids" eval="[Command.link(ref('purchase_order_2'))]"/>
</record>
<function name="action_cancel_alternatives" model="purchase.requisition.alternative.warning">
<value eval="[
ref('cancel_alternative'),
ref('purchase_requisition_alternative_1'),
]"/>
</function>
<function name="button_confirm" model="purchase.order">
Expand Down
2 changes: 1 addition & 1 deletion agriculture/demo/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<record id="res_partner_10" model="res.partner">
<field name="name">Shailendra Rathod(SRA)</field>
<field name="email">sra@example.com</field>
<field name="phone">9876543210</field>
<field name="phone">+33 0144195000</field>
<field name="street">Street -1</field>
<field name="street2">Street -2</field>
<field name="zip">190293</field>
Expand Down
2 changes: 0 additions & 2 deletions agriculture/demo/stock_lot.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
<field name="name">LOT0001</field>
<field name="product_id" ref="product_product_12"/>
<field name="location_id" ref="stock.stock_location_stock"/>
<field name="product_expiry_reminded" eval="True"/>
</record>
<record id="stock_lot_2" model="stock.lot">
<field name="name">Lot001</field>
<field name="product_id" ref="product_product_8"/>
<field name="product_expiry_reminded" eval="True"/>
</record>
</odoo>

0 comments on commit cf31b9a

Please sign in to comment.