Browse Source
			
			
			Merge pull request #94 from Byloth/fix/discount-digits
			
				[FIX] Fix attribute "digits" on "discount" fields.
			
			
				pull/104/head
			
			
		 
		
			
				
					
						
						Cybrosys Technologies
					
					7 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
3 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					sale_discount_total/views/account_invoice_view.xml
				
 
			
				- 
					
					
					 
					sale_discount_total/views/sale_view.xml
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -8,7 +8,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <field name="inherit_id" ref="account.invoice_form"/> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <field name="arch" type="xml"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <xpath expr="//field[@name='discount']" position="attributes"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <attribute name="digits">(16, 2)</attribute> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <attribute name="digits">[16, 2]</attribute> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </xpath> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <xpath expr="//field[@name='amount_untaxed']" position="after"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        <field name="amount_discount"/> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -32,7 +32,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <field name="inherit_id" ref="account.view_invoice_line_tree"/> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <field name="arch" type="xml"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <xpath expr="//field[@name='discount']" position="attributes"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <attribute name="digits">(16, 2)</attribute> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <attribute name="digits">[16, 2]</attribute> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </xpath> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </field> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </record> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -15,7 +15,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     <attribute name ="states">draft,sent,sale,waiting</attribute> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </xpath> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <!--<xpath expr="//tree/field[@name='discount']" position="replace">--> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <!--<field name="discount" class="oe_inline" digits="(16, 2)"/> %%--> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <!--<field name="discount" class="oe_inline" digits="[16, 2]"/> %%--> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <!--</xpath>--> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <xpath expr="//group[@name='sale_total']" position="replace"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <group col="4"> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |