Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1115 Zobrazení

I'm trying to add a button that would allow me to +1 the stock with a single click. 

I use Odoo Online, does anyone have a solution? 

I tried several things via server actions with python code but I cannot increment the stock line and creating a line does not work either. 

Thank you in advance for your help

Avatar
Zrušit
Nejlepší odpověď

To add a button that increments the stock by 1 with a single click in Odoo Online, you'll need to use a combination of a server action and Python code. Since you are working with Odoo Online, the customization options are limited compared to the on-premise version. 

Avatar
Zrušit
Nejlepší odpověď

​Implementing a feature in Odoo 18 Online that allows users to increment product stock directly from the product page can enhance inventory management efficiency. Here's how you can approach this:​

1. Understanding Odoo Online's Limitations:

Odoo Online restricts direct customization of server-side actions and code modifications. This means that adding a custom button to increment stock levels directly on the product page isn't straightforward due to these limitations.​

2. Alternative Solutions:

Given the constraints, consider the following approaches:​

  • Utilize Existing Inventory Adjustment Features:
    • Odoo provides robust inventory adjustment functionalities that allow you to update stock levels efficiently.​
    • Steps to Adjust Inventory:
      • Navigate to the Inventory module.
      • Go to Operations and select Inventory Adjustments.
      • Click on Create to initiate a new adjustment.
      • Add the product and specify the new quantity.
      • Validate the adjustment to update the stock levels.
      • For detailed instructions, refer to Odoo's documentation on Inventory Adjustments.
  • Leverage Scheduled Actions or Automated Rules:
    • If your stock increments follow a predictable pattern or schedule, you can set up automated reordering rules.​
    • Steps to Configure Reordering Rules:
      • Navigate to the Inventory module.
      • Go to Operations and select Replenishment.
      • Click on New to create a reordering rule for the desired product.
      • Set the minimum and maximum quantities, and define the quantities to order.
      • For a comprehensive guide, see Odoo's documentation on Reordering Rules.

3. Recommendations for Automation and Best Practices:

  • Regularly Review Stock Levels:
    • Periodically assess your inventory to ensure that stock levels are accurate and reflect actual quantities.​
  • Train Staff on Inventory Procedures:
    • Ensure that team members are familiar with Odoo's inventory adjustment processes to maintain consistency and accuracy.​
  • Document Changes:
    • Maintain records of all inventory adjustments for auditing and tracking purposes.​

At Wan Buffer Services, we specialize in optimizing Odoo's capabilities to align with your business needs. While Odoo Online has certain customization limitations, we can assist in exploring alternative solutions or transitioning to Odoo.sh or On-Premise versions for greater flexibility. 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 25
1027
3
srp 24
2438
0
srp 21
2526
2
bře 15
8816
1
kvě 25
1026