Commit Graph

197 Commits

Author SHA1 Message Date
Pedro M. Baeza ec18bf6f44 [FIX] purchase_requisition: onchange argument format
Pass fiscal position ID instead of recordset on onchange_product_id
2015-06-11 14:11:06 +02:00
Nicolas Lempereur c40d5065fa [FIX] purchase: get taxes when create rfq from bid
When creating a request for quotation from a call for bids, the suppliers
taxes where not present in the quotation. Since a product `taxes_id` field
is a many2many, the unused triplets syntax caused the issue.

fixes #5307
2015-03-03 10:00:27 +01:00
Nicolas Lempereur 85ede15793 [FIX] purchase: get taxes when create rfq from bid
When creating a request for quotation from a call for bids, the suppliers
taxes where not present in the quotation. Since a product `taxes_id` field
is a many2many, the unused triplets syntax caused the issue.

fixes #5307
2015-03-02 09:11:13 +01:00
Denis Ledoux 87dd06c941 [MERGE] forward port of branch saas-3 up to 8c150c6 2015-01-15 14:43:32 +01:00
Denis Ledoux a692c6e934 [MERGE] forward port of branch 7.0 up to f406847 2015-01-15 11:49:28 +01:00
Martin Trigaux e6df0a21e9 [FIX] purchase_requisition: restrict selection to purchasable products
Fixes #4582
2015-01-08 11:43:28 +01:00
Cedric Snauwaert 32bbc34458 [FIX] purchase_requisition: change active_id to tender_id in widget context
this is due to commit 6ed774de61 and a37bad205b which removes the active_id from context if the target==curent which is the case of this widget, we therefore can not use active_id here.

fix #2385
2014-10-15 14:47:13 +02:00
Josse Colpaert 26cb72d104 [FIX] Currency_id on purchase requisition + move created from procurement should go to location of procurement not of rule (procurement location can be child of rule location. In handy for customer locations)
[FIX] Other elements of purchase of purchase requisition

[IMP] Picking type on purchase requisition

[FIX] Location of purchase
2014-10-14 23:19:15 +02:00
Thibault Delavallée 7cad4baa84 [FIX] [CLEAN] Various: fixed / cleaned use of dict.fromkeys.
Indeed using fromkeys with a list / dict as argument leads to the creation
of shared list / dict. This could create some ugly side effects when
used in loops. This commit fixes or cleans this kind of statement to avoid
unwanted side effects.
2014-09-18 11:18:30 +02:00
qdp-odoo 82bb9b0880 [FIX] purchase_requisition: converting the date into datetime using the timezone of the requisition's responsible 2014-07-10 19:03:07 +02:00
qdp-odoo 42bd6e5240 [FIX] purchase_requisition: use fields.date.date_to_datetime() to convert date into datetime... which simply makre sense 2014-07-10 16:24:04 +02:00
qdp-odoo e9abc723c0 Changed the type of fields.date_order on purhcase.order object from date to datetime 2014-07-08 16:04:09 +02:00
Raphael Collet 33eb3dffb2 [REM] models: remove the magic methods signal_XXX() 2014-07-07 11:50:30 +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
Olivier Dony 668b8c2b2d [FIX] Forward-port of saas-5 up to 0d330ca 2014-06-25 18:58:19 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Christophe Simonis 45b2e4e122 [IMP] purchase_requisition: lint file 2014-06-25 15:38:49 +02:00
Christophe Simonis 46d69b5308 [FIX] purchase_requisition: revert f68c835
These changes are not needed anymore with new WMS.
2014-06-25 15:32:57 +02:00
Christophe Simonis 9e8e3653f2 [MERGE] forward port of branch saas-4 up to f68c835 2014-06-25 12:43:41 +02:00
Christophe Simonis a66f3dd992 [MERGE] forward port of branch 7.0 up to df6b37c 2014-06-25 12:27:43 +02:00
Denis Ledoux dee969929a [FIX] purchase_requisition: duplicated stock moves
When a purchase requisition is created from a procurement order, a first stock move is created, not associated to any purchase orders
Then, on purchase order creation and confirmation, in the purchase requisition, new stock moves are created, associated to the purchase order.
The existing stock move issued from the procurement order which created the purchase requisition remained untouched, leading to wrong inventory values
To fix this, the destination location of the stock move of the procurement order is written on the source location
A proper fix should be to use a dedicated workflow for puchase requisition, but this can't be done in 7.0, it has to be done in master/trunk
2014-06-25 12:00:14 +02:00
Denis Ledoux 8e83dbff5d [MERGE] Forward-port of 7.0 bugfixes up to 7d3453d119 2014-06-24 12:27:09 +02:00
Denis Ledoux 7d3453d119 [FIX] purchase_requisition: broken procurement wkf
If a purchase requisition is created instead of a purchase order for a procurement order, the method make_po should not return the id of this requisition, as methods calling the make_po method expects ids of purchase orders, not purchase requisition ids.

Besides, on purchase requisition done or cancel, we set the procurement order accordingly, without the use of the workflow. We consider this as crappy, the proper fix should be the use of a dedicated workflow for purchase requisition, but I cannot be done in stable branches. This aims trunk/master.
2014-06-24 12:12:27 +02:00
Christophe Matthieu 43977deb71 [IMP] product: refactoring of product variant. The main view became the view of product template and the product product (or product variant) are created with the variant values combinaison. Bom is splitted into bom and bom line and can use the variant combinaison. 2014-05-27 09:42:52 +02:00
Denis Ledoux e61d12bfa7 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 9160 revid:dle@openerp.com-20140325112413-xs5z7y81rhyjt0rd
bzr revid: dle@openerp.com-20140325112909-zpfi67tx8yfxwnqe
2014-03-25 12:29:09 +01:00
Denis Ledoux 02459f8d4a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9929 revid:dle@openerp.com-20140325104921-x8zjx5p71l1o3uif
bzr revid: dle@openerp.com-20140310133913-465x5t3n1bo7fu98
bzr revid: dle@openerp.com-20140311164146-2s599kogbqj8e94l
bzr revid: dle@openerp.com-20140312111149-u6y036aej3ywq7et
bzr revid: dle@openerp.com-20140312121145-06s1jvct9v4m7l6s
bzr revid: mat@openerp.com-20140313084409-c0kckxemy3in0mlo
bzr revid: chs@openerp.com-20140313163420-ifa4hyixj722d6jo
bzr revid: chs@openerp.com-20140314102034-g0nzryvwhrpzdas9
bzr revid: chs@openerp.com-20140314104803-19c5snl2fcuih91o
bzr revid: odo@openerp.com-20140314143519-x6rzcfkkqxwc0e1g
bzr revid: chs@openerp.com-20140318110229-y8098w3shdpmoig2
bzr revid: dle@openerp.com-20140318151824-sscl4m8p87emjl8s
bzr revid: dle@openerp.com-20140320112618-yfyihlwz66ryeqf5
bzr revid: dle@openerp.com-20140320161003-j01cc6sqves2wnp2
bzr revid: dle@openerp.com-20140320181252-4gqcog22p1ex0pz7
bzr revid: dle@openerp.com-20140321140450-8ulnhr76qybiadks
bzr revid: dle@openerp.com-20140324104743-ubvu8st7emq9pg1q
bzr revid: dle@openerp.com-20140325112413-xs5z7y81rhyjt0rd
2014-03-25 12:24:13 +01:00
Quentin (OpenERP) 4a1eb6eb12 [FIX] purchase_requisition: fixed warning (field purchase_requisition_id does not exist in purchase.order.line)
bzr revid: qdp-launchpad@openerp.com-20140217204104-o2329ec8fz0hwyo0
2014-02-17 21:41:04 +01:00
Quentin (OpenERP) 8d389015d4 [FIX] purchase_requisition: fixed flows related to procurement and purchase_requisition
bzr revid: qdp-launchpad@openerp.com-20140217150538-i321idcf68ux5h8h
2014-02-17 16:05:38 +01:00
Cedric Snauwaert 9596fd7077 [FIX]condition to generate purchase requisition from procurement was uncomplete
lp bug: https://launchpad.net/bugs/1269504 fixed

bzr revid: csn@openerp.com-20140121145444-oaceg3qwdzgb5gss
2014-01-21 15:54:44 +01:00
Dharti Ratani (Open ERP) 02224a3f11 [FIX]Added the refernce of the supplier in price_get method while creating purchase order from purchase requisition, as without supplier the price unit in PO was 0 when the pricelist item was based on Supplier Price in the product form
bzr revid: dhr@tinyerp.com-20131212052544-skljxsrxea4o8efm
2013-12-12 10:55:44 +05:30
Christophe Matthieu 6652856445 [FIX] website_sale: link; product: clean code and use product.template for supplierinfo
bzr revid: chm@openerp.com-20131209163254-k9dwxw48rcgz1hbs
2013-12-09 17:32:54 +01:00
Christophe Simonis 6b05beecc1 [MERGE] forward port of branch 7.0 up to revid 9651 chs@openerp.com-20131127104459-jb77x7quwcvtifm7
bzr revid: dle@openerp.com-20131126171210-jovr7e7efehuq3s2
bzr revid: chs@openerp.com-20131127110046-4ow36dkuuyzgf1pl
2013-11-27 12:00:46 +01:00
Christophe Simonis 49fa5cab61 [FIX] purchase_requisition: copy method _get_warehouse from purchase module to avoid crash if purchase_requisition is updated but not purchase
bzr revid: chs@openerp.com-20131126180726-ng0gue9pedmuykj9
2013-11-26 19:07:26 +01:00
Christophe Simonis b1b787545b [FIX] purchase_requisition: choose the right warehouse when creating purchase requisitions from procurement orders + allow to work in batch.
bzr revid: chs@openerp.com-20131126135254-96l4xk9q4fd0iwpu
2013-11-26 14:52:54 +01:00
Quentin (OpenERP) 3df02e56a5 [MERGE] merged the branch from camptocamp with enhancements in purchase_requisition: it includes a bugfix and the introduction of 2 methods to prepare values before theh creatino of objects (to ease the inheritancy)
bzr revid: qdp-launchpad@openerp.com-20131104140724-z6kt0zqwrtbjso5a
2013-11-04 15:07:24 +01:00
Guewen Baconnier 99b27fa6b4 [FIX] open_product_line() returns an action, the action should not propagate the current context but use its own one (so it will have the correct active_model, active_ids and so on, otherwise, it propagates a wrong active_ids and active_model).
bzr revid: guewen.baconnier@camptocamp.com-20131104102646-pjdorjqfaic3sw7b
2013-11-04 11:26:46 +01:00
Guewen Baconnier 0cf5e41afc [IMP] extracted '_prepare' method to be able to customize the creation of po from tenders
bzr revid: guewen.baconnier@camptocamp.com-20131104101957-krpkp24ctc4k3zjy
2013-11-04 11:19:57 +01:00
Josse Colpaert d207edc369 [IMP] Move sale_stock_workflow towards sale_workflow and make sure project_mrp tests pass
bzr revid: jco@openerp.com-20130910154822-u2if98d4r32rtibi
2013-09-10 17:48:22 +02:00
Quentin (OpenERP) a4aabf020d [FIX] purchase_requisition
bzr revid: qdp-launchpad@openerp.com-20130910091218-vdsxm3byovguo82f
2013-09-10 11:12:18 +02:00
Randhir Mayatra (OpenERP) dc152e121b [IMP] update location_id for requisition
bzr revid: rma@tinyerp.com-20130905053725-s5ip43hlwg0ojnr5
2013-09-05 11:07:25 +05:30
Randhir Mayatra (OpenERP) 8523c16a26 [IMP] add required field location_id
bzr revid: rma@tinyerp.com-20130904084009-ec0kd0g7bizzn69d
2013-09-04 14:10:09 +05:30
Quentin (OpenERP) 8a23802e9e [IMP] stock: removed location input and location output on warehouse
bzr revid: qdp-launchpad@openerp.com-20130903090334-iqtk4a762volg5s2
2013-09-03 11:03: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
Quentin (OpenERP) ec67f64121 [MERGE] fix purchase_requisition
bzr revid: qdp-launchpad@openerp.com-20130806123801-ay8k7li796zig10h
2013-08-06 14:38:01 +02:00
Randhir Mayatra (OpenERP) 867c7b1694 [IMP] edit method tender_cancel
bzr revid: rma@tinyerp.com-20130806121516-2n08cojx25bgjjmy
2013-08-06 17:45:16 +05:30
Randhir Mayatra (OpenERP) f2ea856ae1 [IMP] change in method tender_cancel
bzr revid: rma@tinyerp.com-20130806111841-ufjwqozr5bgj5c8i
2013-08-06 16:48:41 +05:30
Randhir Mayatra (OpenERP) dd8c53c075 [IMP] Solve the yml testing issues for purchase requisition
bzr revid: rma@tinyerp.com-20130806093717-2uwc5bj8xyjer350
2013-08-06 15:07:17 +05:30
Quentin (OpenERP) 6ad84ce1ad [MERGE] merged csn branch with purchase and purchase tender improvements (workflow, features...)
bzr revid: qdp-launchpad@openerp.com-20130731171625-o8gun3jrobzpvu62
2013-07-31 19:16:25 +02:00
Cedric Snauwaert b8379f0b84 [FIX]correct use of workflow signal for purchase and purchase_requisition
bzr revid: csn@openerp.com-20130730143301-q29qj133q4guys5z
2013-07-30 16:33:01 +02:00
Quentin (OpenERP) aad106a3aa [WIP] code review
bzr revid: qdp-launchpad@openerp.com-20130730103127-d9m5lwvdtgft1fj6
2013-07-30 12:31:27 +02:00