Skip to content

Conversation

@frva-odoo
Copy link
Contributor

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

@robodoo
Copy link
Collaborator

robodoo commented Oct 14, 2025

Pull request status dashboard

@frva-odoo frva-odoo force-pushed the 19.0-agriculture-store-v2-frva branch 3 times, most recently from a3ab6a7 to cc6c688 Compare October 17, 2025 14:56
@frva-odoo frva-odoo force-pushed the 19.0-agriculture-store-v2-frva branch from cc6c688 to 68b1a42 Compare October 21, 2025 12:10
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
@frva-odoo frva-odoo force-pushed the 19.0-agriculture-store-v2-frva branch from 68b1a42 to 53594e5 Compare October 21, 2025 15:13
Copy link
Collaborator

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

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

Please also update the pot (test was removed, but we still need to)

@@ -1,14 +1,14 @@
{
'name': 'Agricultural Store',
'version': '1.1',
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
'version': '1.1',
'version': '1.2',

the <b>Suggest toggle</b> on the catalog (available from the purchase line).</p>
<p>
<img
src="https://190-agrishop.odoo.com/web/image/1401-0d2effae/image.png?access_token=d7b4f3f8-4987-4678-88d2-e867dbc9487a"
Copy link
Collaborator

Choose a reason for hiding this comment

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

😮

</record>
<record id="product_attribute_value_8" model="product.attribute.value">
<field name="name">0.5 Kg</field>
<field name="sequence">1</field>
Copy link
Collaborator

Choose a reason for hiding this comment

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

better use auto_sequence, no?

Suggested change
<field name="sequence">1</field>

<odoo noupdate="1">
<record id="product_image_1" model="product.image">
<field name="image_1920" type="base64" file="agriculture_shop/static/src/binary/product_image/1-image_1920"/>
<field name="name">SPray.webp</field>
Copy link
Collaborator

Choose a reason for hiding this comment

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

in the backend, it should be a jpg/png, not a webp (the website will do the automatic conversion)

<field name="expiration_time">10</field>
<field name="available_in_pos" eval="True"/>
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_4')])]"/>
<field name="qty_available">20.0</field>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Didn't know we could set the quantity available that way. But since it creates stock.quant, this should be done in demo/

<field name="street">13619 Dewitt Rd, Dewitt, MI 48820, USA</field>
<field name="zip">48820</field>
<field name="city">DeWitt</field>
<field name="reveal_id">52de6119-6228-40ea-abaa-35ee4ed09e07</field>
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
<field name="reveal_id">52de6119-6228-40ea-abaa-35ee4ed09e07</field>

Comment on lines +51 to +62
<record id="sale_order_line_12" model="sale.order.line">
<field name="order_id" ref="sale_order_6"/>
<field name="product_id" ref="product_product_34"/>
<field name="price_unit">-1400.0</field>
</record>
<record id="sale_order_line_11" model="sale.order.line">
<field name="order_id" ref="sale_order_6"/>
<field name="sequence">13</field>
<field name="display_type">line_note</field>
<field name="name"><![CDATA[This quotation receives the current discount. A 45% discount will be applied to your final qualifying order if you purchase a total volume equal to ten times this quotation's amount within the next year.]]></field>
<field name="product_uom_qty" eval="False"/>
</record>
Copy link
Collaborator

Choose a reason for hiding this comment

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

A discount should be added via a function call

</record>
<record id="sale_order_line_13" model="sale.order.line">
<field name="order_id" ref="sale_order_6"/>
<field name="product_id" ref="delivery.product_product_delivery"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

same for delivery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants