Automatically add manufacturing orders - stock

In dolibarr, I have an endproduct (EP) consisting of two raw materials and one intermediate product (IP). The IP itself consists of two raw materials.
When I add a manufacturing order for the EP and the IP is not in stock, I'd like to add a manufacturing order for the IP automatically.
edit:{
EP and IP have their own bills of material, which are also assigned as their standard bom.
}
I searched the interwebs and tried to achieve this in dolibarr, but to no avail.
Is that even possible without a module / plugin? Can anyone point me in the right direction?

Related

Adding new product with category tree - specific price problems

I installed an add-on for bulk action (called ba_importer v 1.1.24), I upload an Excel file with my data and create a group of products.
I can set the categories' tree or manually add ID of main categories and associated. I tried with no luck to use the tree features (like Home/Products/etc) and so I use all the ID of main category and all the associated. The result is a product with the correct categories set, but with no specific price from the customer group linked to a category.
I tried to edit a single product, remove all categories and set it one by one (set one, save, set one, save etc.) and then the specific price from the group linked to a category appears to the product.
Is there a better solution? I'm thinking about make a personal PHP page that reads an Excel file and sets all the information about the product, but I'm scared to face the same problem with the specific price. 
There is no such thing as "category-related specific price",
if you have specific prices tied to customer groups , these are created as a result of the add/update product action with ps_specific_price DB entries having id_group with your restricted ID.
It is likely that the bulk module acts directly with DB queries to speed up things and bypasses this operation, I've seen this behaviour with those kind of modules in the past.
Since you are talking of a paid add-on, I would definitely seek help from the developer.

Can we increase shipping rates in shopify using shopify script?

I found similar question in the forum, and from this answer I come to know about Career service. Which looks promising initially, but after reading the doc from here, I found that there is an issue for my use case.
This is my use case:
There will be multiple items in the cart with different delivery dates set(I store delivery dates in the line_item property)
now when user go to checkout the shipping rate has to be calculated based on the delivery dates(which are stored in the line item property for each line item)
shipping price should be calculated like ...... if there is only one delivery day, we need to offer x price, if there are two different delivery dates we need to offer 2x price and so on....
so the issue is, Carrier Service uses Server side cashing and it will only ask for price if any of these(variant IDs, default shipping box weight and dimensions, variant quantities, carrier service ID, origin address, destination address, item weights and signatures) field change. It doesn't include line item properties(where I have stored delivery dates).
I have also checked the shopify scripts from here, but after some mockups I come to know that we can only provide discount to the existing shipping rates and can not add new shipping method, or increase shipping price for existing shipping method.
Please help me to find a solution for this problem.

How do I create specific quantities for specific products within Shopify?

I've got a few products where I need the quantities for a specific product to start at a number, 240 for example and then the customer can select in intervals of 240, and for a different product, say 100 units. I need a way to separate a list of quantities for separate products.
You can examine the documentation related to InventoryItem endpoints which leads to InventoryLevel endpoints. Once you get a handle on Locations, you are free to set inventory levels. Note that setting explicit amounts is no longer the fashion, instead you ask how much is there, and then modify that amount with a delta change.
So if you ask for a product's variant level, and it tells you the current availability is 0, your delta might be +240.

Openerp MRP module: assigning employees to work orders

In the MRP module, I would like to assign different employees to the work orders of a manufacturing order, so I can tarck the amount of hours and the cost for every employee (beause they will have different service products with different costs) and create analytic journal items based on this.
My question is: Is there any option or extra module for this or should I customize the MRP module?
Thanks in advance.
Regards
I see this question is from some time ago but I would like to know if you found and answer?
This is a long winded reply, but I am also needing this capability and searching any such existing module or planning develop this capability
Currently and soon to be completed is a new module with many enhancements to manufacturing order>>work order lines these include.
The ability to link a BOM component/consumed products to a routing work line on the BoM Component lines.
A constraint where by MFG Work Orders can only start when the component/consumed products assigned to them are available. This gives ability to start individual work orders as there individual consumed component products become available and to stage multiple works orders from many manufacturing orders base on which products have been picked and transfer to production.
The ability to define a constraint that previous work orders in sequence must complete before a work order can start.
New statuses on work order that waiting for product, waiting for previous work and ready.
The ability to assign warehouse locations to routing work center lines and to generate Internal Pickings not just to a specific Manufacturing orders but also to Work center work orders so that pickings can be schedule to all the current jobs needing consumable products.
What I am also planning in phase 2 of this development are feature similar to your question
allowing to define group of employees link to Routing work center lines. many2many from routing work center to employees
adding to search view on the Work Orders List View for search and group by for assigned employee or employee group.
Add ability to assign an employee to a work order
If logged in as other than the assigned employee Attempts to set work order to In Progress system will warn that they are not the assign employee for this work order. constraint can be overridden if user has manger permission he has choice to reassign work to himself or start work for the assigned employee.
Adding linkage to hr_timesheet so that time when work order is in progress is entered on employees time sheet.
Have logic that confirms employee is signed in on attendance or will automatically sign them in when a work order assigned to them is set to In Progress.
To have work order status set to paused automatically when assigned employees signs out in time sheet attendance.
to log time work was in progress on their Time sheet when work is set to pause or Finished
Regards
SL

Calculate available inventory in OpenERP

I am developing a custom module for OpenERP 7 that will track hardware installed in various venues. I have the total stock levels recorded in the Warehouse module, but I want to be able to calculate and display amount of each product that is available and the amount that is currently deployed. I'm having trouble figuring out how to do this. I have been looking at this rent module and they seem to do something with stock picking and workflows, but I'm new to OpenERP and not really sure how that works.
The other way I was thinking of was to loop through the deployments and simply calculate the amount of each item, and use functional fields to display it, but I'm not sure if that would even work, or how to do it without hard-coding all the various items.
Have a look at product.py in the stock module, specifically the get_product_available method. This allows you to pack various filter parameters into the context and then it calculates and returns stock as the net of inbound and outbound stock moves.
This method also gets used in the functional fields qty_available, virtual_available, incoming_qty and outgoing_qty. There is reasonably good explanations in the help comments in the module.
In OpenERP, something is in your stock when there's a stock move (object stock.move) with that product to your physical location as destination location, defined on Warehouse object for "Inventory Location" field. Let's say you have recorded 2 moves:
Move 1
Source Location: Supplier
Destination Location: Stock
Qty: 2
Move 2
Source Location: Stock
Destination Location: Deployed Products
Qty: 1
If you open your products list you'll see that you have 1qty of your product available. OpenERP sums all the moves for that product to and from your Stock location. So if you have no other specific needs, recording moves to some sort "Deployed Products" location should be enough.