On 24/09/13 16:11 +0200, Cédric Krier wrote:
> On 24/09/13 15:29 +0200, Nicolas Évrard wrote:
> > Hello,
> > 
> > I have started a new blueprint that define how we could handle
> > different rules wrt the drop shipment process.
> > 
> >     https://code.google.com/p/tryton/wiki/DropShipmentRules
> > 
> > There is a pending question related to the place where the
> > drop_shipment_rule object should be stored.
> > 
> > Initially I though about the warehouse because I find it logical that
> > different warehouses might use different policies.
> > 
> > Cédric has raised concerns about this choice.
> > 
> > Another option that might be logical would be to add a property in the
> > sale.config object in order to define company-wide default for this
> > value.
> 
> I think there is no need to get a Model with a one2many because such
> rules apply on all the company.
> If different behavior is expected to be based on location then a new
> matching field for location would be added to the rules.
> 
> The question could be more is a rule matching pattern the right solution
> for this feature.
> An other possible solution will be to just improve
> sale_supply_drop_shipment to allow a computation of the property
> "drop_shipment" on the ProductSupplier instead of fixed value.

Finally, I don't think any of those are good solution.
When I think about this subject, I see two kind of way:

    - static value (current implementation) where the company don't want
      to receive product at all (because it can not manage it).

    - non-static value where the company wants to optimise the shipment
      and warehouse cost. But this one can not be managed correctly by
      static rules because such optimisation will depend on many
      parameters like: sale frequency, quantities, stock quantities,
      supplier delivery cost etc.
      So this are too much parameter to be computed on the fly which
      means this optimisation should be done by a background process
      which will update the static value for the period until the next
      run.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpZVFozxERYY.pgp
Description: PGP signature

Reply via email to