[MERGE] forward port branch saas-14 up to 637e4c68fc
This commit is contained in:
@@ -60,8 +60,8 @@ class MailTracking(models.Model):
|
||||
values.update({
|
||||
'old_value_integer': initial_value and initial_value.id or 0,
|
||||
'new_value_integer': new_value and new_value.id or 0,
|
||||
'old_value_char': initial_value and initial_value.name_get()[0][1] or '',
|
||||
'new_value_char': new_value and new_value.name_get()[0][1] or ''
|
||||
'old_value_char': initial_value and initial_value.sudo().name_get()[0][1] or '',
|
||||
'new_value_char': new_value and new_value.sudo().name_get()[0][1] or ''
|
||||
})
|
||||
else:
|
||||
tracked = False
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
</template>
|
||||
|
||||
<template id="message_user_assigned">
|
||||
<p>Dear <t t-esc="object.user_id.name"/>,</p>
|
||||
<p>Dear <t t-esc="object.user_id.sudo().name"/>,</p>
|
||||
<p>You have been assigned to the <t t-esc="object._description.lower()"/> <t t-esc="object.name_get()[0][1]"/>.</p>
|
||||
<p>
|
||||
<a t-att-href="'/mail/view?model=%s&res_id=%s' % (object._name, object.id)"
|
||||
|
||||
@@ -118,10 +118,13 @@ class StockQuant(models.Model):
|
||||
else:
|
||||
self.with_context(force_company=company_from.id)._create_account_move_line(move, acc_valuation, acc_dest, journal_id)
|
||||
|
||||
if move.company_id.anglo_saxon_accounting and move.location_id.usage == 'supplier' and move.location_dest_id.usage == 'customer':
|
||||
if move.company_id.anglo_saxon_accounting:
|
||||
# Creates an account entry from stock_input to stock_output on a dropship move. https://github.com/odoo/odoo/issues/12687
|
||||
journal_id, acc_src, acc_dest, acc_valuation = move._get_accounting_data_for_valuation()
|
||||
self.with_context(force_company=move.company_id.id)._create_account_move_line(move, acc_src, acc_dest, journal_id)
|
||||
if move.location_id.usage == 'supplier' and move.location_dest_id.usage == 'customer':
|
||||
self.with_context(force_company=move.company_id.id)._create_account_move_line(move, acc_src, acc_dest, journal_id)
|
||||
if move.location_id.usage == 'customer' and move.location_dest_id.usage == 'supplier':
|
||||
self.with_context(force_company=move.company_id.id)._create_account_move_line(move, acc_dest, acc_src, journal_id)
|
||||
|
||||
def _create_account_move_line(self, move, credit_account_id, debit_account_id, journal_id):
|
||||
# group quants by cost
|
||||
|
||||
@@ -1708,7 +1708,7 @@
|
||||
<field file="base/static/img/country_flags/vn.png" name="image" type="base64" />
|
||||
<field name="currency_id" ref="VND" />
|
||||
<field eval="84" name="phone_code" />
|
||||
<field eval="'%(street)s\n%(street2)s\n%(city)s\n%(name)s %(zip)s %(country_name)s'" name="address_format" />
|
||||
<field eval="'%(street)s\n%(street2)s\n%(city)s\n%(state_name)s %(country_name)s'" name="address_format" />
|
||||
</record>
|
||||
<record id="vu" model="res.country">
|
||||
<field name="name">Vanuatu</field>
|
||||
|
||||
Reference in New Issue
Block a user