Working Days or unavailable days on Warehouse

Asked by Carlos Gutierrez

I have the working days on Manufacture, but I don't want to ship in fridays, saturday o sunday, is there any place where I can configure the unavailable shipping days?

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#1

No without program As I Know, BTW program a feature like this doesn't more than 2 hour and is prefectly factible. ;-)

If you know a litle of program on openobject.

inherit the class wher the workflow that you wan to modify.

overwrite the correct method (i don't han in memory right now BTW in the graphical workflow you can see it.)

Create a model with your criteria (dates, roles, etc... to be a little more configurable).

Something like:
Days on week not available for shipping.

Preprocess in you new inherited class the method checking data on new model.

ready!

Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#2

I made a lot of mistakes, i am writting again "corrected"

AFAIK -- No without program ,

BTW program a feature like this shouldn't take more than 2 hours and is prefectly possible do that. ;-)

If you know a little of programing on openobject.

You wll need:

You Inherit the class where is the workflow that you want to modify. "The related to stock move"

You Overwrite the correct method (i don't remember right now what it is BTW in the graphical workflow you can see it.)

Create a model with your criteria (days in week, roles to overwrite this rules, etc... to be a little more configurable).

Something like:

Days on week not available for shipping.
Roles that can overwrite this rule.

Pre-process with a super() in you new inherited class the method checking data on new inherited model made for rules.

ready!

Revision history for this message
Carlos Gutierrez (carlosgtzrdz) said :
#3

I guess I will have to learn to develop in OpenObject....

I also want to change that the delivery date has to be after the finish schedule date of production... and then validate that the working days of warehouse...

Could u recommend me a tutorial?

Gracias Nhomar!

Can you help with this problem?

Provide an answer of your own, or ask Carlos Gutierrez for more information if necessary.

To post a message you must log in.