20 lines
		
	
	
		
			732 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			732 B
		
	
	
	
		
			Python
		
	
	
| # Copyright 2016 Akretion (http://www.akretion.com)
 | |
| # @author: Alexis de Lattre <alexis.delattre@akretion.com>
 | |
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
 | |
| 
 | |
| from odoo import models, fields
 | |
| 
 | |
| 
 | |
| class AccountPaymentMethod(models.Model):
 | |
|     _inherit = 'account.payment.method'
 | |
| 
 | |
|     unece_id = fields.Many2one(
 | |
|         'unece.code.list', string='UNECE Payment Mean',
 | |
|         domain=[('type', '=', 'payment_means')], ondelete='restrict',
 | |
|         help="Standard nomenclature of the United Nations Economic "
 | |
|         "Commission for Europe (UNECE) defined in UN/EDIFACT Data "
 | |
|         "Element 4461")
 | |
|     unece_code = fields.Char(
 | |
|         related='unece_id.code', store=True, readonly=True,
 | |
|         string='UNECE Code')
 |