diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index 638b0e1fc1e..adfa6538c95 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -98,7 +98,8 @@ class AccountInvoiceRefund(models.TransientModel): 'invoice_line_ids': invoice_lines, 'tax_line_ids': tax_lines, 'date': date, - 'name': description + 'name': description, + 'origin': inv.origin }) for field in ('partner_id', 'account_id', 'currency_id', 'payment_term_id', 'journal_id'): diff --git a/addons/base_import/static/src/xml/import.xml b/addons/base_import/static/src/xml/import.xml index f173263e187..b67aba5c027 100644 --- a/addons/base_import/static/src/xml/import.xml +++ b/addons/base_import/static/src/xml/import.xml @@ -413,8 +413,8 @@ - - diff --git a/addons/l10n_lu/scripts/tax.xls b/addons/l10n_lu/scripts/tax.xls index a807833848f..0a3a0182728 100644 Binary files a/addons/l10n_lu/scripts/tax.xls and b/addons/l10n_lu/scripts/tax.xls differ diff --git a/addons/product_extended/product_extended_view.xml b/addons/product_extended/product_extended_view.xml index 1428d2e7293..f9b6a85bc6e 100644 --- a/addons/product_extended/product_extended_view.xml +++ b/addons/product_extended/product_extended_view.xml @@ -6,6 +6,7 @@ product.template 3 +
- diff --git a/doc/cla/individual/Wizr.md b/doc/cla/individual/Wizr.md new file mode 100644 index 00000000000..b99881db1a7 --- /dev/null +++ b/doc/cla/individual/Wizr.md @@ -0,0 +1,11 @@ +China, 2016-04-29 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Xudong Yang fanderous@gmail.com https://github.com/Wizr diff --git a/doc/cla/individual/lbelorgey.md b/doc/cla/individual/lbelorgey.md new file mode 100644 index 00000000000..6cdacb5cdf1 --- /dev/null +++ b/doc/cla/individual/lbelorgey.md @@ -0,0 +1,11 @@ +France, 2015-10-30 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Laurent Bélorgey lb@lalieutenante.com https://github.com/lbelorgey \ No newline at end of file diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst index fa986038bb6..8b7b9c1a4ad 100644 --- a/doc/reference/orm.rst +++ b/doc/reference/orm.rst @@ -309,9 +309,9 @@ Default values are defined as parameters on fields, either a value:: or a function called to compute the default value, which should return that value:: - a_field = fields.Char(default=compute_default_value) def compute_default_value(self): return self.get_value() + a_field = fields.Char(default=compute_default_value) Computed fields --------------- diff --git a/openerp/addons/base/res/res_partner.py b/openerp/addons/base/res/res_partner.py index bb818375065..2a7885fea12 100644 --- a/openerp/addons/base/res/res_partner.py +++ b/openerp/addons/base/res/res_partner.py @@ -577,12 +577,11 @@ class res_partner(osv.Model, format_address): if isinstance(ids, (int, long)): ids = [ids] res = [] - types_dict = dict(self.fields_get(cr, uid, context=context)['type']['selection']) for record in self.browse(cr, uid, ids, context=context): name = record.name or '' if record.parent_id and not record.is_company: if not name and record.type in ['invoice', 'delivery', 'other']: - name = types_dict[record.type] + name = dict(self.fields_get(cr, uid, ['type'], context=context)['type']['selection'])[record.type] name = "%s, %s" % (record.parent_name, name) if context.get('show_address_only'): name = self._display_address(cr, uid, record, without_company=True, context=context)