Merge lp:~unifield-team/unifield-wm/mp-fix-iml-aml-origin-field-impact into lp:unifield-wm

Proposed by Vincent GREINER
Status: Needs review
Proposed branch: lp:~unifield-team/unifield-wm/mp-fix-iml-aml-origin-field-impact
Merge into: lp:unifield-wm
Diff against target: 35 lines (+4/-4)
2 files modified
account_override/account_move_line.py (+3/-3)
account_override/invoice.py (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-wm/mp-fix-iml-aml-origin-field-impact
Reviewer Review Type Date Requested Status
jftempo Pending
Review via email: mp+253317@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

2425. By Vincent GREINER

[FIX] finance / import invoice: invoice move line and account_move_line (JI) 'reference'/'ref', 'name' fields were to short to hold 'origin' field (see account.invoice action_move_create() and action_number() functions)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_override/account_move_line.py'
2--- account_override/account_move_line.py 2014-09-22 14:54:53 +0000
3+++ account_override/account_move_line.py 2015-03-18 08:49:20 +0000
4@@ -232,7 +232,7 @@
5 'is_addendum_line': fields.boolean('Is an addendum line?', readonly=True,
6 help="This inform account_reconciliation module that this line is an addendum line for reconciliations."),
7 'move_id': fields.many2one('account.move', 'Entry Sequence', ondelete="cascade", help="The move of this entry line.", select=2, required=True, readonly=True),
8- 'name': fields.char('Description', size=64, required=True, readonly=True),
9+ 'name': fields.char('Description', size=512, required=True, readonly=True),
10 'journal_id': fields.many2one('account.journal', 'Journal Code', required=True, select=1),
11 'debit': fields.float('Func. Debit', digits_compute=dp.get_precision('Account')),
12 'credit': fields.float('Func. Credit', digits_compute=dp.get_precision('Account')),
13@@ -244,8 +244,8 @@
14 }, readonly=True),
15 'is_write_off': fields.boolean('Is a write-off line?', readonly=True,
16 help="This inform that no correction is possible for a line that come from a write-off!"),
17- 'reference': fields.char(string='Reference', size=64),
18- 'ref': fields.function(_get_reference, fnct_inv=_set_fake_reference, fnct_search=_search_reference, string='Reference', method=True, type='char', size=64, store=True, readonly=True),
19+ 'reference': fields.char(string='Reference', size=512),
20+ 'ref': fields.function(_get_reference, fnct_inv=_set_fake_reference, fnct_search=_search_reference, string='Reference', method=True, type='char', size=512, store=True, readonly=True),
21 'state': fields.selection([('draft','Invalid'), ('valid','Valid')], 'State', readonly=True,
22 help='When new move line is created the state will be \'Draft\'.\n* When all the payments are done it will be in \'Valid\' state.'),
23 'journal_type': fields.related('journal_id', 'type', string="Journal Type", type="selection", selection=_journal_type_get, readonly=True, \
24
25=== modified file 'account_override/invoice.py'
26--- account_override/invoice.py 2014-10-28 15:42:41 +0000
27+++ account_override/invoice.py 2015-03-18 08:49:20 +0000
28@@ -940,7 +940,7 @@
29 readonly=True, help="This informs system if this item have been corrected in analytic lines. Criteria: the invoice line is linked to a journal items that have analytic item which is reallocated.",
30 store=False),
31 'product_code': fields.function(_get_product_code, method=True, store=False, string="Product Code", type='char'),
32- 'reference': fields.char(string="Reference", size=64),
33+ 'reference': fields.char(string="Reference", size=512),
34 'vat_ok': fields.function(_get_vat_ok, method=True, type='boolean', string='VAT OK', store=False, readonly=True),
35 }
36

Subscribers

People subscribed via source and target branches