Merge lp:~jfb-tempo-consulting/unifield-server/US-5395 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 5190
Proposed branch: lp:~jfb-tempo-consulting/unifield-server/US-5395
Merge into: lp:unifield-server
Diff against target: 151 lines (+17/-21)
4 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+7/-12)
bin/addons/msf_supply_doc_export/report/internal_request_export_xls.mako (+2/-2)
bin/addons/procurement_request/report/internal_request_import_overview_export_xls.mako (+1/-1)
bin/addons/sale/wizard/internal_request_import.py (+7/-6)
To merge this branch: bzr merge lp:~jfb-tempo-consulting/unifield-server/US-5395
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+359903@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
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2018-11-26 17:05:18 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2018-11-30 09:36:42 +0000
@@ -77477,7 +77477,7 @@
77477msgid "# of lines imported"77477msgid "# of lines imported"
77478msgstr "# de lignes importées"77478msgstr "# de lignes importées"
7747977479
77480#. modules: purchase, account, msf_outgoing, finance, purchase_override, sales_followup, supplier_catalogue, sale, product, kit, account_override, purchase_allocation_report, order_types, tender_flow, msf_supply_doc_export, msf_doc_import, register_accounting, stock, purchase_followup77480#. modules: purchase, account, msf_outgoing, finance, purchase_override, sales_followup, supplier_catalogue, sale, product, kit, account_override, purchase_allocation_report, order_types, tender_flow, msf_supply_doc_export, msf_doc_import, register_accounting, stock, purchase_followup, procurement_request
77481#: field:account.invoice.line,price_unit:077481#: field:account.invoice.line,price_unit:0
77482#: report:account.invoice2:077482#: report:account.invoice2:0
77483#: report:allocation.invoices.report:077483#: report:allocation.invoices.report:0
@@ -77522,6 +77522,11 @@
77522#: report:addons/supplier_catalogue/report/report_supplier_catalogue_lines_xls.mako:7577522#: report:addons/supplier_catalogue/report/report_supplier_catalogue_lines_xls.mako:75
77523#: field:supplier.catalogue.line,unit_price:077523#: field:supplier.catalogue.line,unit_price:0
77524#: report:addons/tender_flow/report/tender_rfq_comparison_xls.mako:57777524#: report:addons/tender_flow/report/tender_rfq_comparison_xls.mako:577
77525#: report:addons/msf_supply_doc_export/report/internal_request_export_xls.mako:133
77526#: report:addons/procurement_request/report/internal_request_import_overview_export_xls.mako:217
77527#: code:addons/sale/wizard/internal_request_import.py:46
77528#: field:internal.request.import.line,imp_cost_price:0
77529#: field:internal.request.import.line,in_cost_price:0
77525#, python-format77530#, python-format
77526msgid "Unit Price"77531msgid "Unit Price"
77527msgstr "Prix Unitaire"77532msgstr "Prix Unitaire"
@@ -101500,16 +101505,6 @@
101500msgid "UoM '%s' is not consistent with the Product '%s'. "101505msgid "UoM '%s' is not consistent with the Product '%s'. "
101501msgstr "L'UdM '%s' n'est pas cohérente avec le Produit '%s'. "101506msgstr "L'UdM '%s' n'est pas cohérente avec le Produit '%s'. "
101502101507
101503#. modules: msf_supply_doc_export, sale, procurement_request
101504#: report:addons/msf_supply_doc_export/report/internal_request_export_xls.mako:133
101505#: code:addons/sale/wizard/internal_request_import.py:46
101506#: field:internal.request.import.line,imp_cost_price:0
101507#: field:internal.request.import.line,in_cost_price:0
101508#: report:addons/procurement_request/report/internal_request_import_overview_export_xls.mako:217
101509#, python-format
101510msgid "Cost Price"
101511msgstr "Prix Unitaire"
101512
101513#. module: sale101508#. module: sale
101514#: code:addons/sale/wizard/internal_request_import.py:294101509#: code:addons/sale/wizard/internal_request_import.py:294
101515#, python-format101510#, python-format
@@ -101776,7 +101771,7 @@
101776#. module: sale101771#. module: sale
101777#: code:addons/sale/wizard/internal_request_import.py:487101772#: code:addons/sale/wizard/internal_request_import.py:487
101778#, python-format101773#, python-format
101779msgid "Cost Price must be a number. "101774msgid "Unit Price must be a number. "
101780msgstr "Le Prix Unitaire doit être un nombre. "101775msgstr "Le Prix Unitaire doit être un nombre. "
101781101776
101782#. module: sale101777#. module: sale
101783101778
=== modified file 'bin/addons/msf_supply_doc_export/report/internal_request_export_xls.mako'
--- bin/addons/msf_supply_doc_export/report/internal_request_export_xls.mako 2018-11-05 14:54:54 +0000
+++ bin/addons/msf_supply_doc_export/report/internal_request_export_xls.mako 2018-11-30 09:36:42 +0000
@@ -130,7 +130,7 @@
130 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Code')}</Data></Cell>130 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Code')}</Data></Cell>
131 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Description')}</Data></Cell>131 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Description')}</Data></Cell>
132 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell>132 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell>
133 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Cost Price')}</Data></Cell>133 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Unit Price')}</Data></Cell>
134 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell>134 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell>
135 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Currency')}</Data></Cell>135 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Currency')}</Data></Cell>
136 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell>136 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell>
@@ -142,7 +142,7 @@
142 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.product_id.default_code or '' | x}</Data></Cell>142 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.product_id.default_code or '' | x}</Data></Cell>
143 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.product_id.name or '' | x}</Data></Cell>143 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.product_id.name or '' | x}</Data></Cell>
144 <Cell ss:StyleID="line" ><Data ss:Type="Number">${line.product_uom_qty or '' | x}</Data></Cell>144 <Cell ss:StyleID="line" ><Data ss:Type="Number">${line.product_uom_qty or '' | x}</Data></Cell>
145 <Cell ss:StyleID="line" ><Data ss:Type="Number">${line.cost_price or (line.product_id and line.product_id.standard_price) or '' | x}</Data></Cell>145 <Cell ss:StyleID="line" ><Data ss:Type="Number">${line.price_unit or (line.product_id and line.product_id.standard_price) or '' | x}</Data></Cell>
146 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.product_uom.name or ''| x}</Data></Cell>146 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.product_uom.name or ''| x}</Data></Cell>
147 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.functional_currency_id.name or ''| x}</Data></Cell>147 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.functional_currency_id.name or ''| x}</Data></Cell>
148 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.comment or ''| x}</Data></Cell>148 <Cell ss:StyleID="line" ><Data ss:Type="String">${line.comment or ''| x}</Data></Cell>
149149
=== modified file 'bin/addons/procurement_request/report/internal_request_import_overview_export_xls.mako'
--- bin/addons/procurement_request/report/internal_request_import_overview_export_xls.mako 2018-11-07 16:34:07 +0000
+++ bin/addons/procurement_request/report/internal_request_import_overview_export_xls.mako 2018-11-30 09:36:42 +0000
@@ -218,7 +218,7 @@
218 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Code')}</Data></Cell>218 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Code')}</Data></Cell>
219 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Description')}</Data></Cell>219 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Description')}</Data></Cell>
220 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell>220 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell>
221 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Cost Price')}</Data></Cell>221 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Unit Price')}</Data></Cell>
222 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell>222 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell>
223 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Currency')}</Data></Cell>223 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Currency')}</Data></Cell>
224 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell>224 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell>
225225
=== modified file 'bin/addons/sale/wizard/internal_request_import.py'
--- bin/addons/sale/wizard/internal_request_import.py 2018-11-20 15:11:47 +0000
+++ bin/addons/sale/wizard/internal_request_import.py 2018-11-30 09:36:42 +0000
@@ -41,7 +41,7 @@
41 (1, _('Product Code'), 'optionnal'),41 (1, _('Product Code'), 'optionnal'),
42 (2, _('Product Description'), 'optionnal'),42 (2, _('Product Description'), 'optionnal'),
43 (3, _('Quantity'), 'mandatory'),43 (3, _('Quantity'), 'mandatory'),
44 (4, _('Cost Price'), 'optionnal'),44 (4, _('Unit Price'), 'optionnal'),
45 (5, _('UoM'), 'mandatory'),45 (5, _('UoM'), 'mandatory'),
46 (6, _('Currency'), 'optionnal'),46 (6, _('Currency'), 'optionnal'),
47 (7, _('Comment'), 'optionnal'),47 (7, _('Comment'), 'optionnal'),
@@ -660,6 +660,7 @@
660 if cost_price > 0:660 if cost_price > 0:
661 line_data.update({'imp_cost_price': cost_price})661 line_data.update({'imp_cost_price': cost_price})
662 else:662 else:
663 line_data.update({'imp_cost_price': product['standard_price']})
663 line_errors += _('Price \'%s\' must be above 0, default cost price has been used. ') \664 line_errors += _('Price \'%s\' must be above 0, default cost price has been used. ') \
664 % (cost_price,)665 % (cost_price,)
665 except:666 except:
@@ -683,7 +684,7 @@
683 line_errors += _('Price \'%s\' must be above 0. ') % (cost_price,)684 line_errors += _('Price \'%s\' must be above 0. ') % (cost_price,)
684 except:685 except:
685 red = True686 red = True
686 line_errors += _('Cost Price must be a number. ')687 line_errors += _('Unit Price must be a number. ')
687 if uom_ids:688 if uom_ids:
688 line_data.update({'imp_uom_id': uom_ids[0]})689 line_data.update({'imp_uom_id': uom_ids[0]})
689 else:690 else:
@@ -845,6 +846,8 @@
845 'product_uom_qty': line.imp_qty or 0.00,846 'product_uom_qty': line.imp_qty or 0.00,
846 'comment': line.imp_comment or '',847 'comment': line.imp_comment or '',
847 'stock_take_date': line.imp_stock_take_date or False,848 'stock_take_date': line.imp_stock_take_date or False,
849 'cost_price': line.imp_cost_price or 0.00,
850 'price_unit': line.imp_cost_price or 0.00,
848 }851 }
849 if line.imp_uom_id:852 if line.imp_uom_id:
850 line_vals.update({'product_uom': line.imp_uom_id.id})853 line_vals.update({'product_uom': line.imp_uom_id.id})
@@ -853,8 +856,6 @@
853 else: # create IR line856 else: # create IR line
854 line_vals.update({857 line_vals.update({
855 'order_id': wiz.order_id.id,858 'order_id': wiz.order_id.id,
856 'cost_price': line.imp_cost_price or 0.00,
857 'price_unit': line.imp_cost_price or 0.00,
858 })859 })
859 sol_obj.create(cr, uid, line_vals, context=context)860 sol_obj.create(cr, uid, line_vals, context=context)
860 else: # Create IR861 else: # Create IR
@@ -945,7 +946,7 @@
945 'in_product': fields.char(string='Product', size=64, readonly=True),946 'in_product': fields.char(string='Product', size=64, readonly=True),
946 'in_product_desc': fields.char(string='Product Description', size=128, readonly=True),947 'in_product_desc': fields.char(string='Product Description', size=128, readonly=True),
947 'in_qty': fields.char(string='Quantity', size=64, readonly=True),948 'in_qty': fields.char(string='Quantity', size=64, readonly=True),
948 'in_cost_price': fields.char(string='Cost Price', size=64, readonly=True),949 'in_cost_price': fields.char(string='Unit Price', size=64, readonly=True),
949 'in_uom': fields.char(string='UoM', size=64, readonly=True),950 'in_uom': fields.char(string='UoM', size=64, readonly=True),
950 'in_comment': fields.char(string='Comment', size=256, readonly=True),951 'in_comment': fields.char(string='Comment', size=256, readonly=True),
951 'in_stock_take_date': fields.char(string='Date of Stock Take', size=64, readonly=True),952 'in_stock_take_date': fields.char(string='Date of Stock Take', size=64, readonly=True),
@@ -953,7 +954,7 @@
953 'imp_line_number': fields.integer(string='Line Number'),954 'imp_line_number': fields.integer(string='Line Number'),
954 'imp_product_id': fields.many2one('product.product', string='Product', readonly=True),955 'imp_product_id': fields.many2one('product.product', string='Product', readonly=True),
955 'imp_qty': fields.float(digits=(16, 2), string='Quantity', readonly=True),956 'imp_qty': fields.float(digits=(16, 2), string='Quantity', readonly=True),
956 'imp_cost_price': fields.float(digits=(16, 2), string='Cost Price', readonly=True),957 'imp_cost_price': fields.float(digits=(16, 2), string='Unit Price', readonly=True),
957 'imp_uom_id': fields.many2one('product.uom', string='UoM', readonly=True),958 'imp_uom_id': fields.many2one('product.uom', string='UoM', readonly=True),
958 'imp_comment': fields.char(size=256, string='Comment', readonly=True),959 'imp_comment': fields.char(size=256, string='Comment', readonly=True),
959 'imp_stock_take_date': fields.date(string='Date of Stock Take', readonly=True),960 'imp_stock_take_date': fields.date(string='Date of Stock Take', readonly=True),

Subscribers

People subscribed via source and target branches