diff --git a/addons/account/views/report_agedpartnerbalance.xml b/addons/account/views/report_agedpartnerbalance.xml index 560c711be9b..8681931febb 100644 --- a/addons/account/views/report_agedpartnerbalance.xml +++ b/addons/account/views/report_agedpartnerbalance.xml @@ -50,13 +50,13 @@ Account Total - - - - - - - + + + + + + + @@ -65,25 +65,25 @@ - + - + - + - + - + - + - + diff --git a/addons/account/views/report_financial.xml b/addons/account/views/report_financial.xml index 692e0bc2676..8b968fda675 100644 --- a/addons/account/views/report_financial.xml +++ b/addons/account/views/report_financial.xml @@ -43,13 +43,13 @@ - + - + - + @@ -73,7 +73,7 @@ - + @@ -96,7 +96,7 @@ - + diff --git a/addons/account/views/report_generalledger.xml b/addons/account/views/report_generalledger.xml index 7ef9fef28dc..e06e8ddda59 100644 --- a/addons/account/views/report_generalledger.xml +++ b/addons/account/views/report_generalledger.xml @@ -66,13 +66,13 @@ - + - + - + @@ -84,13 +84,13 @@ - + - + - + diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index 9c7365738cb..30ed8c32853 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -8,7 +8,7 @@
+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> TIN:
@@ -85,7 +85,7 @@ + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> @@ -97,7 +97,7 @@ Subtotal - + @@ -111,7 +111,7 @@ Total - + diff --git a/addons/account/views/report_journal.xml b/addons/account/views/report_journal.xml index 396c43b8474..f94e20fa3b0 100644 --- a/addons/account/views/report_journal.xml +++ b/addons/account/views/report_journal.xml @@ -51,10 +51,10 @@ - - + + - + @@ -65,8 +65,8 @@ - - + +
Total
@@ -87,8 +87,8 @@ - - + + diff --git a/addons/account/views/report_overdue.xml b/addons/account/views/report_overdue.xml index 79e0e3cf025..3b7d3808100 100644 --- a/addons/account/views/report_overdue.xml +++ b/addons/account/views/report_overdue.xml @@ -44,10 +44,10 @@ - + - + x @@ -56,16 +56,16 @@ Subtotal : - - - + + + Balance : - + diff --git a/addons/account/views/report_partnerledger.xml b/addons/account/views/report_partnerledger.xml index 94ac9b0d4b6..0259e5167e8 100644 --- a/addons/account/views/report_partnerledger.xml +++ b/addons/account/views/report_partnerledger.xml @@ -46,13 +46,13 @@ - - + - + - + @@ -69,16 +69,16 @@ - + - + - + - + diff --git a/addons/account/views/report_trialbalance.xml b/addons/account/views/report_trialbalance.xml index 7ada5bc393b..750c9f93698 100644 --- a/addons/account/views/report_trialbalance.xml +++ b/addons/account/views/report_trialbalance.xml @@ -50,13 +50,13 @@ - + - + - + diff --git a/addons/account/views/web_planner_data.xml b/addons/account/views/web_planner_data.xml index 8a7fec1d501..7f0af5daa35 100644 --- a/addons/account/views/web_planner_data.xml +++ b/addons/account/views/web_planner_data.xml @@ -59,7 +59,7 @@ Address + t-options='{"widget": "contact", "fields": ["address"], "no_marker": True}'/> diff --git a/addons/decimal_precision/tests/test_qweb_float.py b/addons/decimal_precision/tests/test_qweb_float.py index c481dba2fd9..7011b0f9e75 100644 --- a/addons/decimal_precision/tests/test_qweb_float.py +++ b/addons/decimal_precision/tests/test_qweb_float.py @@ -7,11 +7,14 @@ class TestFloatExport(common.TransactionCase): self.Model = self.registry('decimal.precision.test') def get_converter(self, name): - converter = self.registry('ir.qweb.field.float') - field = self.Model._fields[name] + float_obj = self.registry('ir.qweb.field.float') + _, precision = self.Model._fields[name].digits or (None, None) - return lambda value, options=None: converter.value_to_html( - self.cr, self.uid, value, field, options=options, context=None) + def converter(value, options=None): + record = self.Model.new(self.cr, self.uid, {name: value}, context=None) + return float_obj.record_to_html( + self.cr, self.uid, record, name, options or {}, context=None) + return converter def test_basic_float(self): converter = self.get_converter('float') @@ -30,13 +33,13 @@ class TestFloatExport(common.TransactionCase): converter(42.12345), "42.12") - converter = self.get_converter('float_4') + converter = self.get_converter('float') # don't use float_4 because the field value 42.12345 is already orm converted to 42.1235 self.assertEqual( - converter(42.0), + converter(42.0, {'precision': 4}), '42.0000') self.assertEqual( - converter(42.12345), - '42.1234') + converter(42.12345, {'precision': 4}), + '42.1235') def test_precision_domain(self): DP = self.registry('decimal.precision') @@ -57,7 +60,7 @@ class TestFloatExport(common.TransactionCase): converter(42.0, {'decimal_precision': 'B'}), '42.000000') - converter = self.get_converter('float_4') + converter = self.get_converter('float') # don't use float_4 because the field value 42.12345 is orm converted to 42.1235 self.assertEqual( converter(42.12345, {'decimal_precision': 'A'}), '42.12') diff --git a/addons/event/report/event_event_templates.xml b/addons/event/report/event_event_templates.xml index efb46e5ce6f..3720744ce48 100644 --- a/addons/event/report/event_event_templates.xml +++ b/addons/event/report/event_event_templates.xml @@ -18,7 +18,7 @@
-
( to )
+
( to )
@@ -69,7 +69,7 @@

-

( to )
+
( to )
diff --git a/addons/hr_expense/report/report_expense_sheet.xml b/addons/hr_expense/report/report_expense_sheet.xml index c00f70c23fc..da7e81ad537 100644 --- a/addons/hr_expense/report/report_expense_sheet.xml +++ b/addons/hr_expense/report/report_expense_sheet.xml @@ -64,7 +64,7 @@ + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> @@ -77,7 +77,7 @@ Total + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> diff --git a/addons/hr_expense/views/report_expense.xml b/addons/hr_expense/views/report_expense.xml index 90c92c05792..f64e5b23714 100644 --- a/addons/hr_expense/views/report_expense.xml +++ b/addons/hr_expense/views/report_expense.xml @@ -55,7 +55,7 @@ + t-options='{"widget": "monetary", "display_currency": line.currency_id}'/> @@ -75,7 +75,7 @@ + t-options='{"widget": "monetary", "display_currency": line.currency_id}'/> diff --git a/addons/hr_payroll/views/report_payslip.xml b/addons/hr_payroll/views/report_payslip.xml index 43b329f4107..b0809a6716f 100644 --- a/addons/hr_payroll/views/report_payslip.xml +++ b/addons/hr_payroll/views/report_payslip.xml @@ -20,7 +20,7 @@ Address
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> diff --git a/addons/hr_payroll/views/report_payslipdetails.xml b/addons/hr_payroll/views/report_payslipdetails.xml index e72e2bfa620..356b43df714 100644 --- a/addons/hr_payroll/views/report_payslipdetails.xml +++ b/addons/hr_payroll/views/report_payslipdetails.xml @@ -20,7 +20,7 @@ Address
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> diff --git a/addons/im_livechat/controllers/main.py b/addons/im_livechat/controllers/main.py index d2183ef2afa..c80630deff3 100644 --- a/addons/im_livechat/controllers/main.py +++ b/addons/im_livechat/controllers/main.py @@ -12,7 +12,7 @@ class LivechatController(http.Controller): def livechat_lib(self, ext, **kwargs): # _get_asset return the bundle html code (script and link list) but we want to use the attachment content xmlid = 'im_livechat.external_lib' - files, remains = request.registry["ir.qweb"]._get_asset_content(request.cr, request.uid, xmlid, request.context) + files, remains = request.env["ir.qweb"]._get_asset_content(xmlid, options=request.context) asset = AssetsBundle(xmlid, files, remains) mock_attachment = getattr(asset, ext)() diff --git a/addons/l10n_fr/views/report_l10nfrbilan.xml b/addons/l10n_fr/views/report_l10nfrbilan.xml index 5923e6a763f..e35a1ecbf50 100644 --- a/addons/l10n_fr/views/report_l10nfrbilan.xml +++ b/addons/l10n_fr/views/report_l10nfrbilan.xml @@ -33,11 +33,11 @@ Capital souscrit - non appelé - + - + @@ -59,83 +59,83 @@ Frais d'établissement - + - + - + Frais de recherche et de développement - + - + - + Concessions, brevets, licences,..., droits et valeurs similaires - + - + - + Fonds commercial - + - + - + Autres - + - + - + Immobilisations incorporelles en cours - + - + - + Avances et acomptes - + - + @@ -149,71 +149,71 @@ Terrains - + - + - + Constructions - + - + - + Installations techniques,matériel et outillage - + - + - + Autres - + - + - + Immobilisations corporelles en cours - + - + - + Avances et acomptes - + - + @@ -227,73 +227,73 @@ Participations - + - + - + Créances rattachées à des participations - + - + - + Titres immobilisés de l'activité de portefeuille - + - + - + Autres titres immobilisés - + - + - + Prêts - + - + - + Autres - + - + - + @@ -301,13 +301,13 @@ TOTAL I - + - + - + @@ -325,59 +325,59 @@ Matières premières et autres approvisionnements - + - + - + En-cours de production [biens et services] - + - + - + Produits intermédiaires et finis - + - + - + Marchandises - + - + - + Avances et acomptes versés sur commandes - + - + @@ -389,35 +389,35 @@ Créances clients et comptes rattachés - + - + - + Autres - + - + - + Capital souscrit - appelé , non versé - + - + @@ -429,55 +429,55 @@ Actions propres - + - + - + Autres titres - + - + - + Instruments de trésorerie - + - + Disponibilités - + - + Charges constatés d'avance - + - + @@ -485,43 +485,43 @@ TOTAL II - + - + - + Charges à répartir sur plusieurs exercices ( III ) - + - + Primes de remboursement des emprunts ( IV ) - + - + Écarts de conversion actif ( V ) - + - + @@ -529,13 +529,13 @@ TOTAL ACTIF ( I + II + III + IV + V ) - + - + - + @@ -549,19 +549,19 @@ Capital [dont versé...] - + Primes d'émission, de fusion, d'apport - + Écarts de réévaluation - + Écart d'équivalence - + RÉSERVES @@ -569,37 +569,37 @@ Réserve légale - + Réserves statutaires ou contractuelles - + - Réserves réglementées + Réserves réglementées Autres réserves - + Report à nouveau - + RÉSULTAT DE L'EXERCICE [bénéfice ou perte] - + Subventions d'investissement - + Provisions réglementées - + TOTAL I - + PROVISIONS @@ -607,15 +607,15 @@ Provisions pour risques - + Provisions pour charges - + TOTAL II - + DETTES @@ -623,59 +623,59 @@ Emprunts obligataires convertibles - + Autres emprunts obligataires - + Emprunts et dettes auprès des établissements de crédit - + Emprunts et dettes financières diverses - + Avances et acomptes reçus sur commandes en cours - + Dettes fournisseurs et comptes rattachés - + Dettes fiscales et sociales - + Dettes sur immobilisations et comptes rattachés - + Autres dettes - + Instruments de trésorerie - + Produits constatés d'avance - + TOTAL III - + Écarts de conversion passif ( IV ) - + TOTAL GÉNÉRAL (I + II + III + IV) - +   @@ -683,7 +683,7 @@ ACTIF - PASSIF - + diff --git a/addons/l10n_fr/views/report_l10nfrresultat.xml b/addons/l10n_fr/views/report_l10nfrresultat.xml index 0516dd58199..16dbfb81bdf 100644 --- a/addons/l10n_fr/views/report_l10nfrresultat.xml +++ b/addons/l10n_fr/views/report_l10nfrresultat.xml @@ -35,61 +35,61 @@ Achat de marchandises - + Variation des stocks - + Achats de matières premières et autres approvisionnements - + Variation des stocks - + Autres achats et charges externes - + Redevances de crédit-bail mobilier - + Redevances de crédit-bail immobilier - + Impôts, taxes et versements assimilés - + Salaires et traitements - + Charges sociales - + @@ -99,43 +99,43 @@ Sur immobilisations : dotations aux amortissements - + Sur immobilisations : dotations aux dépréciations - + Sur actif circulant : dotations aux dépréciations - + Dotations aux provisions - + Autres charges - + TOTAL I - + Quotes-parts de résultat sur opérations faites en commun ( II ) - + @@ -145,31 +145,31 @@ Dotations aux amortissements, aux dépréciations et aux provisions - + Intérêts et charges assimilées - + Différences négatives de change - + Charges nettes sur cessions de valeurs mobilières de placement - + TOTAL III - + @@ -179,43 +179,43 @@ Sur opérations de gestion - + Sur opérations en capital - + Dotations aux amortissements, aux dépréciations et aux provisions - + TOTAL IV - + Participation des salariĂ©s aux rĂ©sultats ( V ) - + ImpĂ´ts sur les bĂ©nĂ©fices ( VI ) - + TOTAL CHARGES ( I + II + III + IV+ V+ VI ) - + @@ -236,67 +236,67 @@ Vente de marchandises - + Production vendue [biens et services] - + Sous-total A - Montant net du chiffre d'affaires - + Production stockée - + Production immobilisée - + Subventions d'exploitation - + Reprises sur provisions, dépréciations (et amortissements) et transferts de charges - + Autres produits - + Sous-total B - + TOTAL I ( A + B ) - + Quotes-parts de résultat sur opérations faites en commun (II) - + @@ -306,43 +306,43 @@ De participation - + D'autres valeurs mobilières et créances de l'actif immobilisé - + Autres intérêts et produits assimilés - + Reprises sur provisions, dépréciations et transferts de charges - + Différences positives de change - + Produits nets sur cessions de valeurs mobilières de placement - + TOTAL III - + @@ -352,37 +352,37 @@ Sur opérations de gestion - + Sur opérations en capital - + Reprises sur provisions, dépréciations et transferts de charges - + TOTAL IV - + TOTAL DES PRODUITS ( I + II + III + IV ) - + PRODUITS - CHARGES - + diff --git a/addons/l10n_fr_hr_payroll/views/report_l10nfrfichepaye.xml b/addons/l10n_fr_hr_payroll/views/report_l10nfrfichepaye.xml index 3970f0cc290..e4c0b06ba87 100644 --- a/addons/l10n_fr_hr_payroll/views/report_l10nfrfichepaye.xml +++ b/addons/l10n_fr_hr_payroll/views/report_l10nfrfichepaye.xml @@ -17,7 +17,7 @@
SIRET: + t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />SIRET: APE: @@ -25,7 +25,7 @@
+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/> diff --git a/addons/l10n_in_hr_payroll/views/report_payslipdetails.xml b/addons/l10n_in_hr_payroll/views/report_payslipdetails.xml index b35cd67b67b..4356519c564 100644 --- a/addons/l10n_in_hr_payroll/views/report_payslipdetails.xml +++ b/addons/l10n_in_hr_payroll/views/report_payslipdetails.xml @@ -20,7 +20,7 @@ Address
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> diff --git a/addons/lunch/report/lunch_order_templates.xml b/addons/lunch/report/lunch_order_templates.xml index 1b22bb3dd99..8ff36c6920f 100644 --- a/addons/lunch/report/lunch_order_templates.xml +++ b/addons/lunch/report/lunch_order_templates.xml @@ -9,7 +9,7 @@
+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
@@ -51,7 +51,7 @@ + t-options='{"widget": "monetary", "display_currency": user.company_id.currency_id}'/> diff --git a/addons/mrp_repair/report/mrp_repair_templates_repair_order.xml b/addons/mrp_repair/report/mrp_repair_templates_repair_order.xml index 3a12c225066..00e32ef9345 100644 --- a/addons/mrp_repair/report/mrp_repair_templates_repair_order.xml +++ b/addons/mrp_repair/report/mrp_repair_templates_repair_order.xml @@ -14,19 +14,19 @@
Invoice address:
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>

VAT:

Shipping address :
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>

VAT:

+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
@@ -88,7 +88,7 @@ + t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> @@ -112,7 +112,7 @@ + t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> @@ -127,21 +127,21 @@ Total Without Taxes + t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> Taxes + t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> Total + t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> diff --git a/addons/point_of_sale/views/report_statement.xml b/addons/point_of_sale/views/report_statement.xml index cedd7f55309..82fe782d189 100644 --- a/addons/point_of_sale/views/report_statement.xml +++ b/addons/point_of_sale/views/report_statement.xml @@ -34,11 +34,11 @@
Starting Balance:
- +
Ending Balance:
- +
@@ -56,7 +56,7 @@ + t-options='{"widget": "monetary", "display_currency": res_company.currency_id}'/> @@ -67,7 +67,7 @@ - +
Total
diff --git a/addons/purchase/views/report_purchaseorder.xml b/addons/purchase/views/report_purchaseorder.xml index 158c411de1e..ad3896dd19d 100644 --- a/addons/purchase/views/report_purchaseorder.xml +++ b/addons/purchase/views/report_purchaseorder.xml @@ -11,18 +11,18 @@ Shipping address:
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>
+ t-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>

VAT:

@@ -76,7 +76,7 @@ + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> @@ -89,21 +89,21 @@ Total Without Taxes + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> Taxes + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> Total + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> diff --git a/addons/purchase/views/report_purchasequotation.xml b/addons/purchase/views/report_purchasequotation.xml index 104f34527e4..765a108f306 100644 --- a/addons/purchase/views/report_purchasequotation.xml +++ b/addons/purchase/views/report_purchasequotation.xml @@ -12,17 +12,17 @@ Shipping address:
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>
+ t-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>

VAT:

diff --git a/addons/report/models/ir_qweb.py b/addons/report/models/ir_qweb.py index 68e9673d902..3e8dc558c08 100644 --- a/addons/report/models/ir_qweb.py +++ b/addons/report/models/ir_qweb.py @@ -12,7 +12,7 @@ class BarcodeConverter(osv.AbstractModel): _name = 'ir.qweb.field.barcode' _inherit = 'ir.qweb.field' - def value_to_html(self, cr, uid, value, field, options=None, context=None): + def value_to_html(self, cr, uid, value, options, context=None): options = options or {} barcode_type = options.get('type', 'Code128') barcode = self.pool['report'].barcode( diff --git a/addons/report/views/layouts.xml b/addons/report/views/layouts.xml index 39494368b46..f4bebe09cd2 100644 --- a/addons/report/views/layouts.xml +++ b/addons/report/views/layouts.xml @@ -108,7 +108,7 @@
diff --git a/addons/report_intrastat/report/report_intrastat_invoice_template.xml b/addons/report_intrastat/report/report_intrastat_invoice_template.xml index c40c3b8661f..5660ad8f816 100644 --- a/addons/report_intrastat/report/report_intrastat_invoice_template.xml +++ b/addons/report_intrastat/report/report_intrastat_invoice_template.xml @@ -7,7 +7,7 @@
+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
@@ -67,7 +67,7 @@ + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> @@ -79,19 +79,19 @@ Total Without Taxes - + Taxes - + Total - + @@ -112,7 +112,7 @@ + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> diff --git a/addons/sale/views/report_invoice_layouted.xml b/addons/sale/views/report_invoice_layouted.xml index 3f492f8de8e..48094594501 100644 --- a/addons/sale/views/report_invoice_layouted.xml +++ b/addons/sale/views/report_invoice_layouted.xml @@ -49,11 +49,11 @@ + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> + t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> @@ -63,7 +63,7 @@ Subtotal: - + @@ -87,12 +87,12 @@ Invoicing and shipping address: Invoicing address:
+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/> TIN:
Shipping address:
+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/> TIN:
diff --git a/addons/sale/views/report_saleorder.xml b/addons/sale/views/report_saleorder.xml index 5ee5f52117c..1e45bb32385 100644 --- a/addons/sale/views/report_saleorder.xml +++ b/addons/sale/views/report_saleorder.xml @@ -11,18 +11,18 @@ Invoicing and shipping address: Invoicing address:
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>

VAT:

Shipping address:
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>

VAT:

+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
@@ -98,11 +98,11 @@ + t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/> + t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/> @@ -112,7 +112,7 @@ Subtotal: - + @@ -133,7 +133,7 @@ Total Without Taxes + t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/> @@ -148,7 +148,7 @@ Total + t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/> diff --git a/addons/stock/report/report_deliveryslip.xml b/addons/stock/report/report_deliveryslip.xml index fec4e8973af..fe91111ed0d 100644 --- a/addons/stock/report/report_deliveryslip.xml +++ b/addons/stock/report/report_deliveryslip.xml @@ -13,7 +13,7 @@
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True}'/>
diff --git a/addons/stock/report/report_stockpicking_operations.xml b/addons/stock/report/report_stockpicking_operations.xml index bcec910e5f4..bd77df3eaf4 100644 --- a/addons/stock/report/report_stockpicking_operations.xml +++ b/addons/stock/report/report_stockpicking_operations.xml @@ -24,12 +24,12 @@
Delivery Address:
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>
Warehouse Address:
+ t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/>
@@ -44,7 +44,7 @@
+ t-options='{"widget": "contact", "fields": ["name", "phone"], "no_marker": True, "phone_icons": True}'/>

VAT:

diff --git a/addons/web_editor/models/ir_qweb.py b/addons/web_editor/models/ir_qweb.py index 362cdcd8a0b..b1c0a165e44 100644 --- a/addons/web_editor/models/ir_qweb.py +++ b/addons/web_editor/models/ir_qweb.py @@ -31,7 +31,6 @@ from openerp.osv import orm, fields from openerp.tools import ustr, DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT from openerp.tools import html_escape as escape from openerp.addons.base.ir import ir_qweb -from openerp.tools.translate import translate REMOTE_CONNECTION_TIMEOUT = 2.5 @@ -296,7 +295,7 @@ class Image(orm.AbstractModel): _inherit = 'ir.qweb.field.image' @api.model - def record_to_html(self, record, field_name, options, values=None): + def record_to_html(self, record, field_name, options): assert options['tagName'] != 'img',\ "Oddly enough, the root tag of an image field can not be img. " \ "That is because the image goes into the tag, or it gets the " \ diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index fe1439f7dfa..0b1d9bd78af 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -344,7 +344,6 @@ class Website(openerp.addons.web.controllers.main.Home): """ cr, uid, context, pool = request.cr, request.uid, request.context, request.registry view = pool["ir.ui.view"] - qweb = pool["ir.qweb"] context = dict(request.context or {}, active_test=True) @@ -356,7 +355,7 @@ class Website(openerp.addons.web.controllers.main.Home): set_active(enable, True) if get_bundle: - return qweb._get_asset(cr, uid, 'web.assets_frontend', context) + return request.env["ir.qweb"]._get_asset('web.assets_frontend', options=context) return True diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 4091d4cc4d1..fbcbe77aa67 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -904,7 +904,7 @@ Sitemap: sitemap.xml @@ -1065,9 +1065,9 @@ - on + on
@@ -1214,7 +1214,7 @@
- + @@ -1355,10 +1355,10 @@ member since - + last connection - + bio @@ -1374,7 +1374,7 @@ , - + @@ -1443,7 +1443,7 @@
  • - + diff --git a/addons/website_hr_recruitment/views/templates.xml b/addons/website_hr_recruitment/views/templates.xml index 5adf0751c79..09ac1c2f3ad 100644 --- a/addons/website_hr_recruitment/views/templates.xml +++ b/addons/website_hr_recruitment/views/templates.xml @@ -67,7 +67,7 @@ -

    -

    by - @@ -272,7 +272,7 @@ by - diff --git a/addons/website_membership/views/website_membership.xml b/addons/website_membership/views/website_membership.xml index cd34d1214bf..40e84628b2f 100644 --- a/addons/website_membership/views/website_membership.xml +++ b/addons/website_membership/views/website_membership.xml @@ -62,7 +62,7 @@
    diff --git a/addons/website_partner/views/website_partner_templates.xml b/addons/website_partner/views/website_partner_templates.xml index 0bcdc93396d..2d975074dff 100644 --- a/addons/website_partner/views/website_partner_templates.xml +++ b/addons/website_partner/views/website_partner_templates.xml @@ -21,9 +21,9 @@

    -
    +
    -
    diff --git a/addons/website_payment/views/website_payment_templates.xml b/addons/website_payment/views/website_payment_templates.xml index ec22377e7e1..282ac70c3f8 100644 --- a/addons/website_payment/views/website_payment_templates.xml +++ b/addons/website_payment/views/website_payment_templates.xml @@ -104,7 +104,7 @@
    - +
    diff --git a/addons/website_project_issue/views/project_issue_templates.xml b/addons/website_project_issue/views/project_issue_templates.xml index e7e88b05930..a0bdc8338a1 100644 --- a/addons/website_project_issue/views/project_issue_templates.xml +++ b/addons/website_project_issue/views/project_issue_templates.xml @@ -88,19 +88,19 @@
    - Date: + Date:
    Assigned to
    -
    +
    Reported by
    -
    +
    diff --git a/addons/website_project_issue_sheet/views/project_issue_templates.xml b/addons/website_project_issue_sheet/views/project_issue_templates.xml index 4c27cd4b171..b3ff8ec7c4b 100644 --- a/addons/website_project_issue_sheet/views/project_issue_templates.xml +++ b/addons/website_project_issue_sheet/views/project_issue_templates.xml @@ -17,7 +17,7 @@ - + diff --git a/addons/website_quote/views/report_saleorder.xml b/addons/website_quote/views/report_saleorder.xml index 1a2ad2606b5..b0bfcbdb5a1 100644 --- a/addons/website_quote/views/report_saleorder.xml +++ b/addons/website_quote/views/report_saleorder.xml @@ -38,7 +38,7 @@
    diff --git a/addons/website_quote/views/website_quotation.xml b/addons/website_quote/views/website_quotation.xml index 1e7cb4d1ec1..343e737a734 100644 --- a/addons/website_quote/views/website_quotation.xml +++ b/addons/website_quote/views/website_quotation.xml @@ -62,7 +62,7 @@
    @@ -296,7 +296,7 @@ I agree that by signing this proposal, I accept it on the behalf of , for an amount of + t-options='{"widget": "monetary", "display_currency": quotation.pricelist_id.currency_id}'/> with payment terms: .

    @@ -323,7 +323,7 @@ I agree that by paying this proposal, I accept it on the behalf of , for an amount of + t-options='{"widget": "monetary", "display_currency": quotation.pricelist_id.currency_id}'/> with payment terms: .

    @@ -474,7 +474,7 @@
    -
    @@ -483,7 +483,7 @@
    -
    @@ -494,7 +494,7 @@
    -
    @@ -591,7 +591,7 @@
    @@ -703,7 +703,7 @@ Expired - + diff --git a/addons/website_sale/views/report_shop_saleorder.xml b/addons/website_sale/views/report_shop_saleorder.xml index 6c0954f6c20..e6ea9306f0d 100644 --- a/addons/website_sale/views/report_shop_saleorder.xml +++ b/addons/website_sale/views/report_shop_saleorder.xml @@ -35,7 +35,7 @@ + t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/> diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 7234b30e927..ee64dadd3aa 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -76,7 +76,7 @@
    @@ -97,9 +97,9 @@
    - + - + @@ -366,7 +366,7 @@
    - +

    Product Name

    @@ -420,7 +420,7 @@
    -
    +
    @@ -495,16 +495,16 @@

    - +

    @@ -524,7 +524,7 @@ - - +
    @@ -786,10 +786,10 @@ - + - - + + @@ -846,7 +846,7 @@
    - +
    @@ -886,7 +886,7 @@ - + @@ -899,9 +899,9 @@ - + - + @@ -1028,7 +1028,7 @@
    - +