Commit Graph

66 Commits

Author SHA1 Message Date
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
Denis Ledoux 5e65ee58eb [MERGE] forward port of branch saas-3 up to 32246d9 2015-01-07 15:33:50 +01:00
Denis Ledoux 32246d963d [MERGE] forward port of branch 7.0 up to 69bfc5e 2015-01-07 14:52:49 +01:00
Denis Ledoux 1a10a11018 [FIX] sale, sale_crm: propagate sales team for advance & on lines invoices
A _prepare method had to be introduced in the wizard for the lines invoicing method
2015-01-07 14:44:29 +01:00
Christophe Simonis 8e637bac92 [MERGE] forward port of branch saas-3 up to 21b1203 2014-10-29 19:33:02 +01:00
Denis Ledoux f01da83a5a [MERGE] forward port of branch 7.0 up to f4870f8 2014-10-28 17:58:50 +01:00
Denis Ledoux f4870f8418 [FIX] sale: when invoicing on lines, set order in progress when all lines invoiced
This fix is related to rev. b1df5aab6e
2014-10-28 17:57:08 +01:00
Denis Ledoux 663dc6a5b3 [MERGE] forward port of branch 7.0 up to b1df5aa 2014-10-28 15:37:11 +01:00
Julien Legros b1df5aab6e [FIX] sale: trigger all_lines signal when all lines are invoiced 2014-10-28 15:16:06 +01: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 Simonis db6fb31870 [MERGE] forward port of branch 7.0 up to revid 9954 chs@openerp.com-20140403153129-jq9zc7ityoy25c73
bzr revid: chs@openerp.com-20140403155904-ya5mas5s3g7ivihb
2014-04-03 17:59:04 +02:00
Martin Trigaux 7ee65aa181 [FIX] sale: remove useless write call (problematic when invoice on delivery order)
bzr revid: mat@openerp.com-20140331104448-4omzqnist6wlmakd
2014-03-31 12:44:48 +02:00
Christophe Simonis 0ac4a8f696 [MERGE] forward port of branch 7.0 up to revid 9668 launchpad_translations_on_behalf_of_openerp-20131130053134-6u83vcd1133xs8yf
bzr revid: chs@openerp.com-20131130130014-hi5h5a00kjx0dbvp
2013-11-30 14:00:14 +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
Yannick Vaucher 4cc85da024 [FIX] sale - copy customer ref instead of order name in sale_line_invoice wizard
lp bug: https://launchpad.net/bugs/1188528 fixed

bzr revid: yannick.vaucher@camptocamp.com-20130607092405-1roxnirhtfcxo0d3
2013-06-07 11:24:05 +02:00
Cedric Snauwaert a1ab6be4df [FIX]sale wizard: missing import and local variable to call worflow action
bzr revid: csn@openerp.com-20130503124345-f1cvr6wps0d9bcu8
2013-05-03 14:43:45 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Quentin (OpenERP) 3bb51ac696 [MERGE] forward port of bugfixes made in 7.0, up to revision 8969.
bzr revid: qdp-launchpad@openerp.com-20130404095257-oek77sijuxjyi0aj
2013-04-04 11:52:57 +02:00
Vo Minh Thu 9b0ced610f [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322134958-jhe6m0222jq7wo41
2013-03-22 14:49:58 +01:00
Vo Minh Thu 9bb5ee90e4 [IMP] removed unused netsvc imports.
bzr revid: vmt@openerp.com-20130222161029-zecwro75yra2vz0d
2013-02-22 17:10:29 +01:00
Bhumi Thakkar (Open ERP) 69fcf7bb62 [IMP] Remove bold and capital in first letter.
bzr revid: bth@tinyerp.com-20130220054249-4n3zpwvo767u6h4l
2013-02-20 11:12:49 +05:30
Bhumi Thakkar (Open ERP) ad6d133d3c [MERGE] Merge lp:openobeject-addons.
bzr revid: bth@tinyerp.com-20130215122526-einsh4wazw2e1lxs
2013-02-15 17:55:26 +05:30
Bhumi Thakkar (Open ERP) 09b12ce248 [IMP] Message on chatter for invoice created from sale order line.
bzr revid: bth@tinyerp.com-20130213123941-zmm7m9mzbtiqujwm
2013-02-13 18:09:41 +05:30
Ajay Chauhan (OpenERP) 0b2a72f0a8 [FIX] sale: did some changes
bzr revid: cha@tinyerp.com-20130201070628-utvt502wrg5ynv44
2013-02-01 12:36:28 +05:30
Ajay Chauhan (OpenERP) 19368fb65c [IMP] sale: use the new signal_xxx methods instead of trg_validate.
bzr revid: cha@tinyerp.com-20130131044608-h5dj2xfqyo8ewm6k
2013-01-31 10:16:08 +05:30
Quentin (OpenERP) b3f6fc001d [FIX] sale: invoicing several sale order lines in batch was not correctly working (only the first order was triggered and opened) + small refactoring
bzr revid: qdp-launchpad@openerp.com-20130326170202-d2fhez9sz04zionw
2013-03-26 18:02:02 +01:00
Josse Colpaert 79565563cc [FIX] Make sure all sales orders are set to done when invoicing from contract
bzr revid: jco@openerp.com-20130325084502-o9oc8ujqeno5fw84
2013-03-25 09:45:02 +01:00
Quentin (OpenERP) a513344bc1 [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20121218134118-ixggega7sumgv6gq
2012-12-18 14:41:18 +01:00
Quentin (OpenERP) 65293a4608 [FIX] sale: fixed wrong use of fields.date.today()
bzr revid: qdp-launchpad@openerp.com-20121217160701-d2o3ly5yd19gygjp
2012-12-17 17:07:01 +01:00
Quentin (OpenERP) fa5b0d4687 [FIX] sale: import missing module
bzr revid: qdp-launchpad@openerp.com-20121217152515-h7tk457s11zw6qtp
2012-12-17 16:25:15 +01:00
Quentin (OpenERP) f9e227717e [MERGE] addons-27 sale
bzr revid: qdp-launchpad@openerp.com-20121217110245-1rc9cl4x7r3l607j
2012-12-17 12:02:45 +01:00
Rucha (Open ERP) 241bcfe85d [IMP]: sale: Set current date as invoice date while creating invoice from SO lines
bzr revid: rpa@tinyerp.com-20121210105148-0vaen7se7o7dh6fd
2012-12-10 16:21:48 +05:30
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
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
Fabien Pinckaers 854284b6af [MERGE] fgi improve
bzr revid: fp@openerp.com-20121127215908-q5yt8nwna6gmdu88
2012-11-27 22:59:08 +01:00
Quentin (OpenERP) cfe39eea1a [FIX] sale: recopy the right partner on the invoice from the SO
bzr revid: qdp-launchpad@openerp.com-20121126155139-tjxq08khe9o6bnh2
2012-11-26 16:51:39 +01:00
Saurang Suthar eb9c03282c [IMP]sale:added new button Create & View Invoice for creating and view invoice
bzr revid: ssu@tinyerp.com-20121123104618-jxs2vk8huakuptua
2012-11-23 16:16:18 +05:30
Atul Patel (OpenERP) 39cbe2711e [FIX]: Sale order in done state after invoice using sale order line.
Create invoice button disappeared in SO line when its Done.

bzr revid: atp@tinyerp.com-20120911094754-d1q40uyt2waahkzg
2012-09-11 15:17:54 +05:30
Antonin Bourguignon 59aa37f0e4 [IMP] all the warning messages now start with 'Warning\!' (not 'Warning' or 'Warning \!')
bzr revid: abo@openerp.com-20120807113414-7mryqyt3jnq8shsa
2012-08-07 13:34:14 +02:00
Kuldeep Joshi (OpenERP) 50997f9fe8 [Fix]sale: remove res.address.partner.address
bzr revid: kjo@tinyerp.com-20120305132543-92ba124cpg4zbrix
2012-03-05 18:55:43 +05:30
Harry (OpenERP) 4976c908c5 [FIX] sale: put comment in test cases where failure occur. it should be remove after resolve it.
bzr revid: hmo@tinyerp.com-20111130064504-5f5bd227ql1bcr3q
2011-11-30 12:15:04 +05:30
Bharat (OpenERP) 6e93c87ed8 [FIX] fixed the same for company_id
bzr revid: bde@tinyerp.com-20110810121312-bd1ii12fodgua00r
2011-08-10 17:43:12 +05:30
Jean-Sebastien SUZANNE cf06a25a9e [FIX] sale : The invoice user_id is not already the same that sale order user_id
lp bug: https://launchpad.net/bugs/821486 fixed

bzr revid: bde@tinyerp.com-20110808092920-7101p0fxfkteissq
2011-08-08 14:59:20 +05:30
jam-openerp a7789b2083 MERGE + Wizard return Improvments
bzr revid: jam@tinyerp.com-20101228104138-70p7kwpby3bxgu0r
2010-12-28 16:11:38 +05:30
Mustufa Rangwala b0f61a9546 [MERGE] merge from trunk addons
bzr revid: mra@mra-laptop-20101214130232-wqsim6966u1hilu9
bzr revid: mra@mra-laptop-20101217043732-ri8dfx38pacpruye
2010-12-17 10:07:32 +05:30
Mustufa Rangwala 7b390b3c81 [FIX] Sale_*: Misc improvements (tooltips,strings...etc)
lp bug: https://launchpad.net/bugs/687463 fixed

bzr revid: mra@mra-laptop-20101213060723-3yvidr2b3x9n4q6n
2010-12-13 11:37:23 +05:30
uco (OpenERP) 8035df3e11 [IMP]: Added context=None in function argument for rest modules.
bzr revid: uco@tinyerp.com-20101122103753-idv9fdaqc28rvugu
2010-11-22 16:07:53 +05:30
Mustufa Rangwala 06ae11efd0 [FIX] Sale: regresion
bzr revid: mra@mra-laptop-20101025125408-6yd1ra6v0geyl7mc
2010-10-25 18:24:08 +05:30
pso a20240b078 [IMP] sale: cleaning module
bzr revid: pso@tinyerp.com-20101021093004-lcfd7eiq2tptqutm
2010-10-21 15:00:04 +05:30
mtr da1e061737 [IMP] sale:-Invoiced field on sale.order.line now appears ticked after its invoice is created
bzr revid: mtr@mtr-20101015122158-ygnijl1jao2g6s65
2010-10-15 17:51:58 +05:30