Merge lp:~julie-w/unifield-server/US-2316 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4182
Proposed branch: lp:~julie-w/unifield-server/US-2316
Merge into: lp:unifield-server
Diff against target: 39 lines (+4/-3)
3 files modified
bin/addons/account/invoice.py (+1/-1)
bin/addons/account/wizard/account_invoice_refund.py (+2/-1)
bin/addons/account_override/invoice.py (+1/-1)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-2316
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+316109@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/account/invoice.py'
2--- bin/addons/account/invoice.py 2017-01-02 08:59:17 +0000
3+++ bin/addons/account/invoice.py 2017-02-01 13:16:26 +0000
4@@ -274,7 +274,7 @@
5 },
6 multi='all'),
7 'currency_id': fields.many2one('res.currency', 'Currency', required=True, readonly=True, states={'draft':[('readonly',False)]}),
8- 'journal_id': fields.many2one('account.journal', 'Journal', required=True, readonly=True, states={'draft':[('readonly',False)]}),
9+ 'journal_id': fields.many2one('account.journal', 'Journal', required=True, hide_default_menu=True, readonly=True, states={'draft':[('readonly',False)]}),
10 'company_id': fields.many2one('res.company', 'Company', required=True, change_default=True, readonly=True, states={'draft':[('readonly',False)]}),
11 'check_total': fields.float('Total', digits_compute=dp.get_precision('Account'), states={'open':[('readonly',True)],'close':[('readonly',True)],'paid':[('readonly',True)]}),
12 'reconciled': fields.function(_reconciled, method=True, string='Paid/Reconciled', type='boolean',
13
14=== modified file 'bin/addons/account/wizard/account_invoice_refund.py'
15--- bin/addons/account/wizard/account_invoice_refund.py 2015-07-30 10:17:05 +0000
16+++ bin/addons/account/wizard/account_invoice_refund.py 2017-02-01 13:16:26 +0000
17@@ -34,7 +34,8 @@
18 _columns = {
19 'date': fields.date('Operation date', help='This date will be used as the invoice date for Refund Invoice and Period will be chosen accordingly!'),
20 'period': fields.many2one('account.period', 'Force period'),
21- 'journal_id': fields.many2one('account.journal', 'Refund Journal', help='You can select here the journal to use for the refund invoice that will be created. If you leave that field empty, it will use the same journal as the current invoice.'),
22+ 'journal_id': fields.many2one('account.journal', 'Refund Journal', hide_default_menu=True,
23+ help='You can select here the journal to use for the refund invoice that will be created. If you leave that field empty, it will use the same journal as the current invoice.'),
24 'description': fields.char('Description', size=128, required=True),
25 'filter_refund': fields.selection([('modify', 'Modify'), ('refund', 'Refund'), ('cancel', 'Cancel')], "Refund Type", required=True, help='Refund invoice base on this type. You can not Modify and Cancel if the invoice is already reconciled'),
26 }
27
28=== modified file 'bin/addons/account_override/invoice.py'
29--- bin/addons/account_override/invoice.py 2016-12-22 16:17:14 +0000
30+++ bin/addons/account_override/invoice.py 2017-02-01 13:16:26 +0000
31@@ -225,7 +225,7 @@
32 method=True, string="Can be imported as invoice in a debit note?",),
33 'imported_invoices': fields.one2many('account.invoice.line', 'import_invoice_id', string="Imported invoices", readonly=True),
34 'partner_move_line': fields.one2many('account.move.line', 'invoice_partner_link', string="Partner move line", readonly=True),
35- 'fake_journal_id': fields.function(_get_fake_m2o_id, method=True, type='many2one', relation="account.journal", string="Journal", readonly="True"),
36+ 'fake_journal_id': fields.function(_get_fake_m2o_id, method=True, type='many2one', relation="account.journal", string="Journal", hide_default_menu=True, readonly="True"),
37 'fake_currency_id': fields.function(_get_fake_m2o_id, method=True, type='many2one', relation="res.currency", string="Currency", readonly="True"),
38 'have_donation_certificate': fields.function(_get_have_donation_certificate, method=True, type='boolean', string="Have a Certificate of donation?"),
39 'purchase_list': fields.boolean(string='Purchase List ?', help='Check this box if the invoice comes from a purchase list', readonly=True, states={'draft':[('readonly',False)]}),

Subscribers

People subscribed via source and target branches