Commit Graph

369 Commits

Author SHA1 Message Date
Olivier Dony 5fc1a9fc7b [FIX] all: use newly introduced fields.date.context_today
Following the introduction of fields.date.context_today,
correct the main cases where we need to use the user's
timezone instead of the default UTC one.
There are probably many minor cases where this may be
useful, but those cases should be easy to fix now
that there is a common way to fix them.

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

bzr revid: odo@openerp.com-20120213180741-4hvd4p7wsep0fomf
2012-02-13 19:07:41 +01:00
Raphael Collet f634d05b7d [IMP] purchase: simplify a bit method onchange_product_id
bzr revid: rco@openerp.com-20120124123104-l1tgpcnnthyrsn9k
2012-01-24 13:31:04 +01:00
Harry (OpenERP) cdabe44260 [IMP] purchase: remove unused method
bzr revid: hmo@tinyerp.com-20120112071856-zh0bl7tn7zv0x21i
2012-01-12 12:48:56 +05:30
Harry (OpenERP) 2c6418bde6 [MERGE] merged with trunk development branch
bzr revid: hmo@tinyerp.com-20120112070927-liv9yfctl4wo5i08
2012-01-12 12:39:27 +05:30
Harry (OpenERP) a4eb2a04b5 [REF] purchase: refactor product_id_change and rename with onchange_product_id
bzr revid: hmo@tinyerp.com-20120112070240-zgsic6tjiy7j7g30
2012-01-12 12:32:40 +05:30
Raphael Collet e99959800f [MERGE] lp:852456 (purchase: fix bad context handling in product_id_change)
bzr revid: rco@openerp.com-20120111085348-wejvj1ayz9ypd5g0
2012-01-11 09:53:48 +01:00
Bharat Devnani (OpenERP) 5a12ad85fc [FIX] purchase : changed name of updated context variable in def product_id_change of purchase/purchase.py
lp bug: https://launchpad.net/bugs/852456 fixed

bzr revid: bde@tinyerp.com-20120111081148-jd2bd9596w78399v
2012-01-11 13:41:48 +05:30
Harry (OpenERP) c7d117be0c [MERGE] stock, purchase: clean onchange_product and onchange_uom in purchase.order.line and add test case to check stock valuation entries of stock.
bzr revid: hmo@tinyerp.com-20120106121612-qc156nkqngl6gmgq
2012-01-06 17:46:12 +05:30
Olivier Dony d5168e11a3 [MERGE] purchase: refactoring of PO date computation, courtesy of Benoit Guillot (Akretion)
bzr revid: odo@openerp.com-20111223133616-cwkx0wvtcdk085p0
2011-12-23 14:36:16 +01:00
Benoit Guillot 45b98c21f5 [REF] refactor to use procurement object
bzr revid: benoit.guillot@akretion.com.br-20111222160143-imuns5olo2r23crj
2011-12-22 17:01:43 +01:00
Benoit Guillot e9c1456e28 [REF] Refactor schedule_date and order_dates
bzr revid: benoit.guillot@akretion.com.br-20111222083144-btyyghy55dulim0h
2011-12-22 09:31:44 +01:00
Kirti Savalia (OpenERP) 97f262c5f4 [MERGE]:merge with latest addons
bzr revid: ksa@tinyerp.com-20111222072745-48lu6xkgl7tlyqwo
2011-12-22 12:57:45 +05:30
Olivier Dony 0d5bddc89f [MERGE] sale,purchase: better context passing during picking creation, courtesy of Akretion
Existing overriding modules also updated
to use the new API

bzr revid: odo@openerp.com-20111221153924-0a6nbc7r83tlu1jl
2011-12-21 16:39:24 +01:00
Olivier Dony 04be08d0f0 [MERGE] sale,purchase: better context passing during picking creation, courtesy of Akretion
bzr revid: odo@openerp.com-20111221131028-a5xhryqg30eghlaa
2011-12-21 14:10:28 +01:00
Mayur Maheshwari (OpenERP) ad2ed3a0b0 [FIX]purchase:frow is replace by from in tool-tip
lp bug: https://launchpad.net/bugs/907290 fixed

bzr revid: mma@tinyerp.com-20111221115930-gsh921fcf6p0x23x
2011-12-21 17:29:30 +05:30
Raphael Collet faf2dfd908 [RIP] purchase: funeral of dead code
bzr revid: rco@openerp.com-20111220150930-a47t7pjccy0v80sy
2011-12-20 16:09:30 +01:00
Raphaël Valyi 1cac7a3912 [IMP] sale; purchase: correctly propagate the context arg and assume it can be given by wkf, even if wkf engine may not support it yet (it's backward compatible anyway)
bzr revid: rvalyi@gmail.com-20111219165440-sp3fp4f8xdcleu0r
2011-12-19 14:54:40 -02:00
Kirti Savalia (OpenERP) 8af8d33637 [IMP]:code for product onchange when uom is different
bzr revid: ksa@tinyerp.com-20111205104459-p2hnekd0tazuia2n
2011-12-05 16:14:59 +05:30
Raphaël Valyi e47622c9ce [REF] purchase: use standard context argument in new modular picking creation methods appeared recently. NB this doesn't fix the fact the workflow engine doesn't pass us the context
bzr revid: rvalyi@gmail.com-20111121223137-go7ojq1ie05bffgw
2011-11-21 20:31:37 -02:00
Raphael Collet bff6674525 [MERGE] lp:800100, make invoice number, mrp order ref, purchase order ref, sale order ref, and picking ref unique per company
bzr revid: rco@openerp.com-20111117154004-fbean9hqldvrsxdq
2011-11-17 16:40:04 +01:00
Quentin (OpenERP) e54317dd2b [IMP] pruchase, account_anglo_saxon, purchase_analytic_plans: added underscore prefix on _prepare_inv_line() for consistency
bzr revid: qdp-launchpad@openerp.com-20111115153201-ny1yq1zkyjz8qxfq
2011-11-15 16:32:01 +01:00
Quentin (OpenERP) 9a3f03efe7 [REF] purchase, purchase_analytic_plans, account_anglo_saxon: changed name of function inv_line_create into prepare_inv_line
bzr revid: qdp-launchpad@openerp.com-20111115114839-3359yjv7vw0t8krn
2011-11-15 12:48:39 +01:00
Rucha (Open ERP) e54960537f [REVERT]: purchase: Reverted changes for suggestion to create the invoice with no lines, then to create the lines with the invoice_id set, as it was calling function fields more times
bzr revid: rpa@tinyerp.com-20111115101434-2hf7r4hd8fcym9mo
2011-11-15 15:44:34 +05:30
Rucha (Open ERP) 92ee535e28 [ADD]: purchase: Added docstring to action_invoice_create and inv_line_create
bzr revid: rpa@tinyerp.com-20111115071436-wqjxbhqff7oma7fl
2011-11-15 12:44:36 +05:30
Rucha (Open ERP) ce437f9503 [IMP, FIX]: purchase: changed in the signature of inv_line_create to return only dict of data so that we can use that value separately to create invoice line instead of (0, 0, {..}) that only used to generate invoice line with invoice only,
* changed signature of inv_line_create in account_anglo_saxon and purchase_analytic_plans too
* Improved logic of method a bit to create the invoice with no lines, then to create the lines with the invoice_id set. 
* TODO: docstring

bzr revid: rpa@tinyerp.com-20111115070227-317j1ij7vlthtuc0
2011-11-15 12:32:27 +05:30
Rucha (Open ERP) bb234154f6 [REF]: purchase: Improvement in variable names
bzr revid: rpa@tinyerp.com-20111115064353-yyf2z34wvmnyi5ud
2011-11-15 12:13:53 +05:30
Fabien Pinckaers 4d77356d91 misc
bzr revid: fp@tinyerp.com-20111114111810-v5jspbkway8lf6nc
2011-11-14 12:18:10 +01:00
Divyesh Makwana (Open ERP) fa247f3357 [IMP] sale,purchase,mrp,stock,account : Constraint Error-Order Reference must be unique per company
bzr revid: mdi@tinyerp.com-20111114090520-1c3psfmzdi6ts9ni
2011-11-14 14:35:20 +05:30
Fabien Pinckaers ecc200a14f merge coverage purchase
bzr revid: fp@tinyerp.com-20111113160732-7ic5t0igzh0jw2pm
2011-11-13 17:07:32 +01:00
Fabien Pinckaers 77a228421e merge: digital precision product uom
bzr revid: fp@tinyerp.com-20111111135906-kljtmr0r5tb59ia5
2011-11-11 14:59:06 +01:00
Olivier Dony d84a6c5757 [FIX] purchase: correct remaining error in last merge
action_picking_create() must only return one picking ID,
to be used to bind that picking's subflow in the PO's
workflow.

bzr revid: odo@openerp.com-20111111003127-gweu0vkcdgwi4tqd
2011-11-11 01:31:27 +01:00
Olivier Dony f8de95825c [MERGE] purchase: refactoring of picking creation, courtesy of Raphaël Valyi, Akretion
bzr revid: odo@openerp.com-20111110225802-ocpesmmtz4q68r8r
2011-11-10 23:58:02 +01:00
Vo Minh Thu 35c3aabf0b [MERGE] trigger the workflow when canceling a purchase order.
bzr revid: vmt@openerp.com-20111110132059-b0n5591f5oc91469
2011-11-10 14:20:59 +01:00
Olivier Dony 044ff3d2fe [IMP] purchase: cleanup/improve refactored code, including:
- correct wrong indentation for move/picking confirmation
- improved/corrected docstring
- change returned values to lists, as returning single ID has no sense
- simplify code when possible

bzr revid: odo@openerp.com-20111110112139-9qflyeuysrp138mt
2011-11-10 12:21:39 +01:00
DBR (OpenERP) 38aa5ab1b8 [Merge]with: lp:openobject-addons
bzr revid: dbr@tinyerp.com-20111110092719-bw74ofhw2717xxfo
2011-11-10 14:57:19 +05:30
Olivier Dony c74af1ef44 [MERGE] purchase: refactoring of picking creation, courtesy of Akretion
bzr revid: odo@openerp.com-20111109181256-hk2xo3xm5zg6uftv
2011-11-09 19:12:56 +01:00
Vo Minh Thu ca2420a728 [MERGE] Better phrasing in Invoice Control selection field (on purchase orders).
bzr revid: vmt@openerp.com-20111109141231-tads7me0z12i2tcu
2011-11-09 15:12:31 +01:00
Vo Minh Thu dc027540d0 [IMP] Corrected typo and bring some consistency in phrasing.
bzr revid: vmt@openerp.com-20111109123842-bfqhitqwl1i28f1x
2011-11-09 13:38:42 +01:00
Rucha (Open ERP) daa579c9a3 [FIX]: purchase: Fixed problem of cancelling PO was not cancelling related procurement, this was a problem of workflow of purchase order
lp bug: https://launchpad.net/bugs/868456 fixed

bzr revid: rpa@tinyerp.com-20111109114908-oci1p59e636hebsr
2011-11-09 17:19:08 +05:30
Amit Bhavsar (Open ERP) 5ae27e27e1 [polish2_purchase],rename the invoice control from PO and rename the menu from purchase/invoice control
bzr revid: amb@tinyerp.com-20111109065127-e9zl9xor5j2djive
2011-11-09 12:21:27 +05:30
Divyesh Makwana (Open ERP) 63e3886bc3 [FIX] sale : Constraint Error-Order Reference must be unique per company
lp bug: https://launchpad.net/bugs/800100 fixed

bzr revid: mdi@tinyerp.com-20111109052103-0skkpxbztxqasr05
2011-11-09 10:51:03 +05:30
Raphael Collet 60748c2b06 [MERGE] lp:882998
bzr revid: rco@openerp.com-20111109133757-srxb6kak5we5p0js
2011-11-09 14:37:57 +01:00
Divyesh Makwana (Open ERP) 6b9512dd32 [FIX] [trunk] [sale/purchase]: picking order date is not the same as the sale/purchase order date
lp bug: https://launchpad.net/bugs/882998 fixed

bzr revid: mdi@tinyerp.com-20111104045018-bqj356yrtvvwlop4
2011-11-04 10:20:18 +05:30
Bogdan Stanciu e19e1fe100 [FIX] some product_qty fields are set with hardcoded decimal precision, and some without. I added dp on all occurrences of product_qty.
lp bug: https://launchpad.net/bugs/884179 fixed

bzr revid: bogdanovidiu.stanciu@gmail.com-20111031113830-drdqvvrz032nrzh4
2011-10-31 12:38:30 +01:00
DBR (OpenERP) 75ac957971 [IMP]puchase: define wkf_warn_buyer function as dead code
bzr revid: dbr@tinyerp.com-20111031053347-1sbl8k5l9gpo5x1e
2011-10-31 11:03:47 +05:30
Raphaël Valyi fea2c90d35 [FIX] purchase: create picking in _create_pickings only if picking_id not already provided; thanks to Cloves Almeida for reporting this!
bzr revid: rvalyi@gmail.com-20111027211459-hk8n2milqo2c37vk
2011-10-27 19:14:59 -02:00
Raphaël Valyi 52e6f2ba14 [MERGE] merged addons-purchase-extensible-action-picking-create branch into trunk
bzr revid: rvalyi@gmail.com-20111027211124-upii190dd01m7pzo
2011-10-27 19:11:24 -02:00
Kirti Savalia (OpenERP) 50cc22650b [IMP]:improve name
bzr revid: ksa@tinyerp.com-20111101060629-am0qgs7h5fnj581j
2011-11-01 11:36:29 +05:30
Kirti Savalia (OpenERP) 62fc60f882 [FIX]:naming issue for order date
lp bug: https://launchpad.net/bugs/883930 fixed

bzr revid: ksa@tinyerp.com-20111101052859-32du8dccos5gl14n
2011-11-01 10:58:59 +05:30
Harry (OpenERP) 5cdac204cd [MERGE] merged parent branch
bzr revid: hmo@tinyerp.com-20111020073513-3np4krmflvtwqhuk
2011-10-20 13:05:13 +05:30