correct misspelling
							parent
							
								
									069d3c7a80
								
							
						
					
					
						commit
						78147e591c
					
				|  | @ -6,11 +6,11 @@ from odoo.exceptions import UserError | |||
| class Invoice(models.Model): | ||||
|     _inherit = "account.invoice" | ||||
| 
 | ||||
|     global_discount = fields.Boolean("Add Global Disocunt", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     global_discount = fields.Boolean("Add Global Discount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_type = fields.Selection([('fixed','Fixed'),('percentage','Percentage')],  | ||||
|         "Disocunt Type", readonly=True, states={'draft': [('readonly', False)]}, default='fixed') | ||||
|     discount_amount = fields.Float("Disocunt Amount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_percentage = fields.Float("Disocunt Percentage", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|         "Discount Type", readonly=True, states={'draft': [('readonly', False)]}, default='fixed') | ||||
|     discount_amount = fields.Float("Discount Amount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_percentage = fields.Float("Discount Percentage", readonly=True, states={'draft': [('readonly', False)]},) | ||||
| 
 | ||||
|     @api.multi | ||||
|     def _discount_unset(self): | ||||
|  |  | |||
|  | @ -6,11 +6,11 @@ from odoo.exceptions import UserError | |||
| class PurchaseOrder(models.Model): | ||||
|     _inherit = "purchase.order" | ||||
| 
 | ||||
|     global_discount = fields.Boolean("Add Global Disocunt", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     global_discount = fields.Boolean("Add Global Discount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_type = fields.Selection([('fixed','Fixed'),('percentage','Percentage')],  | ||||
|         "Disocunt Type", readonly=True, states={'draft': [('readonly', False)]}, default='fixed') | ||||
|     discount_amount = fields.Float("Disocunt Amount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_percentage = fields.Float("Disocunt Percentage", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|         "Discount Type", readonly=True, states={'draft': [('readonly', False)]}, default='fixed') | ||||
|     discount_amount = fields.Float("Discount Amount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_percentage = fields.Float("Discount Percentage", readonly=True, states={'draft': [('readonly', False)]},) | ||||
| 
 | ||||
|     @api.multi | ||||
|     def _discount_unset(self): | ||||
|  |  | |||
|  | @ -6,11 +6,11 @@ from odoo.exceptions import UserError | |||
| class SaleOrder(models.Model): | ||||
|     _inherit = "sale.order" | ||||
| 
 | ||||
|     global_discount = fields.Boolean("Add Global Disocunt", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     global_discount = fields.Boolean("Add Global Discount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_type = fields.Selection([('fixed','Fixed'),('percentage','Percentage')],  | ||||
|         "Disocunt Type", readonly=True, states={'draft': [('readonly', False)]}, default='fixed') | ||||
|     discount_amount = fields.Float("Disocunt Amount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_percentage = fields.Float("Disocunt Percentage", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|         "Discount Type", readonly=True, states={'draft': [('readonly', False)]}, default='fixed') | ||||
|     discount_amount = fields.Float("Discount Amount", readonly=True, states={'draft': [('readonly', False)]},) | ||||
|     discount_percentage = fields.Float("Discount Percentage", readonly=True, states={'draft': [('readonly', False)]},) | ||||
| 
 | ||||
|     @api.multi | ||||
|     def _discount_unset(self): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue