Commit Graph

299 Commits

Author SHA1 Message Date
Holger Brunn 1e8f8eabec [IMP] procurement, stock: make procurement.rule.name and stock.location.route.name translatable
Closes #4222
2015-07-08 13:42:59 +02:00
Josse Colpaert 8c8056d95f [IMP] Query should pass through orm and as such the refreshes can be removed in the code, which will go faster as it is done automatically by the new api 2014-12-02 16:38:36 +01:00
Josse Colpaert 2f5ca4380a Revert "[IMP] Remove unnecessary refresh statements because of new api"
This reverts commit b213438176.
2014-11-17 09:44:10 +01:00
Josse Colpaert b213438176 [IMP] Remove unnecessary refresh statements because of new api 2014-11-17 09:24:06 +01:00
Olivier Dony e11eddf753 [MERGE] Forward-port of saas-5 up to 20cc18d 2014-08-13 20:46:47 +02:00
Denis Ledoux ca55a24374 [FIX] procurement, stock: forward port of bug fix 3609ba10f2 2014-08-13 12:00:38 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Josse Colpaert 3b636a5df0 [WIP] Simplify procurement check and sales order workflow and that way phantom boms will work 2014-07-15 18:38:06 +02: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
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Josse Colpaert f30cf0cf1b [IMP] Run schedulers and minimum stock rules done by company + purchase order should change date when adding (to) lines 2014-06-11 14:05:13 +02:00
Josse Colpaert 1c04f4d3d1 Merge remote-tracking branch 'odoo/master' into master-wmsstaging3-jco 2014-06-10 10:32:36 +02:00
Olivier Dony 1e9b41e2a4 [FIX] procurement: restore fix for background procurement from 9b6f5dc, accidentally reverted by WMS branch for v8
Probably forgotten during a sync with master, as the
fix belongs to a different file now.
2014-06-02 19:21:23 +02:00
Josse Colpaert 9376d16938 [IMP] Put cost method only once, make sure extra moves get moves in consequent pickings, default buy route on template 2014-06-02 09:58:09 +02:00
Josse Colpaert 6905b58f46 [IMP] Picking priorities to priority of move instead + propagation + show package operations after done 2014-05-22 11:02:58 +02:00
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