Odoo Automated Action to Python Code

Job ID: 31466470

Budget: $30 – $250 USD

Hello,
I specify what needs to be done in Odoo ecommerce.
Frontend:
There are different categories in the odoo ecommerce module.


+All Product
+Category A
-Product1 (belongs to category A)
-Sub Cat A
- Product2
-Sub Cat A
-Product3

+Category B
-Product3
-Sub Cat B
-Product4
-Sub Cat B

... And Cat C, Cat D etc...

if a customer has added the product named "Product2" to the Cart -> Other products should be able to select only from the main category named Category A and the subcategories of Category A.
It cannot select products from the subcategories of category B and subcategory B.

If the product that the customer adds to the cart is B, he can only select products from the Main category B and its B subcategories.

A popup warning will appear for this.
Warning : You are not allowed to add anything from other categories.

Backend:
Using Odoo automated action and pyhton

If the all products unapproved Quotation belong to Category A then assign an a salesman1 and approve to Quotation.
If the all products unapproved Quotation belong to Category B then assign an a salesman2 and auto approve to Quotation .
Related categories: Python Software Architecture ERP Odoo