Merge lp:~jfb-tempo-consulting/unifield-server/US-5395 into lp:unifield-server
- US-5395
- Merge into trunk
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
UniField Reviewer Team | Pending | ||
Review via email: mp+359903@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/msf_profile/i18n/fr_MF.po' | |||
2 | --- bin/addons/msf_profile/i18n/fr_MF.po 2018-11-26 17:05:18 +0000 | |||
3 | +++ bin/addons/msf_profile/i18n/fr_MF.po 2018-11-30 09:36:42 +0000 | |||
4 | @@ -77477,7 +77477,7 @@ | |||
5 | 77477 | msgid "# of lines imported" | 77477 | msgid "# of lines imported" |
6 | 77478 | msgstr "# de lignes importées" | 77478 | msgstr "# de lignes importées" |
7 | 77479 | 77479 | ||
9 | 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_followup | 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_followup, procurement_request |
10 | 77481 | #: field:account.invoice.line,price_unit:0 | 77481 | #: field:account.invoice.line,price_unit:0 |
11 | 77482 | #: report:account.invoice2:0 | 77482 | #: report:account.invoice2:0 |
12 | 77483 | #: report:allocation.invoices.report:0 | 77483 | #: report:allocation.invoices.report:0 |
13 | @@ -77522,6 +77522,11 @@ | |||
14 | 77522 | #: report:addons/supplier_catalogue/report/report_supplier_catalogue_lines_xls.mako:75 | 77522 | #: report:addons/supplier_catalogue/report/report_supplier_catalogue_lines_xls.mako:75 |
15 | 77523 | #: field:supplier.catalogue.line,unit_price:0 | 77523 | #: field:supplier.catalogue.line,unit_price:0 |
16 | 77524 | #: report:addons/tender_flow/report/tender_rfq_comparison_xls.mako:577 | 77524 | #: report:addons/tender_flow/report/tender_rfq_comparison_xls.mako:577 |
17 | 77525 | #: report:addons/msf_supply_doc_export/report/internal_request_export_xls.mako:133 | ||
18 | 77526 | #: report:addons/procurement_request/report/internal_request_import_overview_export_xls.mako:217 | ||
19 | 77527 | #: code:addons/sale/wizard/internal_request_import.py:46 | ||
20 | 77528 | #: field:internal.request.import.line,imp_cost_price:0 | ||
21 | 77529 | #: field:internal.request.import.line,in_cost_price:0 | ||
22 | 77525 | #, python-format | 77530 | #, python-format |
23 | 77526 | msgid "Unit Price" | 77531 | msgid "Unit Price" |
24 | 77527 | msgstr "Prix Unitaire" | 77532 | msgstr "Prix Unitaire" |
25 | @@ -101500,16 +101505,6 @@ | |||
26 | 101500 | msgid "UoM '%s' is not consistent with the Product '%s'. " | 101505 | msgid "UoM '%s' is not consistent with the Product '%s'. " |
27 | 101501 | msgstr "L'UdM '%s' n'est pas cohérente avec le Produit '%s'. " | 101506 | msgstr "L'UdM '%s' n'est pas cohérente avec le Produit '%s'. " |
28 | 101502 | 101507 | ||
29 | 101503 | #. modules: msf_supply_doc_export, sale, procurement_request | ||
30 | 101504 | #: report:addons/msf_supply_doc_export/report/internal_request_export_xls.mako:133 | ||
31 | 101505 | #: code:addons/sale/wizard/internal_request_import.py:46 | ||
32 | 101506 | #: field:internal.request.import.line,imp_cost_price:0 | ||
33 | 101507 | #: field:internal.request.import.line,in_cost_price:0 | ||
34 | 101508 | #: report:addons/procurement_request/report/internal_request_import_overview_export_xls.mako:217 | ||
35 | 101509 | #, python-format | ||
36 | 101510 | msgid "Cost Price" | ||
37 | 101511 | msgstr "Prix Unitaire" | ||
38 | 101512 | |||
39 | 101513 | #. module: sale | 101508 | #. module: sale |
40 | 101514 | #: code:addons/sale/wizard/internal_request_import.py:294 | 101509 | #: code:addons/sale/wizard/internal_request_import.py:294 |
41 | 101515 | #, python-format | 101510 | #, python-format |
42 | @@ -101776,7 +101771,7 @@ | |||
43 | 101776 | #. module: sale | 101771 | #. module: sale |
44 | 101777 | #: code:addons/sale/wizard/internal_request_import.py:487 | 101772 | #: code:addons/sale/wizard/internal_request_import.py:487 |
45 | 101778 | #, python-format | 101773 | #, python-format |
47 | 101779 | msgid "Cost Price must be a number. " | 101774 | msgid "Unit Price must be a number. " |
48 | 101780 | msgstr "Le Prix Unitaire doit être un nombre. " | 101775 | msgstr "Le Prix Unitaire doit être un nombre. " |
49 | 101781 | 101776 | ||
50 | 101782 | #. module: sale | 101777 | #. module: sale |
51 | 101783 | 101778 | ||
52 | === modified file 'bin/addons/msf_supply_doc_export/report/internal_request_export_xls.mako' | |||
53 | --- bin/addons/msf_supply_doc_export/report/internal_request_export_xls.mako 2018-11-05 14:54:54 +0000 | |||
54 | +++ bin/addons/msf_supply_doc_export/report/internal_request_export_xls.mako 2018-11-30 09:36:42 +0000 | |||
55 | @@ -130,7 +130,7 @@ | |||
56 | 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> |
57 | 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> |
58 | 132 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell> | 132 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell> |
60 | 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> |
61 | 134 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell> | 134 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell> |
62 | 135 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Currency')}</Data></Cell> | 135 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Currency')}</Data></Cell> |
63 | 136 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell> | 136 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell> |
64 | @@ -142,7 +142,7 @@ | |||
65 | 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> |
66 | 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> |
67 | 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> |
69 | 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> |
70 | 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> |
71 | 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> |
72 | 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> |
73 | 149 | 149 | ||
74 | === modified file 'bin/addons/procurement_request/report/internal_request_import_overview_export_xls.mako' | |||
75 | --- bin/addons/procurement_request/report/internal_request_import_overview_export_xls.mako 2018-11-07 16:34:07 +0000 | |||
76 | +++ bin/addons/procurement_request/report/internal_request_import_overview_export_xls.mako 2018-11-30 09:36:42 +0000 | |||
77 | @@ -218,7 +218,7 @@ | |||
78 | 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> |
79 | 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> |
80 | 220 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell> | 220 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell> |
82 | 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> |
83 | 222 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell> | 222 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell> |
84 | 223 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Currency')}</Data></Cell> | 223 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Currency')}</Data></Cell> |
85 | 224 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell> | 224 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell> |
86 | 225 | 225 | ||
87 | === modified file 'bin/addons/sale/wizard/internal_request_import.py' | |||
88 | --- bin/addons/sale/wizard/internal_request_import.py 2018-11-20 15:11:47 +0000 | |||
89 | +++ bin/addons/sale/wizard/internal_request_import.py 2018-11-30 09:36:42 +0000 | |||
90 | @@ -41,7 +41,7 @@ | |||
91 | 41 | (1, _('Product Code'), 'optionnal'), | 41 | (1, _('Product Code'), 'optionnal'), |
92 | 42 | (2, _('Product Description'), 'optionnal'), | 42 | (2, _('Product Description'), 'optionnal'), |
93 | 43 | (3, _('Quantity'), 'mandatory'), | 43 | (3, _('Quantity'), 'mandatory'), |
95 | 44 | (4, _('Cost Price'), 'optionnal'), | 44 | (4, _('Unit Price'), 'optionnal'), |
96 | 45 | (5, _('UoM'), 'mandatory'), | 45 | (5, _('UoM'), 'mandatory'), |
97 | 46 | (6, _('Currency'), 'optionnal'), | 46 | (6, _('Currency'), 'optionnal'), |
98 | 47 | (7, _('Comment'), 'optionnal'), | 47 | (7, _('Comment'), 'optionnal'), |
99 | @@ -660,6 +660,7 @@ | |||
100 | 660 | if cost_price > 0: | 660 | if cost_price > 0: |
101 | 661 | line_data.update({'imp_cost_price': cost_price}) | 661 | line_data.update({'imp_cost_price': cost_price}) |
102 | 662 | else: | 662 | else: |
103 | 663 | line_data.update({'imp_cost_price': product['standard_price']}) | ||
104 | 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. ') \ |
105 | 664 | % (cost_price,) | 665 | % (cost_price,) |
106 | 665 | except: | 666 | except: |
107 | @@ -683,7 +684,7 @@ | |||
108 | 683 | line_errors += _('Price \'%s\' must be above 0. ') % (cost_price,) | 684 | line_errors += _('Price \'%s\' must be above 0. ') % (cost_price,) |
109 | 684 | except: | 685 | except: |
110 | 685 | red = True | 686 | red = True |
112 | 686 | line_errors += _('Cost Price must be a number. ') | 687 | line_errors += _('Unit Price must be a number. ') |
113 | 687 | if uom_ids: | 688 | if uom_ids: |
114 | 688 | line_data.update({'imp_uom_id': uom_ids[0]}) | 689 | line_data.update({'imp_uom_id': uom_ids[0]}) |
115 | 689 | else: | 690 | else: |
116 | @@ -845,6 +846,8 @@ | |||
117 | 845 | 'product_uom_qty': line.imp_qty or 0.00, | 846 | 'product_uom_qty': line.imp_qty or 0.00, |
118 | 846 | 'comment': line.imp_comment or '', | 847 | 'comment': line.imp_comment or '', |
119 | 847 | 'stock_take_date': line.imp_stock_take_date or False, | 848 | 'stock_take_date': line.imp_stock_take_date or False, |
120 | 849 | 'cost_price': line.imp_cost_price or 0.00, | ||
121 | 850 | 'price_unit': line.imp_cost_price or 0.00, | ||
122 | 848 | } | 851 | } |
123 | 849 | if line.imp_uom_id: | 852 | if line.imp_uom_id: |
124 | 850 | line_vals.update({'product_uom': line.imp_uom_id.id}) | 853 | line_vals.update({'product_uom': line.imp_uom_id.id}) |
125 | @@ -853,8 +856,6 @@ | |||
126 | 853 | else: # create IR line | 856 | else: # create IR line |
127 | 854 | line_vals.update({ | 857 | line_vals.update({ |
128 | 855 | 'order_id': wiz.order_id.id, | 858 | 'order_id': wiz.order_id.id, |
129 | 856 | 'cost_price': line.imp_cost_price or 0.00, | ||
130 | 857 | 'price_unit': line.imp_cost_price or 0.00, | ||
131 | 858 | }) | 859 | }) |
132 | 859 | sol_obj.create(cr, uid, line_vals, context=context) | 860 | sol_obj.create(cr, uid, line_vals, context=context) |
133 | 860 | else: # Create IR | 861 | else: # Create IR |
134 | @@ -945,7 +946,7 @@ | |||
135 | 945 | 'in_product': fields.char(string='Product', size=64, readonly=True), | 946 | 'in_product': fields.char(string='Product', size=64, readonly=True), |
136 | 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), |
137 | 947 | 'in_qty': fields.char(string='Quantity', size=64, readonly=True), | 948 | 'in_qty': fields.char(string='Quantity', size=64, readonly=True), |
139 | 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), |
140 | 949 | 'in_uom': fields.char(string='UoM', size=64, readonly=True), | 950 | 'in_uom': fields.char(string='UoM', size=64, readonly=True), |
141 | 950 | 'in_comment': fields.char(string='Comment', size=256, readonly=True), | 951 | 'in_comment': fields.char(string='Comment', size=256, readonly=True), |
142 | 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), |
143 | @@ -953,7 +954,7 @@ | |||
144 | 953 | 'imp_line_number': fields.integer(string='Line Number'), | 954 | 'imp_line_number': fields.integer(string='Line Number'), |
145 | 954 | 'imp_product_id': fields.many2one('product.product', string='Product', readonly=True), | 955 | 'imp_product_id': fields.many2one('product.product', string='Product', readonly=True), |
146 | 955 | 'imp_qty': fields.float(digits=(16, 2), string='Quantity', readonly=True), | 956 | 'imp_qty': fields.float(digits=(16, 2), string='Quantity', readonly=True), |
148 | 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), |
149 | 957 | 'imp_uom_id': fields.many2one('product.uom', string='UoM', readonly=True), | 958 | 'imp_uom_id': fields.many2one('product.uom', string='UoM', readonly=True), |
150 | 958 | 'imp_comment': fields.char(size=256, string='Comment', readonly=True), | 959 | 'imp_comment': fields.char(size=256, string='Comment', readonly=True), |
151 | 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), |