1
0
Fork 0
mirror of synced 2023-12-13 21:20:09 +01:00

Fix style

This commit is contained in:
C?dric Krier 2018-01-23 13:26:59 +01:00
parent 927a00e7b5
commit 1ad9c9698a
2 changed files with 14 additions and 13 deletions

View file

@ -1,13 +1,14 @@
#This file is part of sale_payment_type module for Tryton.
#The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms.
# This file is part of sale_payment_type module for Tryton. The COPYRIGHT file
# at the top level of this repository contains the full copyright notices and
# license terms.
from trytond.pool import Pool
from .sale import *
from . import sale
def register():
Pool.register(
PaymentType,
Sale,
Opportunity,
sale.PaymentType,
sale.Sale,
sale.Opportunity,
module='sale_payment_type', type_='model')

12
sale.py
View file

@ -1,6 +1,6 @@
#This file is part of sale_payment_type module for Tryton.
#The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms.
# This file is part of sale_payment_type module for Tryton. The COPYRIGHT file
# at the top level of this repository contains the full copyright notices and
# license terms.
from decimal import Decimal
from trytond.model import fields
from trytond.pool import Pool, PoolMeta
@ -51,9 +51,9 @@ class Sale:
def _get_grouped_invoice_domain(self, invoice):
invoice_domain = super(Sale, self)._get_grouped_invoice_domain(invoice)
# know about the invoice is payable or receivable payment type (untaxed amount)
# _get_grouped_invoice_domain not return an invoice with lines and untaxed
# amount; we need to recompute those values
# know about the invoice is payable or receivable payment type (untaxed
# amount) _get_grouped_invoice_domain not return an invoice with lines
# and untaxed amount; we need to recompute those values
if not hasattr(invoice, 'untaxed_amount'):
invoice.untaxed_amount = self.untaxed_amount