Merge lp:~unifield-team/unifield-server/us-1213 into lp:unifield-server
- us-1213
- Merge into trunk
Proposed by
jftempo
Status: | Merged |
---|---|
Merged at revision: | 4176 |
Proposed branch: | lp:~unifield-team/unifield-server/us-1213 |
Merge into: | lp:unifield-server |
Diff against target: |
197 lines (+42/-27) 5 files modified
bin/addons/consumption_calculation/consumption_calculation.py (+7/-7) bin/addons/consumption_calculation/consumption_view.xml (+2/-2) bin/addons/msf_printed_documents/report/consumption_report.rml (+2/-2) bin/addons/msf_profile/i18n/es_MF.po (+7/-3) bin/addons/msf_profile/i18n/fr_MF.po (+24/-13) |
To merge this branch: | bzr merge lp:~unifield-team/unifield-server/us-1213 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
UniField Reviewer Team | Pending | ||
Review via email: mp+316017@code.launchpad.net |
Commit message
Description of the change
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/consumption_calculation/consumption_calculation.py' | |||
2 | --- bin/addons/consumption_calculation/consumption_calculation.py 2016-11-17 15:46:10 +0000 | |||
3 | +++ bin/addons/consumption_calculation/consumption_calculation.py 2017-01-31 14:44:16 +0000 | |||
4 | @@ -159,13 +159,13 @@ | |||
5 | 159 | _columns = { | 159 | _columns = { |
6 | 160 | 'name': fields.char(size=64, string='Reference'), | 160 | 'name': fields.char(size=64, string='Reference'), |
7 | 161 | 'creation_date': fields.datetime(string='Creation date', required=1), | 161 | 'creation_date': fields.datetime(string='Creation date', required=1), |
9 | 162 | 'cons_location_id': fields.many2one('stock.location', string='Consumer location', domain=[('usage', '=', 'internal')], required=True, select=1), | 162 | 'cons_location_id': fields.many2one('stock.location', string='Source Location', domain=[('usage', '=', 'internal')], required=True, select=1), |
10 | 163 | 'cons_location_name': fields.function(_get_act_name, method=True, type='char', string='Consumer location Name', readonly=True, size=128, multi='loc_name', store={ | 163 | 'cons_location_name': fields.function(_get_act_name, method=True, type='char', string='Consumer location Name', readonly=True, size=128, multi='loc_name', store={ |
16 | 164 | 'real.average.consumption': (lambda obj, cr, uid, ids, c={}: ids, ['cons_location_id'], 10), | 164 | 'real.average.consumption': (lambda obj, cr, uid, ids, c={}: ids, ['cons_location_id'], 10), |
17 | 165 | 'stock.location': (_get_stock_location, ['name'], 20), | 165 | 'stock.location': (_get_stock_location, ['name'], 20), |
18 | 166 | },), | 166 | },), |
19 | 167 | 'activity_id': fields.many2one('stock.location', string='Activity', domain=[('usage', '=', 'customer')], required=1, select=1), | 167 | 'activity_id': fields.many2one('stock.location', string='Destination Location', domain=[('usage', '=', 'customer')], required=1, select=1), |
20 | 168 | 'activity_name': fields.function(_get_act_name, method=True, type='char', string='Activity Name', readonly=True, size=128, multi='loc_name', store={ | 168 | 'activity_name': fields.function(_get_act_name, method=True, type='char', string='Destination Location', readonly=True, size=128, multi='loc_name', store={ |
21 | 169 | 'real.average.consumption': (lambda obj, cr, uid, ids, c={}: ids, ['activity_id'], 10), | 169 | 'real.average.consumption': (lambda obj, cr, uid, ids, c={}: ids, ['activity_id'], 10), |
22 | 170 | 'stock.location': (_get_stock_location, ['name'], 20), | 170 | 'stock.location': (_get_stock_location, ['name'], 20), |
23 | 171 | },), | 171 | },), |
24 | @@ -1024,7 +1024,7 @@ | |||
25 | 1024 | 1024 | ||
26 | 1025 | _columns = { | 1025 | _columns = { |
27 | 1026 | 'report_id': fields.many2one('real.average.consumption', string='Report'), | 1026 | 'report_id': fields.many2one('real.average.consumption', string='Report'), |
29 | 1027 | 'location_id': fields.many2one('stock.location', string='Consumer location', required=True), | 1027 | 'location_id': fields.many2one('stock.location', string='Source Location', required=True), |
30 | 1028 | } | 1028 | } |
31 | 1029 | 1029 | ||
32 | 1030 | def change_location(self, cr, uid, ids, context=None): | 1030 | def change_location(self, cr, uid, ids, context=None): |
33 | 1031 | 1031 | ||
34 | === modified file 'bin/addons/consumption_calculation/consumption_view.xml' | |||
35 | --- bin/addons/consumption_calculation/consumption_view.xml 2016-11-04 12:57:37 +0000 | |||
36 | +++ bin/addons/consumption_calculation/consumption_view.xml 2017-01-31 14:44:16 +0000 | |||
37 | @@ -102,8 +102,8 @@ | |||
38 | 102 | <field name="arch" type="xml"> | 102 | <field name="arch" type="xml"> |
39 | 103 | <tree string="Real consumption reports"> | 103 | <tree string="Real consumption reports"> |
40 | 104 | <field name="name" /> | 104 | <field name="name" /> |
43 | 105 | <field name="cons_location_name" string="Consumer location" /> | 105 | <field name="cons_location_name" string="Source Location" /> |
44 | 106 | <field name="activity_name" string="Activity" /> | 106 | <field name="activity_name" string="Destination Location" /> |
45 | 107 | <field name="period_from" /> | 107 | <field name="period_from" /> |
46 | 108 | <field name="period_to" /> | 108 | <field name="period_to" /> |
47 | 109 | <field name="nb_lines" /> | 109 | <field name="nb_lines" /> |
48 | 110 | 110 | ||
49 | === modified file 'bin/addons/msf_printed_documents/report/consumption_report.rml' | |||
50 | --- bin/addons/msf_printed_documents/report/consumption_report.rml 2012-07-25 12:07:31 +0000 | |||
51 | +++ bin/addons/msf_printed_documents/report/consumption_report.rml 2017-01-31 14:44:16 +0000 | |||
52 | @@ -180,7 +180,7 @@ | |||
53 | 180 | </tr> | 180 | </tr> |
54 | 181 | <tr> | 181 | <tr> |
55 | 182 | <td> | 182 | <td> |
57 | 183 | <para style="TextInformation" alignment="LEFT"><b>Location :</b></para> | 183 | <para style="TextInformation" alignment="LEFT"><b>Source Location :</b></para> |
58 | 184 | </td> | 184 | </td> |
59 | 185 | <td> | 185 | <td> |
60 | 186 | <para style="TextInformation" alignment="LEFT">[[ objects[0].cons_location_id and objects[0].cons_location_id.name or False]]</para> | 186 | <para style="TextInformation" alignment="LEFT">[[ objects[0].cons_location_id and objects[0].cons_location_id.name or False]]</para> |
61 | @@ -194,7 +194,7 @@ | |||
62 | 194 | </tr> | 194 | </tr> |
63 | 195 | <tr> | 195 | <tr> |
64 | 196 | <td> | 196 | <td> |
66 | 197 | <para style="TextInformation" alignment="LEFT"><b>Activity :</b></para> | 197 | <para style="TextInformation" alignment="LEFT"><b>Destination Location :</b></para> |
67 | 198 | </td> | 198 | </td> |
68 | 199 | <td> | 199 | <td> |
69 | 200 | <para style="TextInformation" alignment="LEFT">[[ objects[0].activity_id and objects[0].activity_id.name or False]]</para> | 200 | <para style="TextInformation" alignment="LEFT">[[ objects[0].activity_id and objects[0].activity_id.name or False]]</para> |
70 | 201 | 201 | ||
71 | === modified file 'bin/addons/msf_profile/i18n/es_MF.po' | |||
72 | --- bin/addons/msf_profile/i18n/es_MF.po 2016-12-13 14:54:56 +0000 | |||
73 | +++ bin/addons/msf_profile/i18n/es_MF.po 2017-01-31 14:44:16 +0000 | |||
74 | @@ -11670,7 +11670,7 @@ | |||
75 | 11670 | #. module: consumption_calculation | 11670 | #. module: consumption_calculation |
76 | 11671 | #: field:real.average.consumption,cons_location_id:0 | 11671 | #: field:real.average.consumption,cons_location_id:0 |
77 | 11672 | #: field:real.consumption.change.location,location_id:0 | 11672 | #: field:real.consumption.change.location,location_id:0 |
79 | 11673 | msgid "Consumer location" | 11673 | msgid "Source Location" |
80 | 11674 | msgstr "Ubicación de consumo" | 11674 | msgstr "Ubicación de consumo" |
81 | 11675 | 11675 | ||
82 | 11676 | #. module: msf_doc_import | 11676 | #. module: msf_doc_import |
83 | @@ -62621,12 +62621,16 @@ | |||
84 | 62621 | msgid "No correction journal found!" | 62621 | msgid "No correction journal found!" |
85 | 62622 | msgstr "¡No se ha encontrado un diario de corrección!" | 62622 | msgstr "¡No se ha encontrado un diario de corrección!" |
86 | 62623 | 62623 | ||
88 | 62624 | #. modules: base, consumption_calculation | 62624 | #. module: base |
89 | 62625 | #: view:workflow.activity:0 | 62625 | #: view:workflow.activity:0 |
90 | 62626 | #: field:workflow.workitem,act_id:0 | 62626 | #: field:workflow.workitem,act_id:0 |
91 | 62627 | msgid "Activity" | ||
92 | 62628 | msgstr "Actividad" | ||
93 | 62629 | |||
94 | 62630 | #. module: consumption_calculation | ||
95 | 62627 | #: view:real.average.consumption:0 | 62631 | #: view:real.average.consumption:0 |
96 | 62628 | #: field:real.average.consumption,activity_id:0 | 62632 | #: field:real.average.consumption,activity_id:0 |
98 | 62629 | msgid "Activity" | 62633 | msgid "Destination Location" |
99 | 62630 | msgstr "Actividad" | 62634 | msgstr "Actividad" |
100 | 62631 | 62635 | ||
101 | 62632 | #. module: register_accounting | 62636 | #. module: register_accounting |
102 | 62633 | 62637 | ||
103 | === modified file 'bin/addons/msf_profile/i18n/fr_MF.po' | |||
104 | --- bin/addons/msf_profile/i18n/fr_MF.po 2017-01-23 16:14:11 +0000 | |||
105 | +++ bin/addons/msf_profile/i18n/fr_MF.po 2017-01-31 14:44:16 +0000 | |||
106 | @@ -870,14 +870,18 @@ | |||
107 | 870 | msgid "module base cannot be loaded! (hint: verify addons-path)" | 870 | msgid "module base cannot be loaded! (hint: verify addons-path)" |
108 | 871 | msgstr "le module ne peut être chargé! (astuce: vérifier chemin des addons)" | 871 | msgstr "le module ne peut être chargé! (astuce: vérifier chemin des addons)" |
109 | 872 | 872 | ||
111 | 873 | #. modules: base, consumption_calculation | 873 | #. module: base |
112 | 874 | #: view:workflow.activity:0 | 874 | #: view:workflow.activity:0 |
113 | 875 | #: field:workflow.workitem,act_id:0 | 875 | #: field:workflow.workitem,act_id:0 |
114 | 876 | #: view:real.average.consumption:0 | ||
115 | 877 | #: field:real.average.consumption,activity_id:0 | ||
116 | 878 | msgid "Activity" | 876 | msgid "Activity" |
117 | 879 | msgstr "Activité" | 877 | msgstr "Activité" |
118 | 880 | 878 | ||
119 | 879 | #. module: consumption_calculation | ||
120 | 880 | #: view:real.average.consumption:0 | ||
121 | 881 | #: field:real.average.consumption,activity_id:0 | ||
122 | 882 | msgid "Destination Location" | ||
123 | 883 | msgstr "Destination - Zone" | ||
124 | 884 | |||
125 | 881 | #. module: base | 885 | #. module: base |
126 | 882 | #: model:res.currency,currency_name:base.KES | 886 | #: model:res.currency,currency_name:base.KES |
127 | 883 | msgid "KENYAN SHILLING" | 887 | msgid "KENYAN SHILLING" |
128 | @@ -6129,8 +6133,8 @@ | |||
129 | 6129 | 6133 | ||
130 | 6130 | #. module: sale | 6134 | #. module: sale |
131 | 6131 | #: report:msf.consumption_report:0 | 6135 | #: report:msf.consumption_report:0 |
134 | 6132 | msgid "Activity :" | 6136 | msgid "Destination Location :" |
135 | 6133 | msgstr "Activité :" | 6137 | msgstr "Destination - Zone :" |
136 | 6134 | 6138 | ||
137 | 6135 | #. module: purchase_compare_rfq | 6139 | #. module: purchase_compare_rfq |
138 | 6136 | #: view:wizard.choose.supplier:0 | 6140 | #: view:wizard.choose.supplier:0 |
139 | @@ -14274,7 +14278,7 @@ | |||
140 | 14274 | msgid "Saint Lucia" | 14278 | msgid "Saint Lucia" |
141 | 14275 | msgstr "Sainte-Lucie" | 14279 | msgstr "Sainte-Lucie" |
142 | 14276 | 14280 | ||
144 | 14277 | #. modules: msf_outgoing, stock_move_tracking, stock_override, specific_rules, kit, stock | 14281 | #. modules: msf_outgoing, stock_move_tracking, stock_override, specific_rules, kit, stock, consumption_calculation |
145 | 14278 | #: field:kit.creation.to.consume,location_src_id_to_consume:0 | 14282 | #: field:kit.creation.to.consume,location_src_id_to_consume:0 |
146 | 14279 | #: field:process.to.consume.line,location_src_id_process_to_consume:0 | 14283 | #: field:process.to.consume.line,location_src_id_process_to_consume:0 |
147 | 14280 | #: field:substitute.item,location_id_substitute_item:0 | 14284 | #: field:substitute.item,location_id_substitute_item:0 |
148 | @@ -14297,6 +14301,9 @@ | |||
149 | 14297 | #: code:addons/msf_doc_import/wizard/__init__.py:78 | 14301 | #: code:addons/msf_doc_import/wizard/__init__.py:78 |
150 | 14298 | #: report:delivery.order:0 | 14302 | #: report:delivery.order:0 |
151 | 14299 | #: report:internal.move:0 | 14303 | #: report:internal.move:0 |
152 | 14304 | #: field:real.average.consumption,cons_location_id:0 | ||
153 | 14305 | #: field:real.consumption.change.location,location_id:0 | ||
154 | 14306 | #: view:real.average.consumption:0 | ||
155 | 14300 | msgid "Source Location" | 14307 | msgid "Source Location" |
156 | 14301 | msgstr "Zone Source" | 14308 | msgstr "Zone Source" |
157 | 14302 | 14309 | ||
158 | @@ -16193,12 +16200,6 @@ | |||
159 | 16193 | msgid "Delivery Lead Time" | 16200 | msgid "Delivery Lead Time" |
160 | 16194 | msgstr "Délai de Livraison" | 16201 | msgstr "Délai de Livraison" |
161 | 16195 | 16202 | ||
162 | 16196 | #. module: consumption_calculation | ||
163 | 16197 | #: field:real.average.consumption,cons_location_id:0 | ||
164 | 16198 | #: field:real.consumption.change.location,location_id:0 | ||
165 | 16199 | msgid "Consumer location" | ||
166 | 16200 | msgstr "Zone Consommateur" | ||
167 | 16201 | |||
168 | 16202 | #. module: sale_override | 16203 | #. module: sale_override |
169 | 16203 | #: model:ir.module.module,shortdesc:sale_override.module_meta_information | 16204 | #: model:ir.module.module,shortdesc:sale_override.module_meta_information |
170 | 16204 | msgid "Sale override" | 16205 | msgid "Sale override" |
171 | @@ -69582,11 +69583,16 @@ | |||
172 | 69582 | 69583 | ||
173 | 69583 | #. modules: consumption_calculation, sale | 69584 | #. modules: consumption_calculation, sale |
174 | 69584 | #: report:expiry.report:0 | 69585 | #: report:expiry.report:0 |
175 | 69585 | #: report:msf.consumption_report:0 | ||
176 | 69586 | #: report:msf.product_list:0 | 69586 | #: report:msf.product_list:0 |
177 | 69587 | msgid "Location :" | 69587 | msgid "Location :" |
178 | 69588 | msgstr "Zone:" | 69588 | msgstr "Zone:" |
179 | 69589 | 69589 | ||
180 | 69590 | #. module: consumption_calculation | ||
181 | 69591 | #: report:msf.consumption_report:0 | ||
182 | 69592 | msgid "Location :" | ||
183 | 69593 | msgstr "Zone Source :" | ||
184 | 69594 | |||
185 | 69595 | |||
186 | 69590 | #. module: account | 69596 | #. module: account |
187 | 69591 | #: view:account.period:0 | 69597 | #: view:account.period:0 |
188 | 69592 | msgid "Search Period" | 69598 | msgid "Search Period" |
189 | @@ -76088,3 +76094,8 @@ | |||
190 | 76088 | #, python-format | 76094 | #, python-format |
191 | 76089 | msgid "A line was added to the %s %s to re-source the canceled line." | 76095 | msgid "A line was added to the %s %s to re-source the canceled line." |
192 | 76090 | msgstr "Une ligne a été ajoutée a la %s %s pour 're-sourcer' la ligne annulée." | 76096 | msgstr "Une ligne a été ajoutée a la %s %s pour 're-sourcer' la ligne annulée." |
193 | 76097 | |||
194 | 76098 | #. modules: sale, msf_printed_documents | ||
195 | 76099 | #: report:msf.consumption_report:0 | ||
196 | 76100 | msgid "Source Location :" | ||
197 | 76101 | msgstr "Source Location :" |