Skip to content
Browse files

[FIX] account: do not copy alias

When duplicating a journal, the alias is kept. Therefore, when the user
tries to change it, it updates the value on both records.

  • Loading branch information...
nim-odoo committed Feb 19, 2019
1 parent d12c993 commit b736263f546d84d41b6651421c2eaef1f33bd8f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account/models/
@@ -481,7 +481,7 @@ def _get_bank_statements_available_sources(self):
post_at_bank_rec = fields.Boolean(string="Post At Bank Reconciliation", help="Whether or not the payments made in this journal should be generated in draft state, so that the related journal entries are only posted when performing bank reconciliation.")

# alias configuration for 'purchase' type journals
alias_id = fields.Many2one('mail.alias', string='Alias')
alias_id = fields.Many2one('mail.alias', string='Alias', copy=False)
alias_domain = fields.Char('Alias domain', compute='_compute_alias_domain', default=lambda self: self.env["ir.config_parameter"].sudo().get_param("mail.catchall.domain"))
alias_name = fields.Char('Alias Name for Vendor Bills', related='alias_id.alias_name', help="It creates draft vendor bill by sending an email.", readonly=False)

0 comments on commit b736263

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.