We are using odoo manufacturing and Inventory modules. We have different 2 warehouse and locations (for example WH A and WH B).
when I manufacture on WH B.
If there are not enough raw material then it can be purchased. However, if there are enough product on WHA, I want to create automatically Transfer request from WHA to WHB.
thank you for your help
It's my pleasure to help you.
I will let you know how to solve this case in both V8 And V9
Solution For odoo version v9
Step 1 Make configuration
To do the configuration you can go to Inventory -> Configuration ->
Setting->
Location and Warehouse
Multi-Location -> Manage several locations per warehouse
Routes -> Advanced routing of products using rules
Step 2 Create the WareHouse
Create the 2 Ware House Named (for example WH A and WH-B) as per your
requirement.
TO do so you can go to this path Inventory -> Configuration ->
Setting -> Warehouse Management -> Warehouse
Step 3 Define the resupply warehouse
TO do so you can go to this path Inventory -> Configuration ->
Setting -> Warehouse Management -> Warehouse
Step 4 Create Product
Step 5 Configure the Routs
To configure the routes You can go to Inventory -> Product ->(In
selected or newly create product) Inventory -> Routs -> select the
appropriate route
Hint:
You can also go to the
Purchases -> Product ->(In selected or new created product) Inventory -> Routs -> select the appropriate route
Step 5 Define new reordering rule for the procurement
TO do so you can go to Inventory -> Configuration -> Routes ->
Select your route/ create new
Step 6 Define Push Rule/ Define Routes
TO do so you can go to Inventory -> Configuration -> Routes -> Select
your route/ create new -> Push Rule
Solution For odoo version v8
Go to this link for V8
https://www.youtube.com/watch?v=ju7MtCXlCFk
Now by performing the sales & other operation, you can check your issue will solve. still, If you are having problem Comment here. I will try my best to help you.
Related
I want to setup default account entries for creation of invoices. In that, I want to add just a customer name and the product details rest all should be there by default.
I had already given default values at so many fields but it is working only for few fields.
I want to set default values for
Account
Journal
Tax Account
In Partner Form -> Accounting
Account Receivable
Account Payable
So is there any way we can do that. For Reference check below given images
In order to set company default Account Receivable and Account Payable properties, as administrator user go to Settings → Technical → Company Properties. Find a property with name property_account_receivable_id where the Resource field is not set. If such entry does not exist, create it with the following values:
Name → property_account_receivable_id
Field → Account Receivable (res.partner)
Type → Many2One
Value → account.account,<id>
Where <id> is the database ID of the account (model: account.account) you want to use as the default value (you can find all accounts by going to Invoicing / Accounting → Adviser → Chart of Accounts. You can find out the database ID from the URL (id=<id>) when you open a single record in a form view):
For default Account Payable, analogically find or create a company property called property_account_payable_id with the following values:
Name → property_account_payable_id
Field → Account Payable (res.partner)
Type → Many2One
Value → account.account,<id>
Where <id> is the database ID of the account (model: account.account) you want to use as the default value (you can find all accounts by going to Invoicing / Accounting → Adviser → Chart of Accounts. You can find out the database ID from the URL (id=<id>) when you open a single record in a form view):
To set the default journal on invoices, as administrator user go to Settings → Technical → User-defined Defaults and click Create and fill in the following values:
Name → journal_id
Model Name → account.invoice
Default value or action reference → <id>
where <id> is the database ID of the journal (model: account.journal) you want to use as the default value (you can find all journals by going to Invoicing / Accounting → Configuration → Accounting → Journals. You can find out the database ID from the URL (id=<id>) when you open a single record in a form view):
The value for Account on invoice will come from the Customer, once you select one, and Tax Account will come from taxes defined for a given product. You can configure taxes by going to Invoicing / Accounting → Configuration → Accounting → Taxes. Alternatively, you could set user-definde default values (like for journal_id) for taxes, with the following values:
Name → account_id
Model Name → account.tax
Default value or action reference → <id>
where <id> is the database ID of the account (model: account.account) you want to use as the default value (you can find all accounts by going to Invoicing / Accounting → Adviser → Chart of Accounts. You can find out the database ID from the URL (id=<id>) when you open a single record in a form view):
How i can specify point of sale dashboard for specific user/ users who can see his/ her orders on dashboard when they logged into point of sale via their login account ?
Is there possibility to write expression with multiple OR / And conditions ?
If I understand your question well, this is how to Restrict POS user from viewing other users' orders
Create a new Record Rule (Settings > Security > Record Rules)
Named it anything you want
Object is Point of Sales Orders
Rule Definition: [('user_id','=',user.id)]
Groups Point of Sale / User
Now your POS users should only see orders created by themself.
You can also Assign a specific User to opening session on one POS by
Create a field (Settings > Database Structure > Fields)
Named it: x_user_id
Field type: many2one
Model: pos.config
Relation of object: res.users
Add the field to pos.config.form.view (Settings > User Interface > Views)
<group name="assigned_users" string="Assigned Users">
<field name="x_user_id" string="Assigned Users" />
</group>
Create a Record Rule (Settings > Security > Record Rules)
Named it anything you want
Object: pos.config
Rule Definition: [('x_user_id','=',user.id)]
Groups: Point of Sale / User
Assign user to a POS. Go to Point of Sale > Configuration > Point of Sale > Select a POS > Assigned Users
Now except Admin (with Manager role) can open Session on all POS, only assigned user can open sessions in a given POS.
I have a multi-company setup in Odoo, and I would like to limit the products that each user (under the group "User") can access (read/write/create/delete) to the products assigned to the company that the user is assigned to.
To be clear, I have:
Companies:
Company A
Company B
Users:
User A (assigned to "Company A" and user group "User")
User B (assigned to "Company B" and user group "User")
Products:
Product A (assigned to "Company A")
Product B (assigned to "Company B")
With the default setup, User A has access to both Product A and Product B, and I would like user A to have access exclusively to product A, on all modules (Sales, Inventory, POS…)
I believe that is possible to accomplish using Record Rules, but I haven't been able to do it.
I got the answer I needed from Jerome Guerriat at the the Odoo forums. I only needed to tick a checkbox under the general settings page:
There already is a product.product multicompany rule (but it is
inactive by default): "Product multi-company"
xml id: product.product_comp_rule
You can active it by going to settings => general settings. Check
"manage multi company", then uncheck "share product to all companies"
link here: https://www.odoo.com/es_ES/forum/ayuda-1/question/limit-products-to-company-assigned-to-user-in-multi-company-odoo-9-102686
Odoo's record rules are the way to do it, as you mentioned it by yourself. For example look at the rule for sales order (sale.order). It's global (no group selected/assigned) and it's restricted to companies:
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
Now create your own record rules for product.template and product.product like the example under Settings/Technical/Security/Record Rules (in Odoo V9 you'll need developer mode to see this) or within a custom module.
Odoo Can manage share partner and product without add rules:
Use multiple company
Don`t forget add parent company at Settings > Users> companies (choose child company)
Uncheck Share partner to all companies and Share product to all companies at Settings > General Settings > Shared resources
So, Difference company can`t read product.....
i have one grocery shop and i have thinking to sell this product online .so i used one CMS cart called "prestashop" .
even i have installed and start working on that .but i have some problem.
i have my own inventory database to store all product details . with a UI that i can add product details to database (quantity, price etc) . now my question is how can interact with my inventory database using prestashop cart ?
is it possible ? what is the best way to do it ? please help
You can add the categories from external db using a script in your prestashop site. For this create a module with frontcontroller (for cron job or to run the script) and inside the script select the categories from external db, then loop through the categories and inside the loop create prestashop category object and place the category fields to the category object and call the category save method.
public function initContent()
{
parent::initContent();
$temp_categs = array(); //
//fetch data into $temp_catgs from the external db with the help mysqli_connect or whatever the driver - never modify presta db settings - write php code for db connection to external db and fetch
//loop through the fetched categories
foreach($temp_categs as $categ){
$new_categ = new Category();
//set all the field values
$new_categ->name = $categ['name'];
$new_categ->id_parent = $categ['id_parent'];
$new_categ->active = true;
$new_categ->field2 = $categ['field2'];
$new_categ->field3 = $categ['field3'];
//save the category - a category with new id will be created in prestashop
$new_categ->save();
}
}
}
I hope this would help you.
I'm building a app to manage some products, so I have a Product model.
We sell, buy and when a product breakes, we send it to the manufacturer for repair.
So, I've created a Movimentation model, that will take care of all ins and outs of a product.
When we bought a product, a In record is generated for each product on the Movimentation table. Out for sells and repairs.
I'm trying to make it the more restfull possible, and that's why I'm confused.
How should I do it? A resource :movimentation ? Or should I create a "product_in" and a "product_out" controllers?
I want urls to be like "movimentation/:to_where/:direction" (in/out) and so draw the views correctly.
Any toughts?
you could have a movimentation_controller with in/out actions and :to_where param. so for the routes you have two choices:
#if you have other REST actions do this:
resources :movimentation do
member do
get :in
get :out
end
end
#or go with a match:
match '/movimentation/in/:to_where' => 'movimentation#in'
match '/movimentation/out/:to_where' => 'movimentation#out'
cheers,
A.