Leonardo Donelli
2b2048846c
Work with recordsets instead of ids
...
In the `_get_common_*` methods and also in the default functions
2015-08-07 14:58:37 +02:00
Leonardo Donelli
635c5d53c6
Show location labels in return wizard, remove commented code
2015-08-07 14:39:17 +02:00
Leonardo Donelli
7914a43334
Fix some outdated references to the renamed fields
2015-08-07 14:27:27 +02:00
Ondřej Kuzník
7022354aa1
[IMP] Port tests to v8 as well
...
Conflicts:
crm_claim_rma/tests/test_lp_1282584.py
2015-08-07 12:13:16 +02:00
Leonardo Donelli
df55bf0013
Ensure recordset is a single record in methods, slight adjustments
2015-08-07 11:48:40 +02:00
Leonardo Donelli
63d63c3bae
Improve crm.claim views
...
Put buttons in the header, fix layout (smart buttons),
reduce code duplication, remove duplicated name field,
fix indentation and whitespace,
rename 'Return lines' to 'claim lines', ...
2015-08-06 14:24:48 +02:00
Ondřej Kuzník
71cdae5210
Move claim buttons to the header
2015-08-06 11:37:26 +02:00
Leonardo Donelli
d11503bca4
Improve port to new API and fix exceptions error.
...
Simplify some methods, work with recordset instead of ids when
possible, use @api.one, follow naming guidelines, ...
Also fixes an error introduced in the previous-to-last commit
regarding the custom exceptions.
2015-08-05 20:03:24 +02:00
Leonardo Donelli
e1b79001d2
Follow OCA guidelines for module structure
...
https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md
2015-08-05 15:19:01 +02:00
Leonardo Donelli
5ca3f55b80
Fix imports, docstrings and other conventions
...
Imports https://www.python.org/dev/peps/pep-0008/#id17
and http://odoo-new-api-guide-line.readthedocs.org/en/latest/conventions.html
Docstrings https://www.python.org/dev/peps/pep-0257/
2015-08-05 11:43:28 +02:00
Aristobulo Meneses
cb02d2100d
Remove unused ValidationError import. Remove unnecesary blank lines
2015-07-31 15:08:45 +02:00
Aristobulo Meneses
fb13528ee9
Use crm_claim_code
2015-07-31 14:46:05 +02:00
Aristobulo Meneses
2aac9904e3
Modify pre_init_hook method
2015-07-31 13:50:50 +02:00
Aristobulo Meneses
e252e8fa8c
Fix pre_init_hook parameter
2015-07-31 13:32:04 +02:00
Aristobulo Meneses
9d0d61abd1
Add missing blank lines in __init__.py
2015-07-31 13:23:55 +02:00
Aristobulo Meneses
4632e7120c
Fix line under-indented issue
2015-07-31 13:17:19 +02:00
Aristobulo Meneses
b11121025c
Use pre_init_hook to fill claim number
2015-07-31 13:14:58 +02:00
Aristobulo Meneses
890ec06c47
Fix fields declaration
2015-07-31 12:56:42 +02:00
Aristobulo Meneses
87debeeece
Get context directly from self.env
2015-07-31 12:28:33 +02:00
Aristobulo Meneses
ecaff70eec
Proper use of context with new api
2015-07-31 12:25:43 +02:00
Aristobulo Meneses
bdd939ac78
Merge branch 'port_crm_claim_rma' of https://github.com/eezee-it/rma into port_crm_claim_rma
2015-07-31 12:19:02 +02:00
Aristobulo Meneses
30dfdbbf69
Import fields using a wide scope. Update fields declaration
2015-07-31 12:17:19 +02:00
Aristobulo Meneses
61884011a0
Use wide scope when importing fields.
2015-07-31 11:32:19 +02:00
Aristobulo Meneses
a787c6a7a3
Move crm_claim_rma from __unported__
2015-07-31 10:07:29 +02:00
StefanRijnhart
e36ae5d483
[PRT] Move modules to __unported__ for 8.0 branch creation
2015-02-02 12:03:38 +01:00
Guewen Baconnier
a4eaa8d97f
pep8
2014-10-03 17:21:26 +02:00
Guewen Baconnier
d3188a29a7
The 'lines' argument can be False so we can't loop
2014-10-03 17:01:36 +02:00
Guewen Baconnier
270100acb3
reset values when some fields are missing to compute warranty
2014-09-08 14:13:24 +02:00
Guewen Baconnier
e094d5ada0
pep8 in crm_claim_rma
2014-09-08 14:04:13 +02:00
Guewen Baconnier
f2b5bccc99
Update warranty information when the date, the type or warehouse of the
...
claim is modified
2014-09-08 14:00:15 +02:00
Guewen Baconnier
99765ac98e
trigger the onchange when the invoice line is modified too
2014-09-05 17:22:27 +02:00
Guewen Baconnier
6455fd2c12
do not pass the claim id so the onchange use the values on the views
...
this is better since the values in the view could have been changed
2014-09-05 17:18:13 +02:00
Guewen Baconnier
6904c15787
When the product_id change, change the warranty infos as well
2014-09-05 17:15:50 +02:00
Guewen Baconnier
b2b613ec56
onchange_invoice_id now get the values for the warranty address
2014-09-05 16:32:42 +02:00
Guewen Baconnier
07f6fa842e
Extracted a method so it will be possible to add an onchange
2014-09-05 16:20:51 +02:00
Guewen Baconnier
1374df1e48
onchange_invoice_id now compute the warranty limit
2014-09-05 16:13:13 +02:00
Guewen Baconnier
57af6a6caf
Started refactoring of the warranty limit method
...
In order to be able to use it in an onchange
2014-09-05 15:51:50 +02:00
Joël Grand-Guillaume
4d4a964a71
Add init method to initialize a value in claim 'number' (avoiding tests to crash)
2014-07-16 15:20:06 +02:00
Joël Grand-Guillaume
fdfbd40096
Revert "Change default numbering of RMA to avoid crash on SQL unique constraint"
...
This reverts commit aaa379647c .
2014-07-16 15:06:48 +02:00
Joël Grand-Guillaume
39fa48276d
Clean a bit of PEP8 things
2014-07-16 14:49:05 +02:00
Joël Grand-Guillaume
aaa379647c
Change default numbering of RMA to avoid crash on SQL unique constraint
2014-07-16 14:49:04 +02:00
Romain Deheele
aaccc7da14
[FIX] allows to create a refund on lines without product_id
2014-07-16 14:08:02 +02:00
Launchpad Translations on behalf of openerprma
4a64148ca2
Launchpad automatic translations update.
2014-05-24 06:50:50 +00:00
Leonardo Pistone
ac3af3873d
[mrg] add _auto_set_warranty when you press on "create picking" on return product wizard
2014-05-16 15:02:05 +02:00
Romain Deheele
66f40b52c8
[UPD] commit nits
2014-05-16 14:28:51 +02:00
Launchpad Translations on behalf of openerprma
ebd743e934
Launchpad automatic translations update.
2014-05-14 06:23:00 +00:00
Romain Deheele
7dd8e06a07
[UPD] move auto_set_warranty method on claim.line model as suggested by Benoit Guillot
2014-05-12 11:43:10 +02:00
Romain Deheele
b445a46734
[IMP] add _auto_set_warranty when you press on "create picking" on return product wizard
2014-05-07 18:39:18 +02:00
unknown
c9033e7eea
[MRG] fix crash at refund generation
2014-05-06 10:29:56 +02:00
Launchpad Translations on behalf of openerprma
2d149c7196
Launchpad automatic translations update.
2014-04-24 06:35:36 +00:00