35 Commits

Author SHA1 Message Date
Laetitia Gangloff
5033da0104 [PEP8] - base_report_to_printer 2015-09-28 11:49:45 +02:00
Lionel Sausin
06f8bdf222 [IMP] remove useless locking from update()
Locking shouldn't be needed here because the data we read is immutable
2014-10-24 18:50:16 +02:00
Yannick Vaucher
95cce84d0c fix flakes8 2014-07-04 16:24:36 +02:00
Lionel Sausin
39864b8c88 [FIX] the button 'set default' on printers did not work because the field was 'required' - this is deprecated on booleans in v7 2014-04-16 17:12:59 +02:00
Yannick Vaucher
b9f003803e [MRG] Simple split of code which was in a single file 2013-12-27 13:43:25 -05:00
Joel Grand-Guillaume
7539d8644f [FIX] Use explicit kwargs: context=context 2013-12-20 15:07:09 +01:00
Yannick Vaucher
d4df635455 [IMP] base_report_to_printer - split code in multiple files 2013-10-02 14:08:48 +02:00
Yannick Vaucher
70a45dae60 [IMP] base_report_to_printer - remove osv.except_osv as it breaks the workflow and doesn't permits multiple report to be sent to the printer. 2013-10-02 11:27:43 +02:00
Yannick Vaucher
e99e95d14d [FIX] base_report_to_printer - restore error message as osv + propagate options 2013-10-01 16:21:37 +02:00
Yannick Vaucher
f1173ee774 [FIX] base_report_to_printer - mistake in params of print_direct 2013-10-01 16:12:50 +02:00
Yannick Vaucher
d6c5097e6d [IMP] base_report_to_printer - pass report id instead of report key 2013-10-01 15:45:37 +02:00
Yannick Vaucher
2bfc7b3e12 [TYPO] 2013-10-01 15:32:52 +02:00
Yannick Vaucher
b028900ccc [FIX] base_report_to_printer - missing class call 2013-10-01 15:30:10 +02:00
Yannick Vaucher
08d0ea25ba [IMP] base_report_to_printer - return browse record instead of string in behavior for printer 2013-10-01 14:19:52 +02:00
Yannick Vaucher
74260645ea [IMP] base_report_to_printer - remove uselsee context set 2013-10-01 13:29:25 +02:00
Yannick Vaucher
0e14c7e16f [FIX] base_report_to_printer - using system_name of printer instead of printer browse record 2013-10-01 13:25:20 +02:00
Yannick Vaucher
23ec86cdc4 [IMP] base_report_to_printer - use an action id in an action method instead of a report id makes more sens 2013-10-01 13:24:10 +02:00
Yannick Vaucher
bb09482adb [IMP] base_report_to_printer - add report_id on print_direct 2013-10-01 12:46:20 +02:00
Yannick Vaucher
8169f63667 [IMP] base_report_to_printer - replace lpr by use of pycups 2013-09-30 17:31:48 +02:00
Yannick Vaucher
c2a802b4cf [TYPO] 2013-09-30 14:08:51 +02:00
Yannick Vaucher
b22d7b84a6 [IMP] base_report_to_printer - simplify calls on class 2013-09-30 13:46:04 +02:00
Yannick Vaucher
a2ce67027f [IMP] base_report_to_printer - remove class call 2013-09-30 13:05:10 +02:00
Yannick Vaucher
a11c2dadeb [IMP] base_report_to_printer - clean imports 2013-09-30 13:03:49 +02:00
Yannick Vaucher
c22ac5a41b [IMP] base_report_to_printer - remove class calls and use orm.Model and orm.TransientModel instead of osv aliases 2013-09-30 11:56:20 +02:00
Yannick Vaucher
8226998b0a [IMP] base_report_to_printer - retab and clean extra spaces 2013-09-30 11:50:14 +02:00
Andrew Schrafel
d9201c1632 base_report_to_printer V7 upgrade 2013-03-14 22:30:25 -04:00
Lorenzo Battistini
c98db4a9f6 [FIX] isinstance(printer, (str,unicode)):
replaced by isinstance(printer, basestring)
2012-12-06 16:09:06 +01:00
Lorenzo Battistini
819e38b62e [FIX] using logging 2012-12-06 16:01:59 +01:00
Lorenzo Battistini
244a5a3a61 [FIX] context=None 2012-12-06 15:52:32 +01:00
Lorenzo Battistini
457d20b349 [fix] get_default return value 2012-12-06 15:49:31 +01:00
Lorenzo Battistini
f94d0e30ea [FIX] print_direct return value 2012-12-06 15:48:47 +01:00
Lorenzo Battistini
56a1e71cc5 [FIX] update method is accessible from XML/RPC and should return something else than None which is forbidden 2012-12-06 15:47:51 +01:00
Lorenzo Battistini
5249f293fd [FIX] We better have to use the "with" syntax 2012-12-06 15:46:53 +01:00
Lorenzo Battistini
5ac57dfd79 [FIX] The close should be done in the finally: clause of a try: except: because if an exception occurs,
a postgresql transaction will be leaked.
The except clause should properly rollback the cr
2012-12-04 12:05:15 +01:00
Lorenzo Battistini
5823ff1aa4 [ADD] base_report_to_printer 2012-11-22 22:22:52 +01:00