Merge lp:~openerp-dev/openobject-addons/trunk-radio-button-tpa into lp:openobject-addons
- trunk-radio-button-tpa
- Merge into trunk
Proposed by
Turkesh Patel (openERP)
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-radio-button-tpa |
Merge into: | lp:openobject-addons |
Diff against target: |
467 lines (+49/-51) 28 files modified
account/account_view.xml (+1/-1) account/res_config.py (+2/-2) account/res_config_view.xml (+1/-2) account/wizard/account_report_account_balance_view.xml (+1/-1) account/wizard/account_report_aged_partner_balance_view.xml (+1/-1) account/wizard/account_report_common.py (+1/-1) account/wizard/account_report_common_account.py (+2/-2) account/wizard/account_report_common_view.xml (+3/-3) account/wizard/account_report_general_ledger_view.xml (+3/-3) account/wizard/account_report_partner_balance.py (+1/-1) account/wizard/account_report_partner_balance_view.xml (+1/-1) account/wizard/account_report_print_journal_view.xml (+1/-1) account_asset/account_asset.py (+2/-2) account_asset/account_asset_view.xml (+2/-2) account_voucher/account_voucher.py (+2/-2) account_voucher/voucher_payment_receipt_view.xml (+4/-2) analytic/analytic_view.xml (+2/-2) calendar/calendar.py (+2/-1) calendar/calendar_view.xml (+1/-1) mail/mail_group.py (+1/-1) mail/mail_group_view.xml (+1/-1) mail/tests/test_mail_features.py (+4/-4) mrp/mrp.py (+1/-1) mrp/mrp_view.xml (+1/-1) purchase/res_config.py (+3/-3) purchase/res_config_view.xml (+2/-5) sale_stock/res_config.py (+1/-1) sale_stock/res_config_view.xml (+2/-3) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-radio-button-tpa |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+216666@code.launchpad.net |
Commit message
Description of the change
[IMP] added radio widget on selection fields
To post a comment you must log in.
- 8690. By Sunil Sharma(OpenERP)
-
[MRG]:lp:openobject-addons
- 8691. By Sunil Sharma(OpenERP)
-
[imp]:improve radio widget for target_move field
- 8692. By Sunil Sharma(OpenERP)
-
[MRG]:lp:openobject-addons
- 8693. By Sunil Sharma(OpenERP)
-
[mrg]:lp:openobject-addons
- 8694. By Sunil Sharma(OpenERP)
-
[mrg]:lp:openobject-addons
Unmerged revisions
- 8694. By Sunil Sharma(OpenERP)
-
[mrg]:lp:openobject-addons
- 8693. By Sunil Sharma(OpenERP)
-
[mrg]:lp:openobject-addons
- 8692. By Sunil Sharma(OpenERP)
-
[MRG]:lp:openobject-addons
- 8691. By Sunil Sharma(OpenERP)
-
[imp]:improve radio widget for target_move field
- 8690. By Sunil Sharma(OpenERP)
-
[MRG]:lp:openobject-addons
- 8689. By Turkesh Patel (openERP)
-
[IMP] improved mistek of resolving conflict by avo
- 8688. By Turkesh Patel (openERP)
-
[MRG] merge with lp:openobject-addons
- 8687. By Amit Vora(OpenERP)
-
[IMP] resolve conflict
- 8686. By Amit Vora(OpenERP)
-
[MRG] merge with main branch
- 8685. By Turkesh Patel (openERP)
-
[MRG] merge with lp:openobject-addons
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'account/account_view.xml' |
2 | --- account/account_view.xml 2014-05-02 13:07:53 +0000 |
3 | +++ account/account_view.xml 2014-05-16 06:39:28 +0000 |
4 | @@ -1603,7 +1603,7 @@ |
5 | <form string="Payment Term" version="7.0"> |
6 | <group> |
7 | <group string="Amount Computation"> |
8 | - <field name="value"/> |
9 | + <field name="value" widget="radio" nolabel="1" colspan="4"/> |
10 | <label for="value_amount" string="Amount To Pay" attrs="{'invisible':[('value','=','balance')]}"/> |
11 | <div attrs="{'invisible':[('value','=','balance')]}"> |
12 | <field name="value_amount" class="oe_inline"/> |
13 | |
14 | === modified file 'account/res_config.py' |
15 | --- account/res_config.py 2014-04-23 11:40:53 +0000 |
16 | +++ account/res_config.py 2014-05-16 06:39:28 +0000 |
17 | @@ -51,8 +51,8 @@ |
18 | 'code_digits': fields.integer('# of Digits', help="No. of digits to use for account code"), |
19 | 'tax_calculation_rounding_method': fields.related('company_id', |
20 | 'tax_calculation_rounding_method', type='selection', selection=[ |
21 | - ('round_per_line', 'Round per line'), |
22 | - ('round_globally', 'Round globally'), |
23 | + ('round_per_line', 'Round calculation of taxes per line'), |
24 | + ('round_globally', 'Round globally calculation of taxes '), |
25 | ], string='Tax calculation rounding method', |
26 | help="If you select 'Round per line' : for each tax, the tax amount will first be computed and rounded for each PO/SO/invoice line and then these rounded amounts will be summed, leading to the total amount for that tax. If you select 'Round globally': for each tax, the tax amount will be computed for each PO/SO/invoice line, then these amounts will be summed and eventually this total tax amount will be rounded. If you sell with tax included, you should choose 'Round per line' because you certainly want the sum of your tax-included line subtotals to be equal to the total amount with taxes."), |
27 | 'sale_tax': fields.many2one("account.tax.template", "Default sale tax"), |
28 | |
29 | === modified file 'account/res_config_view.xml' |
30 | --- account/res_config_view.xml 2014-04-21 05:34:56 +0000 |
31 | +++ account/res_config_view.xml 2014-05-16 06:39:28 +0000 |
32 | @@ -115,8 +115,7 @@ |
33 | <field name="decimal_precision" class="oe_inline"/> |
34 | </div> |
35 | <div> |
36 | - <label for="tax_calculation_rounding_method"/> |
37 | - <field name="tax_calculation_rounding_method" class="oe_inline"/> |
38 | + <field name="tax_calculation_rounding_method" widget="radio" class="oe_inline" /> |
39 | </div> |
40 | </div> |
41 | <label for="id" string="Features"/> |
42 | |
43 | === modified file 'account/wizard/account_report_account_balance_view.xml' |
44 | --- account/wizard/account_report_account_balance_view.xml 2012-11-29 22:26:45 +0000 |
45 | +++ account/wizard/account_report_account_balance_view.xml 2014-05-16 06:39:28 +0000 |
46 | @@ -12,7 +12,7 @@ |
47 | <xpath expr="//notebook/page[@string='Journals']" position="replace"> |
48 | </xpath> |
49 | <xpath expr="//field[@name='target_move']" position="after"> |
50 | - <field name="display_account"/> |
51 | + <field name="display_account" widget="radio"/> |
52 | <newline/> |
53 | </xpath> |
54 | </data> |
55 | |
56 | === modified file 'account/wizard/account_report_aged_partner_balance_view.xml' |
57 | --- account/wizard/account_report_aged_partner_balance_view.xml 2014-03-19 14:33:46 +0000 |
58 | +++ account/wizard/account_report_aged_partner_balance_view.xml 2014-05-16 06:39:28 +0000 |
59 | @@ -19,7 +19,7 @@ |
60 | <newline/> |
61 | <field name="result_selection"/> |
62 | <field name="direction_selection"/> |
63 | - <field name="target_move"/> |
64 | + <field name="target_move" widget="radio"/> |
65 | </group> |
66 | <field name="journal_ids" required="0" invisible="1"/> |
67 | <footer> |
68 | |
69 | === modified file 'account/wizard/account_report_common.py' |
70 | --- account/wizard/account_report_common.py 2013-10-27 12:31:04 +0000 |
71 | +++ account/wizard/account_report_common.py 2014-05-16 06:39:28 +0000 |
72 | @@ -44,7 +44,7 @@ |
73 | 'chart_account_id': fields.many2one('account.account', 'Chart of Account', help='Select Charts of Accounts', required=True, domain = [('parent_id','=',False)]), |
74 | 'company_id': fields.related('chart_account_id', 'company_id', type='many2one', relation='res.company', string='Company', readonly=True), |
75 | 'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', help='Keep empty for all open fiscal year'), |
76 | - 'filter': fields.selection([('filter_no', 'No Filters'), ('filter_date', 'Date'), ('filter_period', 'Periods')], "Filter by", required=True), |
77 | + 'filter': fields.selection([('filter_no', 'Do not apply filter'), ('filter_date', 'Filter by date'), ('filter_period', 'Filter by period')], "Filter by", required=True), |
78 | 'period_from': fields.many2one('account.period', 'Start Period'), |
79 | 'period_to': fields.many2one('account.period', 'End Period'), |
80 | 'journal_ids': fields.many2many('account.journal', string='Journals', required=True), |
81 | |
82 | === modified file 'account/wizard/account_report_common_account.py' |
83 | --- account/wizard/account_report_common_account.py 2013-10-27 12:31:04 +0000 |
84 | +++ account/wizard/account_report_common_account.py 2014-05-16 06:39:28 +0000 |
85 | @@ -26,8 +26,8 @@ |
86 | _description = 'Account Common Account Report' |
87 | _inherit = "account.common.report" |
88 | _columns = { |
89 | - 'display_account': fields.selection([('all','All'), ('movement','With movements'), |
90 | - ('not_zero','With balance is not equal to 0'), |
91 | + 'display_account': fields.selection([('all','Display all Accounts'), ('movement','Display Accounts with movements'), |
92 | + ('not_zero','Display Account where balance is not equal to 0'), |
93 | ],'Display Accounts', required=True), |
94 | |
95 | } |
96 | |
97 | === modified file 'account/wizard/account_report_common_view.xml' |
98 | --- account/wizard/account_report_common_view.xml 2012-11-29 22:26:45 +0000 |
99 | +++ account/wizard/account_report_common_view.xml 2014-05-16 06:39:28 +0000 |
100 | @@ -12,12 +12,12 @@ |
101 | <field name="chart_account_id" widget='selection' on_change="onchange_chart_id(chart_account_id, context)"/> |
102 | <field name="company_id" invisible="1"/> |
103 | <field name="fiscalyear_id" domain="[('company_id','=',company_id)]"/> |
104 | - <field name="target_move"/> |
105 | + <field name="target_move" widget="radio" nolable="1"/> |
106 | </group> |
107 | <notebook tabpos="up" colspan="4"> |
108 | <page string="Filters" name="filters"> |
109 | - <group> |
110 | - <field name="filter" on_change="onchange_filter(filter, fiscalyear_id)"/> |
111 | + <group col="4"> |
112 | + <field name="filter" on_change="onchange_filter(filter, fiscalyear_id)" widget="radio" nolabel="1"/> |
113 | </group> |
114 | <group string="Dates" attrs="{'invisible':[('filter', '!=', 'filter_date')], 'required':[('filter', '=', 'filter_date')]}"> |
115 | <field name="date_from" /> |
116 | |
117 | === modified file 'account/wizard/account_report_general_ledger_view.xml' |
118 | --- account/wizard/account_report_general_ledger_view.xml 2012-11-29 22:26:45 +0000 |
119 | +++ account/wizard/account_report_general_ledger_view.xml 2014-05-16 06:39:28 +0000 |
120 | @@ -9,14 +9,14 @@ |
121 | <field name="arch" type="xml"> |
122 | <data> |
123 | <xpath expr="//field[@name='target_move']" position="after"> |
124 | - <field name="display_account"/> |
125 | - <field name="sortby"/> |
126 | + <field name="display_account" widget="radio"/> |
127 | + <field name="sortby" widget="radio"/> |
128 | <field name="landscape"/> |
129 | <field name="amount_currency"/> |
130 | <newline/> |
131 | </xpath> |
132 | <xpath expr="//field[@name='filter']" position="after"> |
133 | - <field name="initial_balance" attrs="{'readonly':[('filter', 'in', ('filter_no'))]}" /> |
134 | + <field name="initial_balance" attrs="{'readonly':[('filter', 'in', ('filter_no'))]}"/> |
135 | </xpath> |
136 | </data> |
137 | </field> |
138 | |
139 | === modified file 'account/wizard/account_report_partner_balance.py' |
140 | --- account/wizard/account_report_partner_balance.py 2014-05-02 13:03:10 +0000 |
141 | +++ account/wizard/account_report_partner_balance.py 2014-05-16 06:39:28 +0000 |
142 | @@ -30,7 +30,7 @@ |
143 | _name = 'account.partner.balance' |
144 | _description = 'Print Account Partner Balance' |
145 | _columns = { |
146 | - 'display_partner': fields.selection([('non-zero_balance', 'With balance is not equal to 0'), ('all', 'All Partners')] |
147 | + 'display_partner': fields.selection([('non-zero_balance', 'Display partners with balance is not equal to 0'), ('all', 'Display all partners')] |
148 | ,'Display Partners'), |
149 | 'journal_ids': fields.many2many('account.journal', 'account_partner_balance_journal_rel', 'account_id', 'journal_id', 'Journals', required=True), |
150 | } |
151 | |
152 | === modified file 'account/wizard/account_report_partner_balance_view.xml' |
153 | --- account/wizard/account_report_partner_balance_view.xml 2012-11-29 22:26:45 +0000 |
154 | +++ account/wizard/account_report_partner_balance_view.xml 2014-05-16 06:39:28 +0000 |
155 | @@ -10,7 +10,7 @@ |
156 | <data> |
157 | <xpath expr="//field[@name='target_move']" position="after"> |
158 | <field name="result_selection"/> |
159 | - <field name="display_partner"/> |
160 | + <field name="display_partner" widget="radio"/> |
161 | <newline/> |
162 | </xpath> |
163 | </data> |
164 | |
165 | === modified file 'account/wizard/account_report_print_journal_view.xml' |
166 | --- account/wizard/account_report_print_journal_view.xml 2012-11-29 22:26:45 +0000 |
167 | +++ account/wizard/account_report_print_journal_view.xml 2014-05-16 06:39:28 +0000 |
168 | @@ -9,7 +9,7 @@ |
169 | <field name="arch" type="xml"> |
170 | <data> |
171 | <xpath expr="//field[@name='target_move']" position="after"> |
172 | - <field name="sort_selection"/> |
173 | + <field name="sort_selection" widget="radio"/> |
174 | <field name="amount_currency"/> |
175 | <newline/> |
176 | <field name="filter" on_change="onchange_filter(filter, fiscalyear_id)" colspan="4" invisible="1"/> |
177 | |
178 | === modified file 'account_asset/account_asset.py' |
179 | --- account_asset/account_asset.py 2014-05-07 13:45:44 +0000 |
180 | +++ account_asset/account_asset.py 2014-05-16 06:39:28 +0000 |
181 | @@ -40,7 +40,7 @@ |
182 | 'account_expense_depreciation_id': fields.many2one('account.account', 'Depr. Expense Account', required=True, domain=[('type','=','other')]), |
183 | 'journal_id': fields.many2one('account.journal', 'Journal', required=True), |
184 | 'company_id': fields.many2one('res.company', 'Company', required=True), |
185 | - 'method': fields.selection([('linear','Linear'),('degressive','Degressive')], 'Computation Method', required=True, help="Choose the method to use to compute the amount of depreciation lines.\n"\ |
186 | + 'method': fields.selection([('linear','Linear: Computed on basis of Gross Value / Number of Depreciations'),('degressive','Degressive: Computed on basis of Residual Value * Degressive Factor')], 'Computation Method', required=True, help="Choose the method to use to compute the amount of depreciation lines.\n"\ |
187 | " * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n" \ |
188 | " * Degressive: Calculated on basis of: Residual Value * Degressive Factor"), |
189 | 'method_number': fields.integer('Number of Depreciations', help="The number of depreciations needed to depreciate your asset"), |
190 | @@ -262,7 +262,7 @@ |
191 | "You can manually close an asset when the depreciation is over. If the last line of depreciation is posted, the asset automatically goes in that status."), |
192 | 'active': fields.boolean('Active'), |
193 | 'partner_id': fields.many2one('res.partner', 'Partner', readonly=True, states={'draft':[('readonly',False)]}), |
194 | - 'method': fields.selection([('linear','Linear'),('degressive','Degressive')], 'Computation Method', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="Choose the method to use to compute the amount of depreciation lines.\n"\ |
195 | + 'method': fields.selection([('linear','Linear: Computed on basis of Gross Value / Number of Depreciations'),('degressive','Degressive: Computed on basis of Residual Value * Degressive Factor')], 'Computation Method', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="Choose the method to use to compute the amount of depreciation lines.\n"\ |
196 | " * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n" \ |
197 | " * Degressive: Calculated on basis of: Residual Value * Degressive Factor"), |
198 | 'method_number': fields.integer('Number of Depreciations', readonly=True, states={'draft':[('readonly',False)]}, help="The number of depreciations needed to depreciate your asset"), |
199 | |
200 | === modified file 'account_asset/account_asset_view.xml' |
201 | --- account_asset/account_asset_view.xml 2014-03-28 14:06:51 +0000 |
202 | +++ account_asset/account_asset_view.xml 2014-05-16 06:39:28 +0000 |
203 | @@ -28,7 +28,7 @@ |
204 | <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','=','number')]}"/> |
205 | </group> |
206 | <group string="Depreciation Method"> |
207 | - <field name="method"/> |
208 | + <field name="method" widget="radio"/> |
209 | <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')], 'required':[('method','=','degressive')]}"/> |
210 | <field name="prorata"/> |
211 | <field name="open_asset"/> |
212 | @@ -116,7 +116,7 @@ |
213 | <field name="partner_id"/> |
214 | </group> |
215 | <group> |
216 | - <field name="method"/> |
217 | + <field name="method" widget="radio"/> |
218 | <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')], 'required':[('method','=','degressive')]}"/> |
219 | <label for="method_time"/> |
220 | <div> |
221 | |
222 | === modified file 'account_voucher/account_voucher.py' |
223 | --- account_voucher/account_voucher.py 2014-05-02 13:03:52 +0000 |
224 | +++ account_voucher/account_voucher.py 2014-05-16 06:39:28 +0000 |
225 | @@ -374,8 +374,8 @@ |
226 | 'pre_line':fields.boolean('Previous Payments ?', required=False), |
227 | 'date_due': fields.date('Due Date', readonly=True, select=True, states={'draft':[('readonly',False)]}), |
228 | 'payment_option':fields.selection([ |
229 | - ('without_writeoff', 'Keep Open'), |
230 | - ('with_writeoff', 'Reconcile Payment Balance'), |
231 | + ('without_writeoff', 'Keep it open'), |
232 | + ('with_writeoff', 'Reconcile payment balance'), |
233 | ], 'Payment Difference', required=True, readonly=True, states={'draft': [('readonly', False)]}, help="This field helps you to choose what you want to do with the eventual difference between the paid amount and the sum of allocated amounts. You can either choose to keep open this difference on the partner's account, or reconcile it with the payment(s)"), |
234 | 'writeoff_acc_id': fields.many2one('account.account', 'Counterpart Account', readonly=True, states={'draft': [('readonly', False)]}), |
235 | 'comment': fields.char('Counterpart Comment', size=64, required=True, readonly=True, states={'draft': [('readonly', False)]}), |
236 | |
237 | === modified file 'account_voucher/voucher_payment_receipt_view.xml' |
238 | --- account_voucher/voucher_payment_receipt_view.xml 2013-10-27 12:31:04 +0000 |
239 | +++ account_voucher/voucher_payment_receipt_view.xml 2014-05-16 06:39:28 +0000 |
240 | @@ -211,13 +211,15 @@ |
241 | <group col="2"> |
242 | <separator string="Payment Options" colspan="2"/> |
243 | <field name="writeoff_amount" widget='monetary' options='{"currency_field": "currency_id"}'/> |
244 | - <field name="payment_option" required="1"/> |
245 | + <label for="payment_option" string="Difference of payment amount" class="oe_inline"/> |
246 | + <field name="payment_option" widget="radio" required="1" nolabel="1"/> |
247 | <field name="writeoff_acc_id" |
248 | attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}" |
249 | domain="[('type','=','other')]"/> |
250 | <field name="comment" |
251 | attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/> |
252 | <field name="analytic_id" |
253 | + attrs="{'invisible':[('payment_option','!=','with_writeoff')]}" |
254 | groups="analytic.group_analytic_accounting"/> |
255 | </group> |
256 | </group> |
257 | @@ -495,7 +497,7 @@ |
258 | </group> |
259 | <group> |
260 | <field name="writeoff_amount" widget="monetary" options="{'currency_field': 'currency_id'}"/> |
261 | - <field name="payment_option" required="1" attrs="{'invisible':[('writeoff_amount','=',0)]}"/> |
262 | + <field name="payment_option" required="1" widget="radio" attrs="{'invisible':[('writeoff_amount','=',0)]}"/> |
263 | <field name="writeoff_acc_id" |
264 | attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)], 'required':[('payment_option','=','with_writeoff')]}" |
265 | domain="[('type','=','other')]"/> |
266 | |
267 | === modified file 'analytic/analytic_view.xml' |
268 | --- analytic/analytic_view.xml 2014-04-01 12:36:57 +0000 |
269 | +++ analytic/analytic_view.xml 2014-05-16 06:39:28 +0000 |
270 | @@ -26,8 +26,8 @@ |
271 | <field name="currency_id" attrs="{'invisible': ['|',('type', '<>', 'view'), ('company_id', '<>', False)]}"/> |
272 | </group> |
273 | <group> |
274 | - <field name="type" invisible="context.get('default_type', False)"/> |
275 | - <field name="template_id" on_change="on_change_template(template_id, date_start)" domain="[('type','=','template')]" attrs="{'invisible': [('type','in',['view', 'normal','template'])]}" context="{'default_type' : 'template'}"/> |
276 | + <field name="type" invisible="context.get('default_type', False)" widget="radio"/> |
277 | + <field name="template_id" on_change="on_change_template(template_id,date_start)" domain="[('type','=','template')]" attrs="{'invisible': [('type','in',['view', 'normal','template'])]}" context="{'default_type' : 'template'}"/> |
278 | <field name="code"/> |
279 | <field name="parent_id" on_change="on_change_parent(parent_id)" attrs="{'invisible': [('type','in',['contract'])]}"/> |
280 | <field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','<>','view')]}"/> |
281 | |
282 | === modified file 'calendar/calendar.py' |
283 | --- calendar/calendar.py 2014-05-14 08:28:10 +0000 |
284 | +++ calendar/calendar.py 2014-05-16 06:39:28 +0000 |
285 | @@ -869,7 +869,8 @@ |
286 | 'stop_datetime': fields.datetime('End Datetime', states={'done': [('readonly', True)]}, track_visibility='onchange'), # old date_deadline |
287 | 'duration': fields.float('Duration', states={'done': [('readonly', True)]}), |
288 | 'description': fields.text('Description', states={'done': [('readonly', True)]}), |
289 | - 'class': fields.selection([('public', 'Public'), ('private', 'Private'), ('confidential', 'Public for Employees')], 'Privacy', states={'done': [('readonly', True)]}), |
290 | + 'class': fields.selection([('public', 'Everyone'), ('private', 'Only me'), \ |
291 | + ('confidential', 'Only internal users')], 'Privacy', states={'done': [('readonly', True)]}), |
292 | 'location': fields.char('Location', help="Location of Event", track_visibility='onchange', states={'done': [('readonly', True)]}), |
293 | 'show_as': fields.selection([('free', 'Free'), ('busy', 'Busy')], 'Show Time as', states={'done': [('readonly', True)]}), |
294 | |
295 | |
296 | === modified file 'calendar/calendar_view.xml' |
297 | --- calendar/calendar_view.xml 2014-05-05 15:42:46 +0000 |
298 | +++ calendar/calendar_view.xml 2014-05-16 06:39:28 +0000 |
299 | @@ -127,7 +127,7 @@ |
300 | </group> |
301 | </group> |
302 | <group> |
303 | - <field name="class"/> |
304 | + <field name="class" widget="radio"/> |
305 | <field name="show_as"/> |
306 | <field name="rrule" invisible="1" readonly="0" /> |
307 | <field name="recurrent_id" invisible="1" /> |
308 | |
309 | === modified file 'mail/mail_group.py' |
310 | --- mail/mail_group.py 2014-03-20 15:08:55 +0000 |
311 | +++ mail/mail_group.py 2014-05-16 06:39:28 +0000 |
312 | @@ -48,7 +48,7 @@ |
313 | 'name': fields.char('Name', size=64, required=True, translate=True), |
314 | 'description': fields.text('Description'), |
315 | 'menu_id': fields.many2one('ir.ui.menu', string='Related Menu', required=True, ondelete="cascade"), |
316 | - 'public': fields.selection([('public', 'Public'), ('private', 'Private'), ('groups', 'Selected Group Only')], 'Privacy', required=True, |
317 | + 'public': fields.selection([('public', 'Everyone'), ('private', 'Invited people only'), ('groups', 'Selected group of users')], 'Privacy', required=True, |
318 | help='This group is visible by non members. \ |
319 | Invisible groups can add members through the invite button.'), |
320 | 'group_public_id': fields.many2one('res.groups', string='Authorized Group'), |
321 | |
322 | === modified file 'mail/mail_group_view.xml' |
323 | --- mail/mail_group_view.xml 2013-10-27 12:31:04 +0000 |
324 | +++ mail/mail_group_view.xml 2014-05-16 06:39:28 +0000 |
325 | @@ -95,7 +95,7 @@ |
326 | <field name="description" placeholder="Topics discussed in this group..."/> |
327 | <div class="oe_clear"/> |
328 | <group class="oe_edit_only"> |
329 | - <field name="public"/> |
330 | + <field name="public" widget="radio" string="Who can follow the group's activities?"/> |
331 | <field name="group_public_id" |
332 | attrs="{'invisible': [('public','<>','groups')], 'required': [('public','=','groups')]}" |
333 | /> |
334 | |
335 | === modified file 'mail/tests/test_mail_features.py' |
336 | --- mail/tests/test_mail_features.py 2014-04-17 09:41:33 +0000 |
337 | +++ mail/tests/test_mail_features.py 2014-05-16 06:39:28 +0000 |
338 | @@ -862,7 +862,7 @@ |
339 | # Test: first produced message: no subtype, name change tracked |
340 | last_msg = self.group_pigs.message_ids[-1] |
341 | self.assertFalse(last_msg.subtype_id, 'tracked: message should not have been linked to a subtype') |
342 | - self.assertIn(u'SelectedGroupOnly\u2192Public', _strip_string_spaces(last_msg.body), 'tracked: message body incorrect') |
343 | + self.assertIn(u"Selectedgroupofusers\u2192Everyone", _strip_string_spaces(last_msg.body), 'tracked: message body incorrect') |
344 | self.assertIn('Pigs', _strip_string_spaces(last_msg.body), 'tracked: message body does not hold always tracked field') |
345 | |
346 | # Test: change name as supername, public as private -> 2 subtypes |
347 | @@ -878,7 +878,7 @@ |
348 | last_msg = self.group_pigs.message_ids[-3] |
349 | self.assertEqual(last_msg.subtype_id.id, mt_name_supername_id, 'tracked: message should be linked to mt_name_supername subtype') |
350 | self.assertIn('Supername name', last_msg.body, 'tracked: message body does not hold the subtype description') |
351 | - self.assertIn(u'Public\u2192Private', _strip_string_spaces(last_msg.body), 'tracked: message body incorrect') |
352 | + self.assertIn(u"Everyone\u2192Invitedpeopleonly", _strip_string_spaces(last_msg.body), 'tracked: message body incorrect') |
353 | self.assertIn(u'Pigs\u2192supername', _strip_string_spaces(last_msg.body), 'tracked feature: message body does not hold always tracked field') |
354 | |
355 | # Test: change public as public, group_public_id -> 2 subtypes, name always tracked |
356 | @@ -889,13 +889,13 @@ |
357 | last_msg = self.group_pigs.message_ids[-4] |
358 | self.assertEqual(last_msg.subtype_id.id, mt_group_public_set_id, 'tracked: message should be linked to mt_group_public_set_id') |
359 | self.assertIn('Group set', last_msg.body, 'tracked: message body does not hold the subtype description') |
360 | - self.assertIn(u'Private\u2192Public', _strip_string_spaces(last_msg.body), 'tracked: message body does not hold changed tracked field') |
361 | + self.assertIn(u"Invitedpeopleonly\u2192Everyone", _strip_string_spaces(last_msg.body), 'tracked: message body does not hold changed tracked field') |
362 | self.assertIn(u'HumanResources/Employee\u2192Administration/Settings', _strip_string_spaces(last_msg.body), 'tracked: message body does not hold always tracked field') |
363 | # Test: second produced message: mt_group_public_id, with name always tracked, public tracked on change |
364 | last_msg = self.group_pigs.message_ids[-5] |
365 | self.assertEqual(last_msg.subtype_id.id, mt_group_public_id, 'tracked: message should be linked to mt_group_public_id') |
366 | self.assertIn('Group changed', last_msg.body, 'tracked: message body does not hold the subtype description') |
367 | - self.assertIn(u'Private\u2192Public', _strip_string_spaces(last_msg.body), 'tracked: message body does not hold changed tracked field') |
368 | + self.assertIn(u"Invitedpeopleonly\u2192Everyone", _strip_string_spaces(last_msg.body), 'tracked: message body does not hold changed tracked field') |
369 | self.assertIn(u'HumanResources/Employee\u2192Administration/Settings', _strip_string_spaces(last_msg.body), 'tracked: message body does not hold always tracked field') |
370 | |
371 | # Test: change group_public_id to False -> 1 subtype, name always tracked |
372 | |
373 | === modified file 'mrp/mrp.py' |
374 | --- mrp/mrp.py 2014-05-08 11:59:17 +0000 |
375 | +++ mrp/mrp.py 2014-05-16 06:39:28 +0000 |
376 | @@ -196,7 +196,7 @@ |
377 | 'name': fields.char('Name', size=64), |
378 | 'code': fields.char('Reference', size=16), |
379 | 'active': fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the bills of material without removing it."), |
380 | - 'type': fields.selection([('normal', 'Normal BoM'), ('phantom', 'Sets / Phantom')], 'BoM Type', required=True, |
381 | + 'type': fields.selection([('normal','Manufacture this product as a normal bill of material'),('phantom','Sell and ship this product as a set of components(phantom)')], 'BoM Type', required=True, |
382 | help= "If a by-product is used in several products, it can be useful to create its own BoM. "\ |
383 | "Though if you don't want separated production orders for this by-product, select Set/Phantom as BoM type. "\ |
384 | "If a Phantom BoM is used for a root product, it will be sold and shipped as a set of components, instead of being produced."), |
385 | |
386 | === modified file 'mrp/mrp_view.xml' |
387 | --- mrp/mrp_view.xml 2014-05-07 18:29:17 +0000 |
388 | +++ mrp/mrp_view.xml 2014-05-16 06:39:28 +0000 |
389 | @@ -368,7 +368,7 @@ |
390 | <group> |
391 | <field name="name" groups="product.group_mrp_properties"/> |
392 | <field name="code" string="Reference"/> |
393 | - <field name="type"/> |
394 | + <field name="type" widget="radio"/> |
395 | <p colspan="2" class="oe_grey" attrs="{'invisible': [('type','=','normal')]}"> |
396 | When processing a sales order for this product, the delivery order |
397 | will contain the raw materials, instead of the finished product. |
398 | |
399 | === modified file 'purchase/res_config.py' |
400 | --- purchase/res_config.py 2014-04-15 11:29:15 +0000 |
401 | +++ purchase/res_config.py 2014-05-16 06:39:28 +0000 |
402 | @@ -28,9 +28,9 @@ |
403 | |
404 | _columns = { |
405 | 'default_invoice_method': fields.selection( |
406 | - [('manual', 'Based on purchase order lines'), |
407 | - ('picking', 'Based on incoming shipments'), |
408 | - ('order', 'Pre-generate draft invoices based on purchase orders'), |
409 | + [('manual', 'Control supplier invoice on purchase order line'), |
410 | + ('picking', 'Control supplier invoice on incoming shipments'), |
411 | + ('order', 'Control supplier invoice on a pregenerated draft invoice'), |
412 | ], 'Default invoicing control method', required=True, default_model='purchase.order'), |
413 | 'group_purchase_pricelist':fields.boolean("Manage pricelist per supplier", |
414 | implied_group='product.group_purchase_pricelist', |
415 | |
416 | === modified file 'purchase/res_config_view.xml' |
417 | --- purchase/res_config_view.xml 2013-12-03 13:44:48 +0000 |
418 | +++ purchase/res_config_view.xml 2014-05-16 06:39:28 +0000 |
419 | @@ -25,12 +25,9 @@ |
420 | </header> |
421 | <separator string="Invoicing Process"/> |
422 | <group> |
423 | - <label for="id" string="Invoicing Settings"/> |
424 | + <label for="id" string="Default Invoicing Settings"/> |
425 | <div> |
426 | - <div> |
427 | - <label for="default_invoice_method"/> |
428 | - <field name="default_invoice_method" class="oe_inline"/> |
429 | - </div> |
430 | + <field name="default_invoice_method" widget="radio" class="oe_inline"/> |
431 | </div> |
432 | </group> |
433 | <separator string="Purchase Order"/> |
434 | |
435 | === modified file 'sale_stock/res_config.py' |
436 | --- sale_stock/res_config.py 2014-05-08 14:39:40 +0000 |
437 | +++ sale_stock/res_config.py 2014-05-16 06:39:28 +0000 |
438 | @@ -37,7 +37,7 @@ |
439 | 'and to automatically creates project tasks from procurement lines.\n' |
440 | '-This installs the modules project_timesheet and project_mrp.'), |
441 | 'default_order_policy': fields.selection( |
442 | - [('manual', 'Invoice based on sales orders'), ('picking', 'Invoice based on deliveries')], |
443 | + [('manual', 'Create invoice on sales order'), ('picking', 'Create invoice on deliveries')], |
444 | 'The default invoicing method is', default_model='sale.order', |
445 | help="You can generate invoices based on sales orders or based on shippings."), |
446 | 'module_delivery': fields.boolean('Allow adding shipping costs', |
447 | |
448 | === modified file 'sale_stock/res_config_view.xml' |
449 | --- sale_stock/res_config_view.xml 2014-04-14 09:47:43 +0000 |
450 | +++ sale_stock/res_config_view.xml 2014-05-16 06:39:28 +0000 |
451 | @@ -28,8 +28,7 @@ |
452 | </xpath> |
453 | <xpath expr="//div[@name='time_unit']" position="before"> |
454 | <div attrs="{'invisible':['|',('group_invoice_so_lines','=',False),('group_invoice_deli_orders','=',False)],'required': ['|',('group_invoice_so_lines','=',True),('group_invoice_deli_orders','=',True)]}"> |
455 | - <label for="default_order_policy"/> |
456 | - <field name="default_order_policy" class="oe_inline"/> |
457 | + <field name="default_order_policy" class="oe_inline" widget="radio"/> |
458 | </div> |
459 | <div> |
460 | <field name="module_delivery" class="oe_inline"/> |
461 | @@ -71,4 +70,4 @@ |
462 | </field> |
463 | </record> |
464 | </data> |
465 | -</openerp> |
466 | \ No newline at end of file |
467 | +</openerp> |