Commit Graph
13 Commits
Author SHA1 Message Date
Josse Colpaert 5e5cd08123 [REF] stock_account,etc: FIFO and average costing method
The new implementation of stock moves the cost of products from quants to
moves. So we have implemented the FIFO and average cost method based on
those moves instead of using quants.
 - When average price is choosed, a field average_price is set on the
   product.
 - The tests have been completed with an example of how fifo work with
   negative stock.

As the use of real price method is really rare, because of the rigor
required on traceability for such method, we removed this functionnality.
 - The tests purchase/test/fifo_price.yml have been adapted to use the
   FIFO costing method instead of real price.

The old report stock history doesn't exist anymore, and is replaced by
the move view that contains all the cost information.

The methods `get_price_unit` have been moved from the stock to
stock_account.

The methods `_set_default_price_moves` and
`set_default_price_unit_from_product` have been removed from stock.

Explaination of FIFO and average:
 - In action_done for an out move in average and fifo, the price_unit and
   stock_value are updated.
 - For FIFO, it will use the qty_remaining on the in moves to check from
   which in moves to take the stock values for the out.
 - In case of negative stock in FIFO, it puts also qty_remaining on OUTs.
 - In the case of average, it will take the cumulated value of the last
   move and divide it by the quantity in stock.  

This commit is pretty much a 'work in progress':
 - Edit 'done' moves when the costing method is FIFO doesn't trigger the
   replay the FIFO stack.
 - The landed_costs feature doesn't work.
2017-07-14 17:08:22 +02:00
Haresh Shyara 02a76becf7 [IMP] stock_account: remove security group inventory valuation
It will remove the stock setting, the group itself and remove it where
it is used in the views.  The perpetual valuation setting is only on the
internal category which is already "deeper" in the system.

It is also removed for the update price link on the product form
in case of perpetual valuation and we changed the label to Update Cost
instead of update standard/average cost.
2017-03-16 17:34:25 +01:00
Divyesh Makwana 1919945770 [MIG] stock_account: new API 2016-07-12 17:53:07 +02:00
Nicolas Martinelli 1017b0b952 [IMP] stock*: adaptation due to the new Sale module
Major changes:
- No use of UoS anymore
- Remove invoicing process

Reason: complete rewrite of the Sale module.

Responsible: fp, dbo, nim
2015-08-27 19:21:37 +02:00
qdp-odoo c04065abd8 [IMP] accounting v9. Yeeeeaah 2015-05-05 17:28:04 +02:00
ssh-odoo 74115334f6 [FIX] stock: group dependency
When installing stock without account, the group group_account_invoice is not present.
Fixes #3117
2014-10-21 18:00:37 +02:00
Josse Colpaert ad58b17e6e [IMP] Add security rules from bzr branch 2014-05-21 17:34:19 +02:00
Quentin (OpenERP) 205a13e2f5 [MERGE] stock_account, purchase: better usability in settings to install stock_account and manage options to use costing methods and invenotyr valuation
bzr revid: qdp-launchpad@openerp.com-20140415112915-k8ba71ddo1vgu0tm
2014-04-15 13:29:15 +02:00
Josse Colpaert f44d217377 [IMP] Change Generating Accounting Entries to something in stock_account which has a group as before, also stock_invoice_directly goes with it
bzr revid: jco@openerp.com-20140410112536-2texx37zzrzqbibp
2014-04-10 13:25:36 +02:00
Quentin (OpenERP) fc3b00578d [FIX] stock: installation error fixed (reference to account module which may not be installed) + stock_account: changed group implied by stock manager's one as group_account_invoice instead of group_account_user in order to give just as power as needed and not more
bzr revid: qdp-launchpad@openerp.com-20131231100228-dde6bm6w7h3qndci
2013-12-31 11:02:28 +01:00
Quentin (OpenERP) 1af2ac6f9c [FIX] fixed warnings in runbot
bzr revid: qdp-launchpad@openerp.com-20131211154840-u2nk7ztggcgewm7y
2013-12-11 16:48:40 +01:00
Quentin (OpenERP) 0b4d5b0fa6 [FIX] stock_account security rules
bzr revid: qdp-launchpad@openerp.com-20131011084818-dmbmk9aw8kvae77g
2013-10-11 10:48:18 +02:00
Quentin (OpenERP) 038fd04ea5 [WIP] split stock module in stock and stock_account that installs itself only if account+stock are installed
bzr revid: qdp-launchpad@openerp.com-20130711130528-c9jjiduqriakj9iv
2013-07-11 15:05:28 +02:00