Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] commodity_trading: module for commodity trading #46

Open
wants to merge 11 commits into
base: 17.0
Choose a base branch
from

Conversation

paso-odoo
Copy link
Contributor

Tailored for commodity traders (e.g., soybeans, wheat) with comprehensive functions, including CRM, quality checks, and broker involvement for product quality and commissions.

task-3460474

@paso-odoo paso-odoo changed the base branch from 17.0 to master November 10, 2023 07:29
@paso-odoo paso-odoo changed the base branch from master to 17.0 November 10, 2023 07:30
@paso-odoo paso-odoo force-pushed the master-commodity_trading-arpa branch 2 times, most recently from 2be0640 to 15e9762 Compare December 28, 2023 04:54
@shag-odoo shag-odoo force-pushed the master-commodity_trading-arpa branch from 9ae5b11 to 7cab004 Compare January 12, 2024 07:11
@dhrs-odoo dhrs-odoo force-pushed the master-commodity_trading-arpa branch 3 times, most recently from 84719fd to 5a105ec Compare February 21, 2024 13:12
Copy link
Contributor Author

@paso-odoo paso-odoo left a comment

Choose a reason for hiding this comment

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

@dhrs-odoo
Thanks for working on this PR.

Here are some technical comments.
Cheers!

'knowledge',
'mrp_account',
'product_expiry',
# 'product_images',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
# 'product_images',
# 'product_images',

?

'quality_mrp',
'quality_mrp_workorder',
'sale_mrp',
# 'sale_planning',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

?

Comment on lines 25 to 27
# 'website_appointment',
# 'website_crm',
# 'website_crm_partner_assign',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If not needed remove it

Comment on lines 18 to 17
'quality_mrp',
'quality_mrp_workorder',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe quality_mrp_workorder is enough for installing the quality_mrp

Comment on lines 12 to 25
<field name="help">
<![CDATA[
<p class="o_view_nocontent_smiling_face">
This is your new action.
</p>
<p>By default, it contains a list and a form view and possibly
other view types depending on the options you chose for your model.
</p>
<p>
You can start customizing these screens by clicking on the Studio
icon on the top right corner (you can also customize this help message there).
</p>
]]>
</field>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
<field name="help">
<![CDATA[
<p class="o_view_nocontent_smiling_face">
This is your new action.
</p>
<p>By default, it contains a list and a form view and possibly
other view types depending on the options you chose for your model.
</p>
<p>
You can start customizing these screens by clicking on the Studio
icon on the top right corner (you can also customize this help message there).
</p>
]]>
</field>

<field name="product_id" ref="product_product_1"/>
<field name="order_id" ref="purchase_order_1"/>
<field name="product_qty">125.0</field>
<field name="price_unit">123.0</field>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

price_unit comes should be set in the product. If already set, we need to remove it

Comment on lines 3 to 29
<record id="sale_order_1" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
<record id="sale_order_2" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
<record id="sale_order_3" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
<record id="sale_order_4" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
<record id="sale_order_5" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
<record id="sale_order_6" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
<record id="sale_order_7" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
<record id="sale_order_8" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
<record id="sale_order_9" model="sale.order">
<field name="partner_id" ref="res_partner_8"/>
</record>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would add user_id
Also need to correct the indentation

<field name="product_id" ref="product_product_8"/>
<field name="order_id" ref="sale_order_4"/>
<field name="product_uom_qty">27.0</field>
<field name="price_unit">123.0</field>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

price_unit should be configured in product itself.

@@ -0,0 +1,131 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change

<function name="action_done" model="stock.picking.batch">
<value model="stock.picking.batch" eval="obj().env.ref('commodity_trading.sale_order_5').picking_ids.batch_id.id"/>
</function>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change

@dhrs-odoo dhrs-odoo force-pushed the master-commodity_trading-arpa branch 3 times, most recently from adbdfd1 to c6d92cc Compare March 5, 2024 10:12
@dhrs-odoo
Copy link
Contributor

Hello @paso-odoo
Thanks for the suggestions
Given changes has been implemented
Thank You 😇

@dhrs-odoo dhrs-odoo force-pushed the master-commodity_trading-arpa branch from c6d92cc to 94a85c5 Compare March 15, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants