Commit Graph

1210 Commits

Author SHA1 Message Date
Denis Ledoux 1fb1a6f2af [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9789 revid:dle@openerp.com-20140124120102-we2yxio553ws2yz4
bzr revid: dle@openerp.com-20140120174449-tui0a24zgn9bien2
bzr revid: dle@openerp.com-20140121125538-ke7i6kaz486hwgl8
bzr revid: dle@openerp.com-20140122134115-0ogjemlqe327xoac
bzr revid: dle@openerp.com-20140123103655-mf2zslfbgue97ed2
bzr revid: dle@openerp.com-20140124121027-uk9zy4dx9tqlsblr
2014-01-24 13:10:27 +01:00
Denis Ledoux d69ecb8d8f [FIX] mrp, stock: avoid float rounding errors using float_compare
bzr revid: dle@openerp.com-20140122133822-fkt5gqanpptlx9jx
2014-01-22 14:38:22 +01:00
Denis Ledoux 15e39ebb3b [FIX] stock: stock picking workflow signaling on the wrong model
Since 7.0, signaling has changed, and the change was not wrongly done here, on the wrong model (self.signal_ instead of self.pool.get('stock.picking').signal_)
Therefore, created chained picking were not confirmed and were left in draft.
For instance, push rules were creating internal moves in draft state instead of confirmed state

bzr revid: dle@openerp.com-20131210173828-bah4lllgvi61r1s3
2013-12-10 18:38:28 +01:00
Christophe Simonis 0ac4a8f696 [MERGE] forward port of branch 7.0 up to revid 9668 launchpad_translations_on_behalf_of_openerp-20131130053134-6u83vcd1133xs8yf
bzr revid: chs@openerp.com-20131130130014-hi5h5a00kjx0dbvp
2013-11-30 14:00:14 +01:00
Martin Trigaux 9542ae89aa [FIX] stock: switch ids new - old picking in the message informing the back order was created (opw 594402)
Post on delivered picking that the backorder was created. Was inconsitent with the field 'Back order of'

bzr revid: mat@openerp.com-20131128145059-p3mw969z3lotkn26
2013-11-28 15:50:59 +01:00
Christophe Simonis 6f67143908 [FIX] *: do not call deprecated method LocalService()
bzr revid: chs@openerp.com-20131121120611-06h1pki3460tzj1s
2013-11-21 13:06:11 +01:00
Olivier Dony 2cba6a5355 [MERGE] Forward-port of latest 7.0 fixes up to rev 9629 rev-id odo@openerp.com-20131121153230-keie85rmes2zh2o8
bzr revid: chs@openerp.com-20131121112139-aw2ara1i1xymue62
bzr revid: odo@openerp.com-20131121154205-ul9hf9tz3h0x2n7m
2013-11-21 16:42:05 +01:00
Olivier Dony 17144e9914 [FIX] stock.picking.in: typo in default_get implementation
bzr revid: odo@openerp.com-20131121153230-keie85rmes2zh2o8
2013-11-21 16:32:30 +01:00
Martin Trigaux b6b86f34f4 [MERGE] [FIX] stock: correctly recount quantity when split on multiple locations for product reservations (opw 600277)
bzr revid: mat@openerp.com-20131121112321-fdttljrrogsbihf2
2013-11-21 12:23:21 +01:00
Christophe Simonis 82da5541e2 [MERGE] remove warnings
bzr revid: chs@openerp.com-20131120161051-pk7n0itjcxx06uwm
2013-11-20 17:10:51 +01:00
Olivier Dony 44664076da [MERGE] Forward-port of latest 7.0 fixes up to rev 9618 rev-id: dle@openerp.com-20131120142131-s333lyva85cyn41o
bzr revid: odo@openerp.com-20131120144059-yyh7emvgdarff09b
bzr revid: odo@openerp.com-20131120144318-11nmn1zj00zmi10z
2013-11-20 15:43:18 +01:00
Olivier Dony f638bc39e4 [FIX] stock: stock.picking.in/out (technical models used to separate several picking types) should also apply _defaults from stock.picking
bzr revid: odo@openerp.com-20131112170133-7o607q6uq2nmuia5
2013-11-12 18:01:33 +01:00
Olivier Dony 520cc1306f [REVERT] stock: commit 9557/OPW 600078 assumes that production lot are guaranteed to be set on each relevant move
This assumption is incorrect in OpenERP v7. The WMS
design in OpenERP 7 and previous versions only permits
tracking production lots (aka serial numbers) on
incoming moves, outgoing moves and production moves.
You can specify production lots on internal moves too,
but the system will also generate internal moves for
many reasons, and nothing guarantees that they will
have the right lots assigned.
This is a design decision, and this means that we
must never enforce the availability of specific
production lots.

This features will be available in OpenERP 8 through
the use of an extra concept called "Quants", that
will make this kind of tracking possible.

bzr revid: odo@openerp.com-20131112153925-1s2b8f2eo568wpxh
2013-11-12 16:39:25 +01:00
Christophe Simonis 4166baa1ba [FIX] stock: mute orm logger before checking access rules
bzr revid: chs@openerp.com-20131108224724-3u72ec3molct34he
2013-11-08 23:47:24 +01:00
Dhruti Shastri (OpenERP) 36b4236e1c [stock] : Wrong Invoice generated due to product_uos_qty not updated (case ref:600277)
bzr revid: dhs@tinyerp.com-20131107113547-d6o11hiu7d8y8g4g
2013-11-07 17:05:47 +05:30
Olivier Dony 05e067415d [FIX] stock: chained location type `Customers` was not working at all for pickings without partner
This can create inconsistencies in the warehouse inventory
in case delivery orders are not customer-specific, e.g.
when using the POS.
When there is no destination customer we can still use
the default Customers locations.

bzr revid: odo@openerp.com-20131107105302-hf8lublc1x3qc87h
2013-11-07 11:53:02 +01:00
Martin Trigaux 2d863f53a2 [MERGE] [FIX] stock: add missing context in account move creation during valuation, courtesy of Lorenzo Battistini (Agile BG)
lp bug: https://launchpad.net/bugs/1184610 fixed

bzr revid: mat@openerp.com-20131119164255-qlvy8p40ztzblova
2013-11-19 17:42:55 +01:00
Olivier Dony 6be89e5f82 [FIX] stock: no early currency rounding when computing average price
It is a common need to set a higher decimal precision
for `Product Price` (i.e. the product cost field) for
high volume / low value items. This may typically
require up to 4-6 decimals for e.g. EUR/USD-based
companies where the currency has 2 decimals.
In that case the product cost should be stored with
full precision without applying the currency rounding.
The appropriate currency rounding will be applied
anyway as soon as a transaction actually uses that
product cost (typically in a SO/PO)

bzr revid: odo@openerp.com-20131104173232-84g115x6ykxoc1rh
2013-11-04 18:32:32 +01:00
Olivier Dony a6ca3b043f [FIX] stock: programming error in average price computation for multiple lines of the same product
While processing a picking we must keep track of
previously processed lines as they modify the
stock on hand but are not yet included in the
`qty_available` function.
Negative stock on hand is handled as if
the stock was zero as far as the average
price computation is concerned.

bzr revid: odo@openerp.com-20131104171245-z1lgsplyu4cdz9gc
2013-11-04 18:12:45 +01:00
Martin Trigaux 621b9f54c8 [FIX] stock: use eventual serial number attribute into account while doing product reservation
bzr revid: mat@openerp.com-20131030145432-2sij3p1dae8ghzuz
2013-10-30 15:54:32 +01:00
Olivier Dony 9b7398820e [DOC] stock: for the record, rationale for stock.location.complete_name being stored
bzr revid: odo@openerp.com-20131023163247-bir34amewsxiby2t
2013-10-23 18:32:47 +02:00
Denis Ledoux 1a555475cc [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9529 rev-id: mat@openerp.com-20131018120428-2vdmdm2th8rz57zr
bzr revid: dle@openerp.com-20131018121236-zp221von16vekthp
2013-10-18 14:12:36 +02:00
Martin Trigaux 98d31e411f [FIX] stock: correctly handle case when we have no child location
bzr revid: mat@openerp.com-20131015112016-vj6yr6kfxfe8go2p
2013-10-15 13:20:16 +02:00
Olivier Dony 8ac110c4dd [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5098 rev-id: odo@openerp.com-20131011123914-7zuvd9mch21yxgj8
bzr revid: dle@openerp.com-20131009131902-a93nsbou4w8y0vlx
bzr revid: chs@openerp.com-20131009175454-j06y1ngylfbqyrpj
bzr revid: dle@openerp.com-20130918160049-fo88fl7uyhfoofkv
bzr revid: dle@openerp.com-20130924130544-kmkyr0d73cusvdav
bzr revid: odo@openerp.com-20131011134433-nyfjipvlql4xu127
2013-10-11 15:44:33 +02:00
Olivier Dony bec80227d9 [FIX] account_voucher, product, stock: use selection widgets for magic context fields, to pass IDs in the context instead of strings
Many2one fields resolve to strings when used
as `self` within the @context or @filter_domain
attributes of a search field, because they
must be able to support partial matches,
e.g. search for "Sto" to match "Stock".
In many case the code was not prepared to accept
string for the magic context values, so the
magic fields now caused crashes.

The widget="selection" attribute was dropped
during the search view cleanup for 7.0,
without noticing this unfortunate side-effect,
at revision:
  addons 7.0 revno 7142 revid:qdp-launchpad@openerp.com-20120731150358-jqd3eoz06imzlx01

lp bug: https://launchpad.net/bugs/1192484 fixed

bzr revid: odo@openerp.com-20131004105218-edvb5ewduqar3x88
2013-10-04 12:52:18 +02:00
Denis Ledoux 274cf1e293 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9475 rev-id: dle@openerp.com-20130923162428-g0s3o9tid09ogfv3
bzr revid: dle@openerp.com-20130923165651-0jt823r5wy37enw6
2013-09-23 18:56:51 +02:00
Martin Trigaux 2d25026e3f [IMP] stock: improve performances of _product_reserve by reducing the number of locations that are checked (opw#590466)
bzr revid: mat@openerp.com-20130920112437-giswgxm7o6d17iaf
2013-09-20 13:24:37 +02:00
Denis Ledoux 546a191f0a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9459 rev-id: fva@openerp.com-20130918153347-fy4nuvbm82ngfb8x
bzr revid: mat@openerp.com-20130826135110-f9q4p65ds2aholcw
bzr revid: dle@openerp.com-20130828141129-ecxl2vlpb8vw0o9f
bzr revid: dle@openerp.com-20130828162659-n8a0ku9o3h01qaov
bzr revid: dle@openerp.com-20130830094205-q3itwd7x0246d9n6
bzr revid: dle@openerp.com-20130830133604-mfnfbscn5wdk4vi4
bzr revid: dle@openerp.com-20130902131244-v9uh0s8rg4889i7j
bzr revid: mat@openerp.com-20130903134105-68ziuaccreu6rs61
bzr revid: chs@openerp.com-20130906171851-jtfsf4au1k30wwlr
bzr revid: dle@openerp.com-20130909103120-k5oefxgebhyslac3
bzr revid: dle@openerp.com-20130909170047-pbzw4ernvcpivbhh
bzr revid: chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: tde@openerp.com-20130912121059-k840pi4rwdzpez8g
bzr revid: dle@openerp.com-20130913085251-p906ci2divy82jur
bzr revid: tde@openerp.com-20130913092546-kzshg1a7sls566l8
bzr revid: mat@openerp.com-20130917122102-drf8fj9lrjj0fvju
bzr revid: mat@openerp.com-20130917161614-w8u2c1ayeb5kxm30
bzr revid: dle@openerp.com-20130918161305-7ep1642nxzyy3vhd
2013-09-18 18:13:05 +02:00
Martin Trigaux edf34053ad [FIX] stock: use user's language as default value to fetch product translation
bzr revid: mat@openerp.com-20130917074045-4o5t46t7fucqr354
2013-09-17 09:40:45 +02:00
Martin Trigaux 833bc853db [MERGE] [FIX] stock: Correctly pass referece for Chained Location (case: 593003)
bzr revid: mat@openerp.com-20130909153221-0o6nt9d9x0kfk7vt
2013-09-09 17:32:21 +02:00
Martin Trigaux 1ae3118c54 [FIX] stock: change wrong variable name
bzr revid: mat@openerp.com-20130909091837-jkzfijspdyw2g79y
2013-09-09 11:18:37 +02:00
Martin Trigaux f17ab8b43c [FIX] stock: overwrite message_{un,}subscribe on stock.picking.{in,out}
lp bug: https://launchpad.net/bugs/1197169 fixed

bzr revid: mat@openerp.com-20130909081952-t6x482m9f3vt6xmg
2013-09-09 10:19:52 +02:00
Martin Trigaux 33001ec5ff [FIX] stock: post messages on stock.pciking instead of stock.picking.in/out to be able to display messages on the form
This will only display newly posted messages, not already existing.
To do so apply the following SQL command:
UPDATE mail_message SET model = 'stock.picking' WHERE model = 'stock.picking.in' OR model = 'stock.picking.out';

lp bug: https://launchpad.net/bugs/1197169 fixed

bzr revid: mat@openerp.com-20130828151434-5nu7o0ybguh86w6f
2013-08-28 17:14:34 +02:00
Christophe Simonis 58868227f9 [MERGE] forward port of branch 7.0 up to revid 9382 chs@openerp.com-20130823131214-ipouwtnz8r16mlvv
bzr revid: chs@openerp.com-20130823143114-83tdjhbsdes0kydr
2013-08-23 16:31:14 +02:00
Martin Trigaux 3d6dc36407 [MERGE] base mp, courtesy of Alexandre Fayolle (camptocamp)
lp bug: https://launchpad.net/bugs/1182111 fixed

bzr revid: mat@openerp.com-20130823095912-5kwshj6nkdzduejx
2013-08-23 11:59:12 +02:00
Denis Ledoux a99b5786d1 [MERGE] Forward-port of 7.0 bugfixes up to rev. 9337 (dle@openerp.com-20130731153129-8hmqrgsg3e9d533f)
bzr revid: mat@openerp.com-20130726073123-6buqe3rg321gj5rw
bzr revid: odo@openerp.com-20130730110536-a74ea14pwb2y03ay
bzr revid: dle@openerp.com-20130801123703-frjhpeqwocsjo7ge
2013-08-01 14:37:03 +02:00
Martin Trigaux 38bf262119 [IMP] stock: more fault tolerant usage of xml id
bzr revid: mat@openerp.com-20130731092732-9fa0xb66mo7uakb4
2013-07-31 11:27:32 +02:00
Martin Trigaux 2f07aac8b2 [FIX] stock: remove warning popup on update product quantity wizard and correctly verify access rights on stock.location
lp bug: https://launchpad.net/bugs/1200194 fixed

bzr revid: mat@openerp.com-20130729135844-jtanbteqtg52ztnu
2013-07-29 15:58:44 +02:00
Martin Trigaux ecc9c506a5 [IMP] stock: don't raise error on default values if removed default stock locations data
lp bug: https://launchpad.net/bugs/1178876 fixed

bzr revid: mat@openerp.com-20130729121120-7xh05hcmo8iwbyfk
2013-07-29 14:11:20 +02:00
Martin Trigaux 10cda48728 [IMP] stock: don't raise error on default values if removed default stock locations data
bzr revid: mat@openerp.com-20130729102923-xx55fmomv72qbji6
2013-07-29 12:29:23 +02:00
RGA(OpenERP) 0ef9e37899 [FIX] Drag & Drop of incomming shipments in calendar view don't write max/min date
bzr revid: rgaopenerp-20130702114049-nap90vsqbjekuf8r
2013-07-02 17:10:49 +05:30
Somesh Khare (OpenERP) 636fc01ea1 [FIX] stock : decription field not translated according to the user language (Ref : Case 594181)
bzr revid: skh@openerp.com-20130626130820-dqlifitughjr7pcd
2013-06-26 18:38:20 +05:30
Christophe Simonis 6a9adbca62 [MERGE] forward port of branch 7.0 up to revid 9236 mat@openerp.com-20130613160953-itt79mu5xrl7suv4
bzr revid: chs@openerp.com-20130613181503-82234mo34wxb0oap
2013-06-13 20:15:03 +02:00
Martin Trigaux ed4123dfe8 [MERGE] stock: Chained location: cancelling receptions set chained moves as confirmed
bzr revid: mat@openerp.com-20130610130540-3aj3mamjp337k5yu
2013-06-10 15:05:40 +02:00
Christophe Matthieu 9966ba5608 [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607155350-ouvs6d9ibkbz0qof
2013-06-07 17:53:50 +02:00
Martin Trigaux 6341ea655e [MERGE] [FIX] stock: decimal precision wrong when invoice a purchaseorder with invoicing Based on incoming shipments
bzr revid: mat@openerp.com-20130607122151-rnnguw3hlb31923p
2013-06-07 14:21:51 +02:00
Christophe Matthieu 9d9e3d2ef8 [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607113829-1mi6jk18c2v3jjhn
2013-06-07 13:38:29 +02:00
Dhruti Shastri (OpenERP) 0426c3ee8c [stock] : Referece for Chained Location always set to False(case: 593003)
bzr revid: dhs@tinyerp.com-20130605051304-7jzwz8sfmzuo616k
2013-06-05 10:43:04 +05:30
Olivier Dony 0f983a0146 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9183
rev-id launchpad_translations_on_behalf_of_openerp-20130531070107-7d2k818beg8965ll

bzr revid: odo@openerp.com-20130603121852-jdl6vlo9dmjk0rlc
2013-06-03 14:18:52 +02:00
Josse Colpaert 619bbffa5f [IMP] Change src dest main currency when creating accounting entries for stock
bzr revid: jco@openerp.com-20130530150441-fgr5aoi89v4gvra1
2013-05-30 17:04:41 +02:00