Commit Graph

34 Commits

Author SHA1 Message Date
Lionel Sausin
749f69e669 [IMP] Decouple the quantity for templates and variants
There are cases where we dot NOT want to simply sum the quantities of all the
variants. For example when dealing with manufacturing capacities, we may have
to chose between variants because we can't make ALL of them with the same
components.

So instead of a simple non-modular implementation, we'll let each module define
his own implementation of how to compute the product template's quantity
available for sale.

Conflicts:
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py
2016-03-21 14:36:11 +01:00
Alexandre Fayolle
7cc0b2beab product_available improvements
* fix the dependencies for the computed field

* use api.multi instead of api.one to avoid calling
  super()._immediately_usable_qty in a loop (this improves perfs on a tree view
  display)
2016-03-21 12:11:19 +01:00
OCA Transbot
b020ff21c2 OCA Transbot updated translations from Transifex 2016-02-28 02:17:52 -05:00
Atchuthan, Sodexis
7599471de7 [9.0][PORT] Stock available immediately 2016-02-10 11:42:16 +05:30
Pedro M. Baeza
bb6c64772f [MIG] Make modules uninstallable 2015-10-14 02:54:54 +02:00
Stéphane Bidoul
c1e7621067 [UPD] prefix versions with 8.0 2015-10-09 10:03:18 +02:00
OCA Transbot
727b415685 OCA Transbot updated translations from Transifex 2015-10-05 06:16:20 -04:00
Lionel Sausin
aa6478d244 Fix the beta lint checks of Travis 2015-09-16 09:35:18 +02:00
Lionel Sausin
3f45564185 Restore the features of stock_available_immediately
The previous fix restored stock_available but then there was no way to exclude the incomming moves from the count. This belongs in stock_available_immediately, restoring it cleanly.
This commit also takes care to respect the distinction between templates and variants, so it should fix https://github.com/OCA/stock-logistics-warehouse/issues/73 too.
2015-09-09 15:03:40 +02:00
Lionel Sausin
bc25e1395d Revert "[DEL] removed references to product.py, not needed anymore, the quant calculations done in product template are fine."
This reverts commit d6dee6f90d.
2015-09-09 14:06:49 +02:00
Lionel Sausin
11a308372e Revert "[DEL] remove old tests, rewriting"
This reverts commit c74aab47e9.
2015-09-09 14:06:44 +02:00
gfcapalbo
c74aab47e9 [DEL] remove old tests, rewriting 2015-07-02 18:32:57 +02:00
gfcapalbo
d6dee6f90d [DEL] removed references to product.py, not needed anymore, the quant
calculations done in product template are fine.
2015-07-02 18:29:56 +02:00
gfcapalbo
baeea357a3 [Fix] Typo 2015-06-23 17:07:56 +02:00
gfcapalbo
933b86041f [ADD] tests 2015-06-22 19:22:16 +02:00
gfcapalbo
6c16913493 [FIX] corrected calculation of immediately_usable_qty on product.product and
product.template, now takes in account variants and correctly displays value.
[FLAKE8]

Removing duplicate modules and moving README.rst into __unported__
2015-06-19 16:58:01 +02:00
Lionel Sausin
83a85c8ed9 Merge branch '8.0' of https://github.com/OCA/stock-logistics-warehouse into 8.0-stock_available_immediately2
Conflicts:
	stock_available_immediately/__openerp__.py
2015-03-02 17:43:37 +01:00
Lionel Sausin (Numérigraphe)
7820f81a62 [IMP] READMEs and TODOs
Cherry-picked from v7 at 8add4bea7e

Conflicts:
	__unported__/stock_available_mrp/__openerp__.py
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py
2015-03-02 17:27:55 +01:00
Lionel Sausin
8504307c7b [IMP] stock_available* uses new API 2015-03-02 17:27:55 +01:00
Lionel Sausin (Numérigraphe)
cb186fe179 [ADD] stock_available
Generic module to compute the stock quantity available to promise using several implementations.
stock_available_immediatly is changed to become the first optional implementation.
Cherry pick of commit 0b060f619f from the v7 branch
2015-03-02 17:27:55 +01:00
gfcapalbo
f727011275 [FLAKE8] plus small fix 2015-02-18 16:29:31 +01:00
gfcapalbo
ebd2a8549c Merge branch 'stock_available_immediately2' of github.com:Therp/stock-logistics-warehouse into stock_available_immediately2
Conflicts:
	stock_available_immediately/product.py
2015-02-18 14:06:38 +01:00
gfcapalbo
446bcc7e43 [UPD] move out from unported to 8.0
[UPG] Upgraded to version 8, fixed references to new 8.0  views and  moved fields that were in  product.product to product.template
[RFR] Removing useless code and renaming
2015-02-18 11:31:46 +01:00
gfcapalbo
9eaca1db83 [UPD] move out from unported to 8 for update
[UPG] Upgraded to version 8, fixed references to new 8.0  views and  moved fields that were in  product.product to product.template

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPG] stock available immediately, corrected the calculation method of
immediately_usable_qty to take in accountthe sign change in outgoing_qty
(from negative to positive) in version 8.

[FLAKE8]

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.
2015-02-18 10:29:22 +01:00
Alexandre Fayolle
37dd9c5412 mark unported module as uninstallable 2014-07-01 15:09:45 +02:00
Laurent Mignon (Acsone)
467a86eec4 Use relative import in __init__.py and complte module path for others import 2014-02-19 12:43:35 +01:00
Laurent Mignon (Acsone)
ce0f591cff remove remaining deprecated things 2014-01-24 18:11:21 +01:00
Laurent Mignon (Acsone)
6247f93885 Fix view ID 2013-12-17 14:41:17 +01:00
Laurent Mignon (Acsone)
7b0a36644a pep-8 2013-12-16 14:01:26 +01:00
Laurent Mignon (Acsone)
a9b1321c71 Migrate stock_available_immediately to 7.0 2013-12-16 13:50:33 +01:00
Joel Grand-Guillaume
b69b87bc84 [MIGR] Make all module uninstallable until we start migrating them. 2013-02-13 09:46:41 +01:00
Guewen Baconnier @ Camptocamp
cabe1cf627 [IMP] stock_available_immediately: licensed under AGPL-3 instead of GPL-3 with author agreement, improved help messages and pep8
(lp:c2c-addons/6.1  rev 45.1.8)
2012-03-14 16:36:38 +01:00
Guewen Baconnier @ Camptocamp
21d42d5335 [MRG] stock_available_immediately from c2c-ecom-addons
(lp:c2c-addons/6.1  rev 45.1.7)
2012-03-14 16:36:18 +01:00
unknown
4a22d083e7 [ADD] moved modules
(lp:c2c-addons/6.1  rev 28.1.10)
2012-04-24 10:53:45 +02:00