Commit Graph

284 Commits

Author SHA1 Message Date
Quentin (OpenERP) 0170fe87bc [REF] removal of stock/wizard/mrp_procurement.py which was unused + refactoring of procurement.do_view_procurements() in order to use new API of ir.model.data
bzr revid: qdp-launchpad@openerp.com-20140507091818-hp6fgipxi1arpv4u
2014-05-07 11:18:18 +02:00
Josse Colpaert 8b84615de1 [MERGE] Merge from trunk test
bzr revid: jco@openerp.com-20140502130352-c3h1fk332eqyd78b
2014-05-02 15:03:52 +02:00
Quentin (OpenERP) 7ed26f1e07 [REF] product refactoring: prices.history model renamed into product.price.history + passed 'date' as real parameter instead of contextual one in get_history_price() because it makes more sense.
bzr revid: qdp-launchpad@openerp.com-20140428153355-vbuam1hfnah7m4wp
2014-04-28 17:33:55 +02:00
Christophe Simonis 52cfc16c2e [MERGE] forward port of branch 7.0 up to revid 10012 launchpad_translations_on_behalf_of_openerp-20140424063249-gwnojb5kvlq544nz
bzr revid: chs@openerp.com-20140424123538-rxk9got9k2on1ki1
2014-04-24 14:35:38 +02:00
Martin Trigaux f43f406355 [MERGE] [FIX] procurement: default_get in orderpoint make a search instead of hardcoding a warehouse as it's possible te user do not have access to it (e.g. multicompany), courtesy of Romain Deheele(Camptocamp)
bzr revid: mat@openerp.com-20140423100324-6stypg5uapnl1s5f
2014-04-23 12:03:24 +02:00
Quentin (OpenERP) d69f5e20ec [REF] stock: refactoring set active field on push and pull rules as a normal field (previously related on the route) as the route_id field is not required
bzr revid: qdp-launchpad@openerp.com-20140423082322-ms66ta8zq0uklw32
2014-04-23 10:23:22 +02:00
Quentin (OpenERP) 398d96f273 [MERGE] merged trunk up to revision 9327
bzr revid: qdp-launchpad@openerp.com-20140414094743-hv0u7qhigv1to2uc
2014-04-14 11:47:43 +02:00
Quentin (OpenERP) 944e39d0b5 [MERGE] procurement: performance issue. Courtesy of Holger Brunn (Therp)
lp bug: https://launchpad.net/bugs/1297887 fixed

bzr revid: qdp-launchpad@openerp.com-20140403095358-2jqitwe6se5p4mn5
2014-04-03 11:53:58 +02:00
Quentin (OpenERP) fe0e95d29b [IMP] procurement: removed the schedule_range field on res.company which was error prone and not really usefull + made the scheduler run in SUPERUSER to avoid intercompany and access rights issues + made the run of procurement as SUPERUSER too for the same reasons
bzr revid: qdp-launchpad@openerp.com-20140403071010-5mrox75rkufur2nw
2014-04-03 09:10:10 +02:00
Christophe Simonis 822ef4a621 [MERGE] forward port of branch 7.0 up to revid 9943 launchpad_translations_on_behalf_of_openerp-20140401065325-w3viflz7c33n4uis
bzr revid: chs@openerp.com-20140401184913-5hi2h11lnmadbozr
2014-04-01 20:49:13 +02:00
Holger Brunn 8f49fcb7a2 [FIX] don't browse all ids as we refresh every iteration in the worst
case

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

bzr revid: hbrunn@therp.nl-20140326142923-hvt7t2i8s9mnalki
2014-03-26 15:29:23 +01:00
david.leach@logicsupply.com d73baf5d1d [FIX] stock: while cancelling purcahse order created from procurement it availables the related internal stock move which should not and also not triggering the workflow method
bzr revid: ado@tinyerp.com-20140321055412-30i0ifkj8wnzmaer
2014-03-21 11:24:12 +05:30
Quentin (OpenERP) 2f982e6bea [FIX] a lot of changes made during code review
bzr revid: qdp-launchpad@openerp.com-20140214084650-8vcy544475urij53
2014-02-14 09:46:50 +01:00
Quentin (OpenERP) 5c9cf53177 [IMP] procurement: usability (help tooltip)
bzr revid: qdp-launchpad@openerp.com-20131220092650-xm3issomqyidbhxf
2013-12-20 10:26:50 +01:00
Quentin (OpenERP) de65037f22 [FIX] procurement: rule selection must give higher priority to manually chosen rule
bzr revid: qdp-launchpad@openerp.com-20131220092241-1zfwskb6llwyn0qr
2013-12-20 10:22:41 +01:00
Quentin (OpenERP) 0a25369a43 [FIX] procurement: when cancelling procurements, cancel only the undone ones
bzr revid: qdp-launchpad@openerp.com-20131218101345-ff2vmwsjcht66omk
2013-12-18 11:13:45 +01:00
Quentin (OpenERP) 2eacadc5d4 [FIX] stock: the scheduler must commit also when no procurement go from running -> done because there may be some that went from running -> exception
bzr revid: qdp-launchpad@openerp.com-20131217153258-vgtkr4wlqd4sn7m1
2013-12-17 16:32:58 +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 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 a382e0cc2e [FIX] procurement: magic bypass transition was incomplete and preventing pulled flows from working
The procurement workflow has a magic `bypass` transition
that acts as a fallback for MTO procurements in case the
necessary modules are not (yet) installed. For example
it will consider a MTO+Buy procurement directly satisfied
if the Purchase module is not yet installed.
However this bypass transition did not properly take
"internal pulled flows" into account, which are added
by the `stock_location` module as a third kind of procurement
type. In this case the bypass would match and never
give stock_location the chance to run.
In order to be consistent with the other procurement
methods, the bypass transition needs to be adapted.

Also updated the check_move() method to make it more
explicit rather than a side-effect.

bzr revid: odo@openerp.com-20131112151747-da67h4yavhz3k29c
2013-11-12 16:17:47 +01:00
Quentin (OpenERP) cd543d96e0 [IMP] misc usability improvements
bzr revid: qdp-launchpad@openerp.com-20131108165217-wk9b079p7jladswm
2013-11-08 17:52:17 +01:00
Quentin (OpenERP) d2d0184587 [IMP] pocurement, stock, purchase, sale_stock, stock_account: misc changes in usabilty, code refactoring and new option on procurement group propagation.
1) form view of procurement.order and procurement.rule reviewed
2) added buttons on procurement.order to jump on other procurements or pickings of same procurement.group
3) tracked some fields on procurement.order
4) used the short name of warehouse for the rule names
5) added a new choice for the procurement.group propagation in order to allow having only one reception picking for several po lines grouped in the same PO but belonging to different procurement.group at first
6) some code refactored for easiness, modularity, clarity and other obvious reasons

bzr revid: qdp-launchpad@openerp.com-20131107112053-knracfslqkfitg8b
2013-11-07 12:20:53 +01:00
Quentin (OpenERP) 6fc076087c [IMP] procurement, usability: sort procurements by id (for all procurements created at the same time)
bzr revid: qdp-launchpad@openerp.com-20131106085448-eyj2pk2y0y0rg6zn
2013-11-06 09:54:48 +01:00
Quentin (OpenERP) 61babf0c6e [IMP] procurement: added a button to reset to confirmed a cancelled procurement
bzr revid: qdp-launchpad@openerp.com-20131106083231-jnr6w30rhfkvzsbu
2013-11-06 09:32:31 +01:00
jke-openerp 5308a926d2 [IMP] Improve and fix according to review FP
bzr revid: jke@openerp.com-20131105161517-zm1ks2m8fkcf7v7i
2013-11-05 17:15:17 +01:00
Ravi Gohil (OpenERP) e0da1f9696 [FIX] procurement: User belonging to the company other then the 'Your Company' would not be able to create record for object 'stock.warehouse.orderpoint'(Warehouse/Configuration/Reordering Rules) as it tries to get the default warehouse using xml_id(warehouse0) that does not belong to current user's company : (Maintenance Case : 596679)
lp bug: https://launchpad.net/bugs/1212429 fixed
lp bug: https://launchpad.net/bugs/1210195 fixed

bzr revid: rgo@tinyerp.com-20131101072943-8ruph03nkclb6mk7
2013-11-01 12:59:43 +05:30
Quentin (OpenERP) db7bcd1dd9 [FIX] procurement: removed message_track overwriting which was not needed anymore (and the note field doesn't exist anymore)
bzr revid: qdp-launchpad@openerp.com-20131028103315-nu387n2tm9s803rs
2013-10-28 11:33:15 +01:00
Quentin (OpenERP) 2a982d199e [MERGE] merged with trunk
bzr revid: qdp-launchpad@openerp.com-20131028093247-8eegjl3zle5aoqae
2013-10-28 10:32:47 +01:00
Christophe Simonis 9a775cd3f5 [MERGE] forward port of branch 7.0 up to revid 9535 odo@openerp.com-20131021124748-x4jnibwyab4gam23
bzr revid: chs@openerp.com-20131021141431-5bdk9waai17julkb
2013-10-21 16:14:31 +02:00
Martin Trigaux 6ba45e5cbf [FIX] procurement: change SQL query to be compatible with both postgres 8.4 and 9.3
bzr revid: mat@openerp.com-20131021095735-yz9pb5pphfdgl44j
2013-10-21 11:57:35 +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 b60da2a9a3 [IMP] procurement: track only once the change of state to exception and confirmed
bzr revid: mat@openerp.com-20131017113521-5u2k9glb3o7cnmmk
2013-10-17 13:35:21 +02:00
Martin Trigaux b98f935d27 revert change of workflow
bzr revid: mat@openerp.com-20131017104426-260y7v0113q8iue9
2013-10-17 12:44:26 +02:00
Martin Trigaux b801e6eab9 [IMP] procurement: better workflow
bzr revid: mat@openerp.com-20131016150335-oikqm6twbukp666t
2013-10-16 17:03:35 +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
Quentin (OpenERP) fff2fe66da [FIX] multi-company rule of procurement.rule object
bzr revid: qdp-launchpad@openerp.com-20131011072210-llvfrr0n1a9xiyiu
2013-10-11 09:22:10 +02:00
Quentin (OpenERP) ae42b06bce [IMP] procurement: history of procurement order improved by adding a log when a rule is chosen
bzr revid: qdp-launchpad@openerp.com-20131009102245-y6cwo3beh3pk4no8
2013-10-09 12:22:45 +02:00
Quentin (OpenERP) b52d479de8 [FIX] stock: on action_done() of a move, automatically trigger a check on the linked procurements (otherwise a SO won't be set as 'delivered' as soon as the delivery is set to 'done')
bzr revid: qdp-launchpad@openerp.com-20131009080452-qgd57use2p2x1ba6
2013-10-09 10:04:52 +02:00
Quentin (OpenERP) 6602eb1fcc [FIX] some usability fixes
bzr revid: qdp-launchpad@openerp.com-20131008141834-p2efs3gimcybnmqa
2013-10-08 16:18:34 +02:00
Martin Trigaux 4c0c18b803 [FIX] purchase: avoid getting trigger loop (again), apply same fix on procurement to be consistent
bzr revid: mat@openerp.com-20131004153915-2urkq50bp8rnddnt
2013-10-04 17:39:15 +02:00
Cedric Snauwaert a6b678ff66 [FIX]fix pull rules view
bzr revid: csn@openerp.com-20130923122222-ttolozo8vjhqhhin
2013-09-23 14:22:22 +02:00
Ravi Gohil (OpenERP) 4b21537eb3 [FIX] procurement: User belonging to the company other then the 'Your Company' would not be able to create record for object 'stock.warehouse.orderpoint'(Warehouse/Configuration/Reordering Rules) as it tries to get the default warehouse using xml_id(warehouse0) that does not belong to current user's company : (Maintenance Case : 596679)
lp bug: https://launchpad.net/bugs/1212429 fixed

bzr revid: rgo@tinyerp.com-20130918122703-db7o8sz7t6hn3s8i
2013-09-18 17:57:03 +05:30
Ravi Gohil (OpenERP) 7e5afef402 [FIX] procurement: User belonging to the company other then the 'Your Company' would not be able to create record for object 'stock.warehouse.orderpoint'(Warehouse/Configuration/Reordering Rules) as it tries to get the default warehouse using xml_id(warehouse0) that does not belong to current user's company : (Maintenance Case : 596679)
lp bug: https://launchpad.net/bugs/1212429 fixed

bzr revid: rgo@tinyerp.com-20130918090905-wkby3xazxbwoih90
2013-09-18 14:39:05 +05:30
Ravi Gohil (OpenERP) 74e054201b [FIX] procurement: User belonging to the company other then the 'Your Company' would not be able to create record for object 'stock.warehouse.orderpoint'(Warehouse/Configuration/Reordering Rules) as it tries to get the default warehouse using xml_id(warehouse0) that does not belong to current user's company : (Maintenance Case : 596679)
lp bug: https://launchpad.net/bugs/1212429 fixed

bzr revid: rgo@tinyerp.com-20130918090244-edabc3uq6mfmx7vu
2013-09-18 14:32:44 +05:30
Josse Colpaert 17258b6a9a [IMP] When stock is installed and there is a rule for a product of type service, do not apply rule
bzr revid: jco@openerp.com-20130916093710-6gweaj5o0yp20ry5
2013-09-16 11:37:10 +02:00
Josse Colpaert 3c8390289b [IMP] _run method should return whether it succeeded and change the state. Other methods migth do a message_post
bzr revid: jco@openerp.com-20130819134615-m0divzqr7rslzhcx
2013-08-19 15:46:15 +02:00
Josse Colpaert 349833452a [IMP] Change test_state according to procurement_ids, do not allow running a procurement twice when it was successful and adapt view in sale_journal
bzr revid: jco@openerp.com-20130816102734-j4xrxqbz26q942ps
2013-08-16 12:27:34 +02:00
Josse Colpaert 2cda30253f [IMP] Change move_id in move_dest_id where needed (thanks to branch of psi), give error message when making purchase order for product without supplier
bzr revid: jco@openerp.com-20130812123717-y6golm2oaxn6n9pm
2013-08-12 14:37:17 +02:00
Fabien Pinckaers 22e60e3dda [FIX] procurement view
bzr revid: fp@openerp.com-20130804135218-70dnybxxkwrcmyu7
2013-08-04 15:52:18 +02:00
Fabien Pinckaers c522a3d440 [IMP] Invoice on picking cleaned
bzr revid: fp@openerp.com-20130804115325-ejsbn2qoawnrgaic
2013-08-04 13:53:25 +02:00