Commit Graph

222 Commits

Author SHA1 Message Date
Xavier Morel f5b88f6309 [IMP] minor perf improvement during tests
During tests, some creation of user records would unnecessarily trigger
password reset or set a password, both of which would trigger password
hashing which takes some time (for good reasons).

Fix by:
* passing no_reset_password in YAML tests and some Python tests still
  missing it (a number of Python tests already used it)
* removing passwords from YAML records as they're never necessary, the
  test user records are not expected to ever log in
2015-06-26 14:22:29 +02:00
Alexandre Fayolle a922d39632 [ADD] sale, delivery: tests for sales prepaid flow
Test uses cases for revision b7f1b9c01e
2015-05-06 17:29:37 +02:00
Guewen Baconnier 3a314780c0 [FIX] sale_*, delivery: more consistent ignore of cancelled SO lines
Sales Order lines have a cancelled state, but this state is not
always considered when looping over lines. This check is
done in some places already and this patch's aim is to do it in the
remaining places.

- Cancel the procurement of a sale line in sale.order.line
instead of sale.order, so a line canceled individually with
sale_order_line.button_cancel will properly cancel it
procurement.
- Sale report: uses the state of lines instead of Sales order,
so canceled lines of not-canceled orders are correctly represented
in the analysis.
- test: do not create invoices lines for canceled sale lines
- test: creation of moves with canceled lines
- test: check if lines are still canceled when sale order is done

Closes #6036
2015-04-24 17:29:51 +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
Christophe Matthieu fd2821086f [MERGE] sync with trunk
bzr revid: chm@openerp.com-20131202150925-eqsi0uu0fqtwimhj
2013-12-02 16:09:25 +01:00
Christophe Simonis bb1e256f5b [MERGE] forward port of branch saas-2 up to revid 9010 dle@openerp.com-20131125143003-vjtzj1c5051pdnk3
bzr revid: chs@openerp.com-20131125150054-b135qshkx6icakgk
2013-11-25 16:00:54 +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
Christophe Simonis c59474804b [FIX] sale/edi: do not import non-existing field date_planned
bzr revid: chs@openerp.com-20131031185633-qf5eus62nwf3xs0m
2013-10-31 19:56:33 +01:00
Christophe Matthieu d2108bf33c [FIX] sale: change test because product's demo datas have changed
bzr revid: chm@openerp.com-20131015102133-s78olcy53ypu21c5
2013-10-15 12:21:33 +02:00
Martin Trigaux 11308f37dd [FIX] test: avoid getting error when trying to send an email to the newly created user (email replaced by login)
bzr revid: mat@openerp.com-20131003143234-8tu732aa4rmycoif
2013-10-03 16:32:34 +02:00
sgo@tinyerp.com fbfd8a4b42 [IMP]improve string and add groups in groups_id in sale and sale stock
bzr revid: sgo@tinyerp.com-20130507084316-v1tiw294n8imfj1v
2013-05-07 14:13:16 +05:30
sgo@tinyerp.com 1e14b22435 [IMP]add email to user as per new improvement
bzr revid: sgo@tinyerp.com-20130320054049-4cr1a52dlpfw2lgf
2013-03-20 11:10:49 +05:30
Foram Katharotiya (OpenERP) 5823dc8563 [IMP] add user group in context in all yml files
bzr revid: fka@tinyerp.com-20130319112621-ohy33bgzwmtmw8kl
2013-03-19 16:56:21 +05:30
Foram Katharotiya (OpenERP) 2496811ec4 [IMP] improve yml strings
bzr revid: fka@tinyerp.com-20130318055412-se3c890mlckxd8ty
2013-03-18 11:24:12 +05:30
sgo@tinyerp.com e072555682 [IMP]improve yml give them to appropriate access rights
bzr revid: sgo@tinyerp.com-20130220060326-q22mdh5yob7erh7e
2013-02-20 11:33:26 +05:30
sgo@tinyerp.com 33636c1dcf [REM]remove file
bzr revid: sgo@tinyerp.com-20130219132712-hr0sns52uy0821th
2013-02-19 18:57:12 +05:30
sgo@tinyerp.com d4a1cec260 [IMP]improve code and yml
bzr revid: sgo@tinyerp.com-20130219131921-nbfs273xujvriomu
2013-02-19 18:49:21 +05:30
sgo@tinyerp.com e983e49f20 [IMP]improve code
bzr revid: sgo@tinyerp.com-20130218101043-7hy8m5goylr7fv2t
2013-02-18 15:40:43 +05:30
sgo@tinyerp.com 3be3625587 [IMP]improve code as per new spec
bzr revid: sgo@tinyerp.com-20130218072821-c1x1bwvv1gp77w9t
2013-02-18 12:58:21 +05:30
sgo@tinyerp.com ab69ff4f24 [MERGE]sync with trunk
bzr revid: sgo@tinyerp.com-20130215054550-w5v6m86ca8udhfs7
2013-02-15 11:15:50 +05:30
Raphael Collet 5f855a1ddb [MERGE] from trunk
bzr revid: rco@openerp.com-20130213083519-3nbg40h5em0gfeu3
2013-02-13 09:35:19 +01:00
Vo Minh Thu f4b6be2f66 [FIX] import openerp.netsvc instead of netsvc in YML tests.
bzr revid: vmt@openerp.com-20130209063134-ui2p9g3i395sjl7x
2013-02-09 07:31:34 +01:00
sgo@tinyerp.com 72043cfbc3 [ADD]yml files
bzr revid: sgo@tinyerp.com-20130204123212-psghdi2mnp4r2lut
2013-02-04 18:02:12 +05:30
Tejas Tank 9b8d7de0ac [IMP] Workflow api changes: [account_payment, account_voucher, hr_holidays, hr_payroll, hr_timesheet_sheet, l10n_in_hr_payroll, point_of_sale, procurement, purchase, sale, sale_stock].
bzr revid: tta@openerp.com-20130204082943-vfevxeb7za6r4sy7
bzr revid: tta@openerp.com-20130204112949-07l1v3ru215iglut
2013-02-04 16:59:49 +05:30
sgo@tinyerp.com 5ec04f6703 [IMP]add yml file based on new session tag which test yml as per session user
bzr revid: sgo@tinyerp.com-20130204093425-blivw1198zxhsh2u
2013-02-04 15:04:25 +05:30
Ajay Chauhan (OpenERP) a500b5d249 [FIX] sale: Made some changes
bzr revid: cha@tinyerp.com-20130201131955-nmcaji8bkblipxo3
2013-02-01 18:49:55 +05:30
Ajay Chauhan (OpenERP) c2ffb389a3 [FIX] sale: Made some changes
bzr revid: cha@tinyerp.com-20130201120610-eotziutfkhsgd77o
2013-02-01 17:36:10 +05:30
Olivier Dony ec9859e0a0 [FIX] sale: fix incorrect on_change on sale.order.line resetting the UoM field + added test
lp bug: https://launchpad.net/bugs/1082409 fixed

bzr revid: odo@openerp.com-20130131184356-y9ck1dr31nlsp73r
2013-01-31 19:43:56 +01:00
Ajay Chauhan (OpenERP) 4fa593ade5 [IMP] sale: for yml use the new signal_xxx methods instead of trg_validate.
bzr revid: cha@tinyerp.com-20130131051229-r530h3eawm5bm62s
2013-01-31 10:42:29 +05:30
Olivier Dony 8782163830 [FIX] sale: the `invoiced` field on sale.order.line should be a function field
Having a static boolean field is a mess and requires
a lot of custom code to make sure it is up-to-date,
implying a large source of possible bugs.
Using a function field should take care of updating
it when needed.
All the write() calls that were updating it were
normally removed, and there was also some cleanup
in the surrounding areas (quite minimal).

bzr revid: odo@openerp.com-20121129162629-5lt9e0v5aju36itj
2012-11-29 17:26:29 +01:00
Olivier Dony ce1226a4a8 [FIX] sale,edi: fix sale EDI import test + better debug
- `delay` field on SO line  moved to sale_stock, ignoring it for now
- avoid reusing the same bank account in 6.1 test, would cause a test
  failure because the import would be skipped and the new partner
  would have no bank account. Bank accounts should be unique in the
  real world.
- log in DEBUG when a relationship record is skipped during EDI import

bzr revid: odo@openerp.com-20121019111100-dwf0crocqv43m3ij
2012-10-19 13:11:00 +02:00
Olivier Dony 46b2a78ea0 [FIX] sale/edi: typo when adding 6.1 EDI testcase
bzr revid: odo@openerp.com-20121019103945-mor902q1qzyszhn0
2012-10-19 12:39:45 +02:00
Olivier Dony e0fcab1f62 [FIX] edi,sale,purchase: fix EDI import of SO/PO, now compatible again with 6.1, and correct wrt. partners import (vs old addresses)
bzr revid: odo@openerp.com-20121018152129-s22uozt77s37urp1
2012-10-18 17:21:29 +02:00
Olivier Dony 5f24594223 [IMP] edi: work-in-progress: remove permanent storage of edi.document
The EDI documents will now be generated on demand
and available from the Portal view of each document.
Instead of getting a link to a statically generated
EDI document, customers will receive a link to
the portal access to the document. They will be able
to signup on the portal the first time as well,
provided they are using the secure token that was
sent to them (i.e. the right link).

The link to pay online will be available in the
portal as well.

Still much to do, this is a small first step,
with edi.document renamed to edi.edi for
consistency, as it will not persist any
edi.document anymore.

bzr revid: odo@openerp.com-20121011152008-bht7ub6woaex0a7u
2012-10-11 17:20:08 +02:00
Quentin (OpenERP) 2b07b4e35c [FIX] sale, sale_stock: yaml tests on product_id_change() + fix in that same function (type is defined in sale_stock now)
bzr revid: qdp-launchpad@openerp.com-20121001160854-7d2xew5pol6u27b2
2012-10-01 18:08:54 +02:00
Quentin (OpenERP) 20bf037ea4 [IMP] sale: added a test to verify the the product onchange in sale order line was correctly triggered
bzr revid: qdp-launchpad@openerp.com-20120928095458-vjwd4xt0nun8lfjx
2012-09-28 11:54:58 +02:00
Quentin (OpenERP) eafd95a1d5 [FIX] sale: fixed yaml tests
bzr revid: qdp-launchpad@openerp.com-20120920152043-u0euspbyr04vjqwn
2012-09-20 17:20:43 +02:00
Quentin (OpenERP) ee8d27fce3 [IMP] sale: yaml test improved
bzr revid: qdp-launchpad@openerp.com-20120920143641-eplfb3xyeei6e0ur
2012-09-20 16:36:41 +02:00
Atul Patel (OpenERP) 78a96ae65a [IMP]: Improve cancel sale order yml
bzr revid: atp@tinyerp.com-20120920120238-0eemylf96xxrqoso
2012-09-20 17:32:38 +05:30
Atul Patel (OpenERP) af4e61bb53 [FIX]: Fix some assert problem in yaml as per new sale order.
bzr revid: atp@tinyerp.com-20120920042433-3rgs13orq10x2h9p
2012-09-20 09:54:33 +05:30
Quentin (OpenERP) 3279175eb5 [FIX] sale: put back the old reference to sale_order_1 in yaml test, to reduce the diff with trunk
bzr revid: qdp-launchpad@openerp.com-20120919102819-ptziizp3okem1gd0
2012-09-19 12:28:19 +02:00
Quentin (OpenERP) bed75115e6 [IMP] sale: improved yaml test
bzr revid: qdp-launchpad@openerp.com-20120919100710-4g6f3q6vt56z8555
2012-09-19 12:07:10 +02:00
Atul Patel (OpenERP) b61e2c8b8f [MERGE]: Merged with lp:openobject-addons
bzr revid: atp@tinyerp.com-20120919093842-pn5kqx0gmc41lani
2012-09-19 15:08:42 +05:30
Ajay Chauhan (OpenERP) 427200a241 [IMP] sale: update some statements in yml & clear unwanted code in sale.py file.
bzr revid: cha@tinyerp.com-20120912091040-yezbspjjucempq2e
2012-09-12 14:40:40 +05:30
Ajay Chauhan (OpenERP) aa779d5000 [IMP] sale: update 'Manual_order_policy.yml'
bzr revid: cha@tinyerp.com-20120912073357-naznvtd9n0zja3pd
2012-09-12 13:03:57 +05:30
Atul Patel (OpenERP) f1cf4c04b9 [MERGE]: Merged with lp:openobject-addons
bzr revid: atp@tinyerp.com-20120909110214-2e1c7e7t43c69zzo
2012-09-09 16:32:14 +05:30
Atul Patel (OpenERP) eb28892a3a [IMP]: MOVE PROCUREMENT CHANGES INTO PROCUREMENT..
bzr revid: atp@tinyerp.com-20120909101156-9pna66qbx28px2ii
2012-09-09 15:41:56 +05:30
Rucha (Open ERP) 7a24bdb1f7 [FIX]: Improved old product names with new
bzr revid: rpa@tinyerp.com-20120816084224-t12wf5vipd8u90a7
2012-08-16 14:12:24 +05:30
Atul Patel (OpenERP) 652300eb89 [MERGE]: Merged with lp:openobject-addons
bzr revid: atp@tinyerp.com-20120814061700-k4swskeiz9r3ypn5
2012-08-14 11:47:00 +05:30
Atul Patel (OpenERP) 06c0ead10d [ADD]: Add dependency
ii) move wizard , yaml file
iii) move stock method into sale_stock.
iv) add security into sale_stock module.

bzr revid: atp@tinyerp.com-20120726205659-xiyx39r3dibshyjs
2012-07-27 02:26:59 +05:30