Merge lp:~bruno-bottacini/account-financial-tools/7.0-fix_account_move_template into lp:~account-core-editors/account-financial-tools/7.0
- 7.0-fix_account_move_template
- Merge into 7.0
Proposed by
bruno bottacini
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 114 | ||||
Proposed branch: | lp:~bruno-bottacini/account-financial-tools/7.0-fix_account_move_template | ||||
Merge into: | lp:~account-core-editors/account-financial-tools/7.0 | ||||
Diff against target: |
302 lines (+37/-44) 6 files modified
account_move_template/__openerp__.py (+4/-6) account_move_template/account_document_template.py (+6/-10) account_move_template/account_move_template.py (+3/-7) account_move_template/move_template.xml (+1/-6) account_move_template/wizard/select_template.py (+23/-12) account_move_template/wizard/select_template.xml (+0/-3) |
||||
To merge this branch: | bzr merge lp:~bruno-bottacini/account-financial-tools/7.0-fix_account_move_template | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | code review, no test | Approve | |
Lorenzo Battistini (community) | code review | Approve | |
Stefan Rijnhart (Opener) | Approve | ||
Review via email: mp+169758@code.launchpad.net |
Commit message
Description of the change
account_
To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote : | # |
review:
Approve
Revision history for this message
Lorenzo Battistini (elbati) : | # |
review:
Approve
(code review)
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : | # |
Thanks!
LGTM
review:
Approve
(code review, no test)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'account_move_template/__openerp__.py' | |||
2 | --- account_move_template/__openerp__.py 2013-01-15 19:02:11 +0000 | |||
3 | +++ account_move_template/__openerp__.py 2013-06-17 10:32:31 +0000 | |||
4 | @@ -32,17 +32,15 @@ | |||
5 | 32 | 'author': 'Agile Business Group', | 32 | 'author': 'Agile Business Group', |
6 | 33 | 'website': 'http://www.agilebg.com', | 33 | 'website': 'http://www.agilebg.com', |
7 | 34 | 'license': 'AGPL-3', | 34 | 'license': 'AGPL-3', |
11 | 35 | "depends" : ['account_accountant', 'analytic'], | 35 | 'depends' : ['account_accountant', 'analytic'], |
12 | 36 | "init_xml" : [], | 36 | 'data' : [ |
10 | 37 | "update_xml" : [ | ||
13 | 38 | 'move_template.xml', | 37 | 'move_template.xml', |
14 | 39 | 'wizard/select_template.xml', | 38 | 'wizard/select_template.xml', |
15 | 40 | 'security/ir.model.access.csv', | 39 | 'security/ir.model.access.csv', |
16 | 41 | ], | 40 | ], |
17 | 42 | "demo_xml" : [], | ||
18 | 43 | 'test': [ | 41 | 'test': [ |
19 | 44 | 'test/generate_move.yml', | 42 | 'test/generate_move.yml', |
20 | 45 | ], | 43 | ], |
23 | 46 | "active": False, | 44 | 'active': False, |
24 | 47 | "installable": True | 45 | 'installable': True, |
25 | 48 | } | 46 | } |
26 | 49 | 47 | ||
27 | === modified file 'account_move_template/account_document_template.py' | |||
28 | --- account_move_template/account_document_template.py 2013-01-04 13:48:18 +0000 | |||
29 | +++ account_move_template/account_document_template.py 2013-06-17 10:32:31 +0000 | |||
30 | @@ -19,11 +19,11 @@ | |||
31 | 19 | # | 19 | # |
32 | 20 | ############################################################################## | 20 | ############################################################################## |
33 | 21 | 21 | ||
35 | 22 | from openerp.osv import fields, osv | 22 | from openerp.osv import fields, orm |
36 | 23 | from openerp.tools.translate import _ | 23 | from openerp.tools.translate import _ |
37 | 24 | import re | 24 | import re |
38 | 25 | 25 | ||
40 | 26 | class account_document_template(osv.osv): | 26 | class account_document_template(orm.Model): |
41 | 27 | 27 | ||
42 | 28 | _computed_lines = {} | 28 | _computed_lines = {} |
43 | 29 | _current_template_id = 0 | 29 | _current_template_id = 0 |
44 | @@ -59,12 +59,12 @@ | |||
45 | 59 | return self._computed_lines[line_number] | 59 | return self._computed_lines[line_number] |
46 | 60 | line = self._get_template_line(self._cr, self._uid, self._current_template_id, line_number) | 60 | line = self._get_template_line(self._cr, self._uid, self._current_template_id, line_number) |
47 | 61 | if re.match('L\( *'+str(line_number)+' *\)',line.python_code): | 61 | if re.match('L\( *'+str(line_number)+' *\)',line.python_code): |
49 | 62 | raise osv.except_osv(_('Error'), | 62 | raise orm.except_orm(_('Error'), |
50 | 63 | _('Line %s can\'t refer to itself') % str(line_number)) | 63 | _('Line %s can\'t refer to itself') % str(line_number)) |
51 | 64 | try: | 64 | try: |
52 | 65 | self._computed_lines[line_number] = eval(line.python_code.replace('L', 'self.lines')) | 65 | self._computed_lines[line_number] = eval(line.python_code.replace('L', 'self.lines')) |
53 | 66 | except KeyError: | 66 | except KeyError: |
55 | 67 | raise osv.except_osv(_('Error'), | 67 | raise orm.except_orm(_('Error'), |
56 | 68 | _('Code "%s" refers to non existing line') % line.python_code) | 68 | _('Code "%s" refers to non existing line') % line.python_code) |
57 | 69 | return self._computed_lines[line_number] | 69 | return self._computed_lines[line_number] |
58 | 70 | 70 | ||
59 | @@ -73,7 +73,7 @@ | |||
60 | 73 | # returns all the lines (included input lines) in the form {line_number: line_amount} | 73 | # returns all the lines (included input lines) in the form {line_number: line_amount} |
61 | 74 | template = self.browse(cr, uid, template_id) | 74 | template = self.browse(cr, uid, template_id) |
62 | 75 | if len(input_lines) != self._input_lines(cr, uid, template): | 75 | if len(input_lines) != self._input_lines(cr, uid, template): |
64 | 76 | raise osv.except_osv(_('Error'), | 76 | raise orm.except_orm(_('Error'), |
65 | 77 | _('Inconsistency between input lines and filled lines for template %s') % template.name) | 77 | _('Inconsistency between input lines and filled lines for template %s') % template.name) |
66 | 78 | self._current_template_id = template.id | 78 | self._current_template_id = template.id |
67 | 79 | self._cr = cr | 79 | self._cr = cr |
68 | @@ -92,9 +92,7 @@ | |||
69 | 92 | return True | 92 | return True |
70 | 93 | return False | 93 | return False |
71 | 94 | 94 | ||
75 | 95 | account_document_template() | 95 | class account_document_template_line(orm.Model): |
73 | 96 | |||
74 | 97 | class account_document_template_line(osv.osv): | ||
76 | 98 | 96 | ||
77 | 99 | _name = 'account.document.template.line' | 97 | _name = 'account.document.template.line' |
78 | 100 | 98 | ||
79 | @@ -104,5 +102,3 @@ | |||
80 | 104 | 'type': fields.selection([('computed', 'Computed'),('input', 'User input')], 'Type', required=True), | 102 | 'type': fields.selection([('computed', 'Computed'),('input', 'User input')], 'Type', required=True), |
81 | 105 | 'python_code':fields.text('Python Code'), | 103 | 'python_code':fields.text('Python Code'), |
82 | 106 | } | 104 | } |
83 | 107 | |||
84 | 108 | account_document_template_line() | ||
85 | 109 | 105 | ||
86 | === modified file 'account_move_template/account_move_template.py' | |||
87 | --- account_move_template/account_move_template.py 2013-01-04 13:48:18 +0000 | |||
88 | +++ account_move_template/account_move_template.py 2013-06-17 10:32:31 +0000 | |||
89 | @@ -19,10 +19,10 @@ | |||
90 | 19 | # | 19 | # |
91 | 20 | ############################################################################## | 20 | ############################################################################## |
92 | 21 | 21 | ||
94 | 22 | from openerp.osv import fields, osv | 22 | from openerp.osv import fields, orm |
95 | 23 | from openerp.tools.translate import _ | 23 | from openerp.tools.translate import _ |
96 | 24 | 24 | ||
98 | 25 | class account_move_template(osv.osv): | 25 | class account_move_template(orm.Model): |
99 | 26 | 26 | ||
100 | 27 | _inherit = 'account.document.template' | 27 | _inherit = 'account.document.template' |
101 | 28 | _name = 'account.move.template' | 28 | _name = 'account.move.template' |
102 | @@ -58,10 +58,8 @@ | |||
103 | 58 | 'If the template is "cross-journals", the Journals must be different,' \ | 58 | 'If the template is "cross-journals", the Journals must be different,' \ |
104 | 59 | 'if the template does not "cross-journals" the Journals must be the same!', | 59 | 'if the template does not "cross-journals" the Journals must be the same!', |
105 | 60 | ['journal_id'])] | 60 | ['journal_id'])] |
106 | 61 | |||
107 | 62 | account_move_template() | ||
108 | 63 | 61 | ||
110 | 64 | class account_move_template_line(osv.osv): | 62 | class account_move_template_line(orm.Model): |
111 | 65 | 63 | ||
112 | 66 | _name = 'account.move.template.line' | 64 | _name = 'account.move.template.line' |
113 | 67 | _inherit = 'account.document.template.line' | 65 | _inherit = 'account.document.template.line' |
114 | @@ -81,5 +79,3 @@ | |||
115 | 81 | _sql_constraints = [ | 79 | _sql_constraints = [ |
116 | 82 | ('sequence_template_uniq', 'unique (template_id,sequence)', 'The sequence of the line must be unique per template !') | 80 | ('sequence_template_uniq', 'unique (template_id,sequence)', 'The sequence of the line must be unique per template !') |
117 | 83 | ] | 81 | ] |
118 | 84 | |||
119 | 85 | account_move_template_line() | ||
120 | 86 | 82 | ||
121 | === modified file 'account_move_template/move_template.xml' | |||
122 | --- account_move_template/move_template.xml 2012-11-16 23:44:13 +0000 | |||
123 | +++ account_move_template/move_template.xml 2013-06-17 10:32:31 +0000 | |||
124 | @@ -5,7 +5,6 @@ | |||
125 | 5 | <record id="view_move_template_line_tree" model="ir.ui.view"> | 5 | <record id="view_move_template_line_tree" model="ir.ui.view"> |
126 | 6 | <field name="name">account.move.template.line.tree</field> | 6 | <field name="name">account.move.template.line.tree</field> |
127 | 7 | <field name="model">account.move.template.line</field> | 7 | <field name="model">account.move.template.line</field> |
128 | 8 | <field name="type">tree</field> | ||
129 | 9 | <field name="arch" type="xml"> | 8 | <field name="arch" type="xml"> |
130 | 10 | <tree string="Journal Entry Template Line"> | 9 | <tree string="Journal Entry Template Line"> |
131 | 11 | <field name="sequence"/> | 10 | <field name="sequence"/> |
132 | @@ -25,7 +24,6 @@ | |||
133 | 25 | <record id="view_move_template_line_form" model="ir.ui.view"> | 24 | <record id="view_move_template_line_form" model="ir.ui.view"> |
134 | 26 | <field name="name">account.move.template.line.form</field> | 25 | <field name="name">account.move.template.line.form</field> |
135 | 27 | <field name="model">account.move.template.line</field> | 26 | <field name="model">account.move.template.line</field> |
136 | 28 | <field name="type">form</field> | ||
137 | 29 | <field name="arch" type="xml"> | 27 | <field name="arch" type="xml"> |
138 | 30 | <form string="Journal Entry Template Line"> | 28 | <form string="Journal Entry Template Line"> |
139 | 31 | <field colspan="4" name="name" select="1"/> | 29 | <field colspan="4" name="name" select="1"/> |
140 | @@ -46,7 +44,6 @@ | |||
141 | 46 | <record id="view_move_template_form" model="ir.ui.view"> | 44 | <record id="view_move_template_form" model="ir.ui.view"> |
142 | 47 | <field name="name">account.move.template.form</field> | 45 | <field name="name">account.move.template.form</field> |
143 | 48 | <field name="model">account.move.template</field> | 46 | <field name="model">account.move.template</field> |
144 | 49 | <field name="type">form</field> | ||
145 | 50 | <field name="arch" type="xml"> | 47 | <field name="arch" type="xml"> |
146 | 51 | <form string="Journal Entry Template"> | 48 | <form string="Journal Entry Template"> |
147 | 52 | <field name="name"/> | 49 | <field name="name"/> |
148 | @@ -61,7 +58,6 @@ | |||
149 | 61 | <record id="view_move_template_tree" model="ir.ui.view"> | 58 | <record id="view_move_template_tree" model="ir.ui.view"> |
150 | 62 | <field name="name">account.move.template.tree</field> | 59 | <field name="name">account.move.template.tree</field> |
151 | 63 | <field name="model">account.move.template</field> | 60 | <field name="model">account.move.template</field> |
152 | 64 | <field name="type">tree</field> | ||
153 | 65 | <field name="arch" type="xml"> | 61 | <field name="arch" type="xml"> |
154 | 66 | <tree string="Journal Entry Template"> | 62 | <tree string="Journal Entry Template"> |
155 | 67 | <field name="name"/> | 63 | <field name="name"/> |
156 | @@ -73,7 +69,6 @@ | |||
157 | 73 | <record id="view_move_template_search" model="ir.ui.view"> | 69 | <record id="view_move_template_search" model="ir.ui.view"> |
158 | 74 | <field name="name">account.move.template.search</field> | 70 | <field name="name">account.move.template.search</field> |
159 | 75 | <field name="model">account.move.template</field> | 71 | <field name="model">account.move.template</field> |
160 | 76 | <field name="type">search</field> | ||
161 | 77 | <field name="arch" type="xml"> | 72 | <field name="arch" type="xml"> |
162 | 78 | <search string="Journal Entry Template"> | 73 | <search string="Journal Entry Template"> |
163 | 79 | <group> | 74 | <group> |
164 | @@ -94,6 +89,6 @@ | |||
165 | 94 | </record> | 89 | </record> |
166 | 95 | <menuitem | 90 | <menuitem |
167 | 96 | action="action_move_template_form" id="menu_action_move_template_form" sequence="5" | 91 | action="action_move_template_form" id="menu_action_move_template_form" sequence="5" |
169 | 97 | parent="account.menu_configuration_misc" groups="base.group_extended"/> | 92 | parent="account.menu_configuration_misc" groups="account.group_account_manager"/> |
170 | 98 | </data> | 93 | </data> |
171 | 99 | </openerp> | 94 | </openerp> |
172 | 100 | 95 | ||
173 | === modified file 'account_move_template/wizard/select_template.py' | |||
174 | --- account_move_template/wizard/select_template.py 2013-01-04 13:48:18 +0000 | |||
175 | +++ account_move_template/wizard/select_template.py 2013-06-17 10:32:31 +0000 | |||
176 | @@ -19,11 +19,11 @@ | |||
177 | 19 | # | 19 | # |
178 | 20 | ############################################################################## | 20 | ############################################################################## |
179 | 21 | 21 | ||
181 | 22 | from openerp.osv import fields,osv | 22 | from openerp.osv import fields,orm |
182 | 23 | import time | 23 | import time |
183 | 24 | from openerp.tools.translate import _ | 24 | from openerp.tools.translate import _ |
184 | 25 | 25 | ||
186 | 26 | class wizard_select_template(osv.osv_memory): | 26 | class wizard_select_template(orm.TransientModel): |
187 | 27 | 27 | ||
188 | 28 | _name = "wizard.select.move.template" | 28 | _name = "wizard.select.move.template" |
189 | 29 | _columns = { | 29 | _columns = { |
190 | @@ -55,6 +55,8 @@ | |||
191 | 55 | wizard = self.browse(cr, uid, ids, context=context)[0] | 55 | wizard = self.browse(cr, uid, ids, context=context)[0] |
192 | 56 | template_pool = self.pool.get('account.move.template') | 56 | template_pool = self.pool.get('account.move.template') |
193 | 57 | wizard_line_pool = self.pool.get('wizard.select.move.template.line') | 57 | wizard_line_pool = self.pool.get('wizard.select.move.template.line') |
194 | 58 | model_data_obj = self.pool.get('ir.model.data') | ||
195 | 59 | |||
196 | 58 | template = template_pool.browse(cr, uid, wizard.template_id.id) | 60 | template = template_pool.browse(cr, uid, wizard.template_id.id) |
197 | 59 | for line in template.template_line_ids: | 61 | for line in template.template_line_ids: |
198 | 60 | if line.type == 'input': | 62 | if line.type == 'input': |
199 | @@ -69,7 +71,20 @@ | |||
200 | 69 | if not wizard.line_ids: | 71 | if not wizard.line_ids: |
201 | 70 | return self.load_template(cr, uid, ids) | 72 | return self.load_template(cr, uid, ids) |
202 | 71 | wizard.write({'state': 'template_selected'}) | 73 | wizard.write({'state': 'template_selected'}) |
204 | 72 | return True | 74 | |
205 | 75 | view_rec = model_data_obj.get_object_reference(cr, uid, 'account_move_template', 'wizard_select_template') | ||
206 | 76 | view_id = view_rec and view_rec[1] or False | ||
207 | 77 | |||
208 | 78 | return { | ||
209 | 79 | 'view_type': 'form', | ||
210 | 80 | 'view_id' : [view_id], | ||
211 | 81 | 'view_mode': 'form', | ||
212 | 82 | 'res_model': 'wizard.select.move.template', | ||
213 | 83 | 'res_id': wizard.id, | ||
214 | 84 | 'type': 'ir.actions.act_window', | ||
215 | 85 | 'target': 'new', | ||
216 | 86 | 'context': context, | ||
217 | 87 | } | ||
218 | 73 | 88 | ||
219 | 74 | def load_template(self, cr, uid, ids, context=None): | 89 | def load_template(self, cr, uid, ids, context=None): |
220 | 75 | template_obj = self.pool.get('account.move.template') | 90 | template_obj = self.pool.get('account.move.template') |
221 | @@ -80,7 +95,7 @@ | |||
222 | 80 | mod_obj = self.pool.get('ir.model.data') | 95 | mod_obj = self.pool.get('ir.model.data') |
223 | 81 | wizard = self.browse(cr, uid, ids, context=context)[0] | 96 | wizard = self.browse(cr, uid, ids, context=context)[0] |
224 | 82 | if not template_obj.check_zero_lines(cr, uid, wizard): | 97 | if not template_obj.check_zero_lines(cr, uid, wizard): |
226 | 83 | raise osv.except_osv(_('Error !'), _('At least one amount has to be non-zero!')) | 98 | raise orm.except_orm(_('Error !'), _('At least one amount has to be non-zero!')) |
227 | 84 | input_lines = {} | 99 | input_lines = {} |
228 | 85 | 100 | ||
229 | 86 | for template_line in wizard.line_ids: | 101 | for template_line in wizard.line_ids: |
230 | @@ -88,7 +103,7 @@ | |||
231 | 88 | 103 | ||
232 | 89 | period_id = account_period_obj.find(cr, uid, context=context) | 104 | period_id = account_period_obj.find(cr, uid, context=context) |
233 | 90 | if not period_id: | 105 | if not period_id: |
235 | 91 | raise osv.except_osv(_('No period found !'), _('Unable to find a valid period !')) | 106 | raise orm.except_orm(_('No period found !'), _('Unable to find a valid period !')) |
236 | 92 | period_id = period_id[0] | 107 | period_id = period_id[0] |
237 | 93 | 108 | ||
238 | 94 | computed_lines = template_obj.compute_lines(cr, uid, wizard.template_id.id, input_lines) | 109 | computed_lines = template_obj.compute_lines(cr, uid, wizard.template_id.id, input_lines) |
239 | @@ -131,7 +146,7 @@ | |||
240 | 131 | analytic_account_id = False | 146 | analytic_account_id = False |
241 | 132 | if line.analytic_account_id: | 147 | if line.analytic_account_id: |
242 | 133 | if not line.journal_id.analytic_journal_id: | 148 | if not line.journal_id.analytic_journal_id: |
244 | 134 | raise osv.except_osv(_('No Analytic Journal !'), | 149 | raise orm.except_orm(_('No Analytic Journal !'), |
245 | 135 | _("You have to define an analytic journal on the '%s' journal!") | 150 | _("You have to define an analytic journal on the '%s' journal!") |
246 | 136 | % (line.journal_id.name,)) | 151 | % (line.journal_id.name,)) |
247 | 137 | analytic_account_id = line.analytic_account_id.id | 152 | analytic_account_id = line.analytic_account_id.id |
248 | @@ -161,7 +176,7 @@ | |||
249 | 161 | analytic_account_id = False | 176 | analytic_account_id = False |
250 | 162 | if line.analytic_account_id: | 177 | if line.analytic_account_id: |
251 | 163 | if not line.journal_id.analytic_journal_id: | 178 | if not line.journal_id.analytic_journal_id: |
253 | 164 | raise osv.except_osv(_('No Analytic Journal !'), | 179 | raise orm.except_orm(_('No Analytic Journal !'), |
254 | 165 | _("You have to define an analytic journal on the '%s' journal!") | 180 | _("You have to define an analytic journal on the '%s' journal!") |
255 | 166 | % (wizard.template_id.journal_id.name,)) | 181 | % (wizard.template_id.journal_id.name,)) |
256 | 167 | analytic_account_id = line.analytic_account_id.id | 182 | analytic_account_id = line.analytic_account_id.id |
257 | @@ -181,10 +196,8 @@ | |||
258 | 181 | val['debit'] = computed_lines[line.sequence] | 196 | val['debit'] = computed_lines[line.sequence] |
259 | 182 | id_line = account_move_line_obj.create(cr, uid, val) | 197 | id_line = account_move_line_obj.create(cr, uid, val) |
260 | 183 | return id_line | 198 | return id_line |
261 | 184 | |||
262 | 185 | wizard_select_template() | ||
263 | 186 | 199 | ||
265 | 187 | class wizard_select_template_line(osv.osv_memory): | 200 | class wizard_select_template_line(orm.TransientModel): |
266 | 188 | _description = 'Template Lines' | 201 | _description = 'Template Lines' |
267 | 189 | _name = "wizard.select.move.template.line" | 202 | _name = "wizard.select.move.template.line" |
268 | 190 | _columns = { | 203 | _columns = { |
269 | @@ -198,5 +211,3 @@ | |||
270 | 198 | ], 'Move Line Type', required=True,readonly=True), | 211 | ], 'Move Line Type', required=True,readonly=True), |
271 | 199 | 'amount': fields.float('Amount', required=True), | 212 | 'amount': fields.float('Amount', required=True), |
272 | 200 | } | 213 | } |
273 | 201 | |||
274 | 202 | wizard_select_template_line() | ||
275 | 203 | 214 | ||
276 | === modified file 'account_move_template/wizard/select_template.xml' | |||
277 | --- account_move_template/wizard/select_template.xml 2012-11-16 23:44:13 +0000 | |||
278 | +++ account_move_template/wizard/select_template.xml 2013-06-17 10:32:31 +0000 | |||
279 | @@ -5,7 +5,6 @@ | |||
280 | 5 | <record id="wizard_select_template" model="ir.ui.view"> | 5 | <record id="wizard_select_template" model="ir.ui.view"> |
281 | 6 | <field name="name">Select Move Template</field> | 6 | <field name="name">Select Move Template</field> |
282 | 7 | <field name="model">wizard.select.move.template</field> | 7 | <field name="model">wizard.select.move.template</field> |
283 | 8 | <field name="type">form</field> | ||
284 | 9 | <field name="arch" type="xml"> | 8 | <field name="arch" type="xml"> |
285 | 10 | <form string="Move Template" > | 9 | <form string="Move Template" > |
286 | 11 | <group col="2" width="600" height="500"> | 10 | <group col="2" width="600" height="500"> |
287 | @@ -29,7 +28,6 @@ | |||
288 | 29 | <record id="wizard_select_template_line" model="ir.ui.view"> | 28 | <record id="wizard_select_template_line" model="ir.ui.view"> |
289 | 30 | <field name="name">Select Move Template Line</field> | 29 | <field name="name">Select Move Template Line</field> |
290 | 31 | <field name="model">wizard.select.move.template.line</field> | 30 | <field name="model">wizard.select.move.template.line</field> |
291 | 32 | <field name="type">form</field> | ||
292 | 33 | <field name="arch" type="xml"> | 31 | <field name="arch" type="xml"> |
293 | 34 | <form string="Move Template Line"> | 32 | <form string="Move Template Line"> |
294 | 35 | <group col="2"> | 33 | <group col="2"> |
295 | @@ -46,7 +44,6 @@ | |||
296 | 46 | <record id="wizard_select_template_line_tree" model="ir.ui.view"> | 44 | <record id="wizard_select_template_line_tree" model="ir.ui.view"> |
297 | 47 | <field name="name">Select Move Template Line</field> | 45 | <field name="name">Select Move Template Line</field> |
298 | 48 | <field name="model">wizard.select.move.template.line</field> | 46 | <field name="model">wizard.select.move.template.line</field> |
299 | 49 | <field name="type">tree</field> | ||
300 | 50 | <field name="arch" type="xml"> | 47 | <field name="arch" type="xml"> |
301 | 51 | <tree string="Move Template Line" editable="bottom"> | 48 | <tree string="Move Template Line" editable="bottom"> |
302 | 52 | <field name="sequence" invisible="1"/> | 49 | <field name="sequence" invisible="1"/> |
Thanks for following up my suggestions from the other proposal!
Next time, you do not have to delete the earlier proposal but you can instead simply add such changes in an extra bzr commit on the same branch. When you repush the branch to launchpad, the MP will pick this up and reflect the additional changes in its diff. You can then reinvite the reviewers by entering a simple comment on the proposal, or more formally click the 'resubmit proposal' link at the top of the proposal screen in Launchpad.