Merge lp:~dorian-kemps/unifield-server/US-6382 into lp:unifield-server
- US-6382
- Merge into trunk
Proposed by
jftempo
Status: | Merged |
---|---|
Merged at revision: | 5614 |
Proposed branch: | lp:~dorian-kemps/unifield-server/US-6382 |
Merge into: | lp:unifield-server |
Diff against target: |
148 lines (+30/-8) 4 files modified
bin/addons/kit/kit.py (+3/-1) bin/addons/kit/kit_view.xml (+2/-1) bin/addons/kit/report/kit_report.rml (+16/-4) bin/addons/msf_profile/i18n/fr_MF.po (+9/-2) |
To merge this branch: | bzr merge lp:~dorian-kemps/unifield-server/US-6382 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
UniField Reviewer Team | Pending | ||
Review via email: mp+378108@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/kit/kit.py' | |||
2 | --- bin/addons/kit/kit.py 2019-10-28 16:42:13 +0000 | |||
3 | +++ bin/addons/kit/kit.py 2020-01-27 10:41:41 +0000 | |||
4 | @@ -231,6 +231,7 @@ | |||
5 | 231 | 'item_exp': item_v.item_exp, # is set to False | 231 | 'item_exp': item_v.item_exp, # is set to False |
6 | 232 | 'item_kit_id': obj.id, | 232 | 'item_kit_id': obj.id, |
7 | 233 | 'item_description': item_v.item_description, | 233 | 'item_description': item_v.item_description, |
8 | 234 | 'comment': item_v.comment, | ||
9 | 234 | } | 235 | } |
10 | 235 | item_obj.create(cr, uid, values, context=context) | 236 | item_obj.create(cr, uid, values, context=context) |
11 | 236 | # we display the composition list view form | 237 | # we display the composition list view form |
12 | @@ -1139,7 +1140,8 @@ | |||
13 | 1139 | 'hidden_batch_management_mandatory': fields.function(_vals_get, method=True, type='boolean', string='B.Num', multi='get_vals', store=False, readonly=True), | 1140 | 'hidden_batch_management_mandatory': fields.function(_vals_get, method=True, type='boolean', string='B.Num', multi='get_vals', store=False, readonly=True), |
14 | 1140 | 'hidden_asset_mandatory': fields.function(_vals_get, method=True, type='boolean', string='Asset', multi='get_vals', store=False, readonly=True), | 1141 | 'hidden_asset_mandatory': fields.function(_vals_get, method=True, type='boolean', string='Asset', multi='get_vals', store=False, readonly=True), |
15 | 1141 | 'inactive_product': fields.function(_get_inactive_product, method=True, type='boolean', string='Product is inactive', store=False, multi='inactive'), | 1142 | 'inactive_product': fields.function(_get_inactive_product, method=True, type='boolean', string='Product is inactive', store=False, multi='inactive'), |
17 | 1142 | 'inactive_error': fields.function(_get_inactive_product, method=True, type='char', string='Comment', store=False, multi='inactive'), | 1143 | 'inactive_error': fields.function(_get_inactive_product, method=True, type='char', string='System message', store=False, multi='inactive'), |
18 | 1144 | 'comment': fields.char(size=256, string='Comment'), | ||
19 | 1143 | } | 1145 | } |
20 | 1144 | 1146 | ||
21 | 1145 | _defaults = {'hidden_batch_management_mandatory': False, | 1147 | _defaults = {'hidden_batch_management_mandatory': False, |
22 | 1146 | 1148 | ||
23 | === modified file 'bin/addons/kit/kit_view.xml' | |||
24 | --- bin/addons/kit/kit_view.xml 2019-10-29 10:38:54 +0000 | |||
25 | +++ bin/addons/kit/kit_view.xml 2020-01-27 10:41:41 +0000 | |||
26 | @@ -59,7 +59,8 @@ | |||
27 | 59 | <field name="item_uom_id" on_change="onchange_uom_qty(item_uom_id, item_qty)" domain="[('uom_by_product', '=', item_product_id)]" /> | 59 | <field name="item_uom_id" on_change="onchange_uom_qty(item_uom_id, item_qty)" domain="[('uom_by_product', '=', item_product_id)]" /> |
28 | 60 | <field name="item_asset_id" context="{'product_id': item_product_id}" domain="[('product_id', '=', item_product_id)]" | 60 | <field name="item_asset_id" context="{'product_id': item_product_id}" domain="[('product_id', '=', item_product_id)]" |
29 | 61 | attrs="{'readonly': [('hidden_asset_mandatory', '=', False)]}" /> | 61 | attrs="{'readonly': [('hidden_asset_mandatory', '=', False)]}" /> |
31 | 62 | <field name="item_lot" | 62 | <field name="comment" /> |
32 | 63 | <field name="item_lot" | ||
33 | 63 | on_change="on_lot_change(item_product_id, item_lot, context)" | 64 | on_change="on_lot_change(item_product_id, item_lot, context)" |
34 | 64 | attrs="{'readonly': [('hidden_batch_management_mandatory', '=', False)]}" /> | 65 | attrs="{'readonly': [('hidden_batch_management_mandatory', '=', False)]}" /> |
35 | 65 | <field name="item_exp" attrs="{'readonly': [('hidden_perishable_mandatory', '=', False)]}" /> | 66 | <field name="item_exp" attrs="{'readonly': [('hidden_perishable_mandatory', '=', False)]}" /> |
36 | 66 | 67 | ||
37 | === modified file 'bin/addons/kit/report/kit_report.rml' | |||
38 | --- bin/addons/kit/report/kit_report.rml 2018-12-06 10:27:14 +0000 | |||
39 | +++ bin/addons/kit/report/kit_report.rml 2020-01-27 10:41:41 +0000 | |||
40 | @@ -125,7 +125,7 @@ | |||
41 | 125 | <section> | 125 | <section> |
42 | 126 | 126 | ||
43 | 127 | <!-- Composition items for Kit Composition List --> | 127 | <!-- Composition items for Kit Composition List --> |
45 | 128 | <blockTable colWidths="90.0,130.0,40.0,60.0,80.0,80.0,60.0,40.0,40.0,170.0" style="LineHeader" repeatRows="1"> | 128 | <blockTable colWidths="90.0,130.0,95.0,40.0,30.0,65.0,60.0,60.0,40.0,40.0,140.0" style="LineHeader" repeatRows="1"> |
46 | 129 | [[ o.composition_type == 'real' or removeParentNode('blockTable') ]] | 129 | [[ o.composition_type == 'real' or removeParentNode('blockTable') ]] |
47 | 130 | <tr> | 130 | <tr> |
48 | 131 | <td> | 131 | <td> |
49 | @@ -135,6 +135,9 @@ | |||
50 | 135 | <para style="LHeader">Product</para> | 135 | <para style="LHeader">Product</para> |
51 | 136 | </td> | 136 | </td> |
52 | 137 | <td> | 137 | <td> |
53 | 138 | <para style="LHeader">Comment</para> | ||
54 | 139 | </td> | ||
55 | 140 | <td> | ||
56 | 138 | <para style="LHeader">Qty</para> | 141 | <para style="LHeader">Qty</para> |
57 | 139 | </td> | 142 | </td> |
58 | 140 | <td> | 143 | <td> |
59 | @@ -156,7 +159,7 @@ | |||
60 | 156 | <para style="LHeader">Exp</para> | 159 | <para style="LHeader">Exp</para> |
61 | 157 | </td> | 160 | </td> |
62 | 158 | <td> | 161 | <td> |
64 | 159 | <para style="LHeader">Comment</para> | 162 | <para style="LHeader">System Message</para> |
65 | 160 | </td> | 163 | </td> |
66 | 161 | </tr> | 164 | </tr> |
67 | 162 | <tr> | 165 | <tr> |
68 | @@ -168,6 +171,9 @@ | |||
69 | 168 | <para style="Line">[[ item.item_product_id and get_name('product.product', item.item_product_id.id) or '' ]]</para> | 171 | <para style="Line">[[ item.item_product_id and get_name('product.product', item.item_product_id.id) or '' ]]</para> |
70 | 169 | </td> | 172 | </td> |
71 | 170 | <td> | 173 | <td> |
72 | 174 | <para style="Line">[[ item.comment ]]</para> | ||
73 | 175 | </td> | ||
74 | 176 | <td> | ||
75 | 171 | <para style="Line">[[ formatLang(item.item_qty) ]]</para> | 177 | <para style="Line">[[ formatLang(item.item_qty) ]]</para> |
76 | 172 | </td> | 178 | </td> |
77 | 173 | <td> | 179 | <td> |
78 | @@ -195,7 +201,7 @@ | |||
79 | 195 | </blockTable> | 201 | </blockTable> |
80 | 196 | 202 | ||
81 | 197 | <!-- Composition items for Theoretical Kit Composition --> | 203 | <!-- Composition items for Theoretical Kit Composition --> |
83 | 198 | <blockTable colWidths="110.0,200.0,55.0,75.0,50.0,50.0,250.0" style="LineHeader" repeatRows="1"> | 204 | <blockTable colWidths="90.0,170.0,165.0,55.0,30.0,40.0,40.0,200.0" style="LineHeader" repeatRows="1"> |
84 | 199 | [[ o.composition_type == 'theoretical' or removeParentNode('blockTable') ]] | 205 | [[ o.composition_type == 'theoretical' or removeParentNode('blockTable') ]] |
85 | 200 | <tr> | 206 | <tr> |
86 | 201 | <td> | 207 | <td> |
87 | @@ -205,6 +211,9 @@ | |||
88 | 205 | <para style="LHeader">Product</para> | 211 | <para style="LHeader">Product</para> |
89 | 206 | </td> | 212 | </td> |
90 | 207 | <td> | 213 | <td> |
91 | 214 | <para style="LHeader">Comment</para> | ||
92 | 215 | </td> | ||
93 | 216 | <td> | ||
94 | 208 | <para style="LHeader">Qty</para> | 217 | <para style="LHeader">Qty</para> |
95 | 209 | </td> | 218 | </td> |
96 | 210 | <td> | 219 | <td> |
97 | @@ -217,7 +226,7 @@ | |||
98 | 217 | <para style="LHeader">Exp</para> | 226 | <para style="LHeader">Exp</para> |
99 | 218 | </td> | 227 | </td> |
100 | 219 | <td> | 228 | <td> |
102 | 220 | <para style="LHeader">Comment</para> | 229 | <para style="LHeader">System Message</para> |
103 | 221 | </td> | 230 | </td> |
104 | 222 | </tr> | 231 | </tr> |
105 | 223 | <tr> | 232 | <tr> |
106 | @@ -229,6 +238,9 @@ | |||
107 | 229 | <para style="Line">[[ item.item_product_id and get_name('product.product', item.item_product_id.id) or '' ]]</para> | 238 | <para style="Line">[[ item.item_product_id and get_name('product.product', item.item_product_id.id) or '' ]]</para> |
108 | 230 | </td> | 239 | </td> |
109 | 231 | <td> | 240 | <td> |
110 | 241 | <para style="Line">[[ item.comment ]]</para> | ||
111 | 242 | </td> | ||
112 | 243 | <td> | ||
113 | 232 | <para style="Line">[[ formatLang(item.item_qty) ]]</para> | 244 | <para style="Line">[[ formatLang(item.item_qty) ]]</para> |
114 | 233 | </td> | 245 | </td> |
115 | 234 | <td> | 246 | <td> |
116 | 235 | 247 | ||
117 | === modified file 'bin/addons/msf_profile/i18n/fr_MF.po' | |||
118 | --- bin/addons/msf_profile/i18n/fr_MF.po 2019-11-21 16:33:04 +0000 | |||
119 | +++ bin/addons/msf_profile/i18n/fr_MF.po 2020-01-27 10:41:41 +0000 | |||
120 | @@ -24510,7 +24510,7 @@ | |||
121 | 24510 | #: field:account.commitment,notes:0 | 24510 | #: field:account.commitment,notes:0 |
122 | 24511 | #: field:account.invoice.line,inactive_error:0 | 24511 | #: field:account.invoice.line,inactive_error:0 |
123 | 24512 | #: field:res.groups,comment:0 | 24512 | #: field:res.groups,comment:0 |
125 | 24513 | #: field:composition.item,inactive_error:0 | 24513 | #: field:composition.item,comment:0 |
126 | 24514 | #: report:kit.report:0 | 24514 | #: report:kit.report:0 |
127 | 24515 | #: field:msf_button_access_rights.button_access_rule,comment:0 | 24515 | #: field:msf_button_access_rights.button_access_rule,comment:0 |
128 | 24516 | #: report:addons/msf_doc_import/report/po_simulation_screen_xls_report.mako:232 | 24516 | #: report:addons/msf_doc_import/report/po_simulation_screen_xls_report.mako:232 |
129 | @@ -27764,11 +27764,18 @@ | |||
130 | 27764 | msgid "Your system will be updated." | 27764 | msgid "Your system will be updated." |
131 | 27765 | msgstr "Votre système sera mis à jour." | 27765 | msgstr "Votre système sera mis à jour." |
132 | 27766 | 27766 | ||
134 | 27767 | #. module: consumption_calculation | 27767 | #. module: consumption_calculation, kit |
135 | 27768 | #: field:real.average.consumption.line,inactive_error:0 | 27768 | #: field:real.average.consumption.line,inactive_error:0 |
136 | 27769 | #: field:composition.item,inactive_error:0 | ||
137 | 27770 | #: report:kit.report:0 | ||
138 | 27769 | msgid "System message" | 27771 | msgid "System message" |
139 | 27770 | msgstr "Message système" | 27772 | msgstr "Message système" |
140 | 27771 | 27773 | ||
141 | 27774 | #. module: kit | ||
142 | 27775 | #: report:kit.report:0 | ||
143 | 27776 | msgid "System Message" | ||
144 | 27777 | msgstr "Message Système" | ||
145 | 27778 | |||
146 | 27772 | #. module: base | 27779 | #. module: base |
147 | 27773 | #: selection:res.config.users,context_tz:0 | 27780 | #: selection:res.config.users,context_tz:0 |
148 | 27774 | #: selection:res.users,context_tz:0 | 27781 | #: selection:res.users,context_tz:0 |