Commit Graph

6 Commits

Author SHA1 Message Date
Goffin Simon a433ae65cb [FIX] purchase: default picking_type_id with ir.values
The deleted code put the same picking_type_id for all companies.
The function _get_picking_in returns the right default picking_type_id
according to the company.

Steps to reproduce:
-stock.warehouse0 is on company A.
-Define another company B with its own warehouse.
-Update the purchase module -> a new default value for picking_type_id on purchase
order for company B is created wtih the value of company A
-Create a purchase order on company B, Odoo tries to get the picking_type_id from company A.
If user doesn't have any rights on company A, it occurs a security warning.
Otherwise the purchase order is linked to a picking operation of another company.

opw:694059
2016-12-01 10:04:30 +01:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Quentin (OpenERP) e077a96cdd [REF] purchase: cleaning the TODO messages
bzr revid: qdp-launchpad@openerp.com-20140425091128-13uuwk7txzjoos6z
2014-04-25 11:11:28 +02:00
Quentin (OpenERP) 171c086414 [MERGE] jke branch with fixes, improvement of warehouse config...
bzr revid: qdp-launchpad@openerp.com-20131028084702-j0e5c8i4df84zsfy
2013-10-28 09:47:02 +01:00
Quentin (OpenERP) 45c990e833 [REF] some refactoring
bzr revid: qdp-launchpad@openerp.com-20131023134021-jf2n0l1coh7uuc0c
2013-10-23 15:40:21 +02:00
jke-openerp 7778ab8ec4 [FIX] Fix the bug when we install Purchase without demo data
bzr revid: jke@openerp.com-20131022115426-rwaqhllotyrj52rv
2013-10-22 13:54:26 +02:00