3 Commits

Author SHA1 Message Date
6ad6f9965b move register from __init__ to tryton.cfg 2026-07-02 19:21:02 -05:00
f4b99e0ea9 Update version to 8.0.0 2026-07-02 17:14:33 -05:00
e130ae7f9d chore 2026-01-05 21:09:03 -05:00
3 changed files with 35 additions and 43 deletions

View File

@@ -1,39 +0,0 @@
# This file is part of the sale_payment 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 . import device
from . import sale
from . import statement
from . import user
from . import configuration_statement
def register():
Pool.register(
statement.Journal,
statement.Statement,
statement.Line,
statement.StatementLine,
statement.LinesInvoiceToPay,
device.SaleDevice,
user.User,
device.SaleDeviceStatementJournal,
sale.Sale,
sale.SalePaymentForm,
sale.ChangePaymentMethodForm,
statement.OpenStatementStart,
statement.OpenStatementDone,
statement.CloseStatementStart,
statement.CloseStatementDone,
statement.PayInvoiceSupplierStart,
configuration_statement.Configuration,
module='sale_payment', type_='model')
Pool.register(
sale.WizardSalePayment,
sale.ChangePaymentMethod,
sale.WizardSaleReconcile,
statement.OpenStatement,
statement.CloseStatement,
statement.PayInvoiceSupplier,
module='sale_payment', type_='wizard')

View File

@@ -40,8 +40,11 @@ class Sale(metaclass=PoolMeta):
super(Sale, cls).__setup__() super(Sale, cls).__setup__()
cls._buttons.update({ cls._buttons.update({
'wizard_sale_payment': { 'wizard_sale_payment': {
'invisible': Eval('state') == 'done', 'invisible': (Eval('state') == 'done') | (Eval(
'readonly': Not(Bool(Eval('lines'))), 'residual_amount', 0) == 0),
'readonly': Not(Bool(Eval('lines'))) | (Eval(
'residual_amount', 0) == 0),
'depends': ['state', 'residual_amount']
}, },
'wizard_change_payment_method': {}, 'wizard_change_payment_method': {},
}) })

View File

@@ -1,5 +1,5 @@
[tryton] [tryton]
version=7.6.0 version=8.0.0
depends: depends:
account_statement account_statement
sale_shop sale_shop
@@ -9,3 +9,31 @@ xml:
sale.xml sale.xml
user.xml user.xml
message.xml message.xml
[register]
model:
statement.Journal
statement.Statement
statement.Line
statement.StatementLine
statement.LinesInvoiceToPay
device.SaleDevice
user.User
device.SaleDeviceStatementJournal
sale.Sale
sale.SalePaymentForm
sale.ChangePaymentMethodForm
statement.OpenStatementStart
statement.OpenStatementDone
statement.CloseStatementStart
statement.CloseStatementDone
statement.PayInvoiceSupplierStart
configuration_statement.Configuration
wizards:
sale.WizardSalePayment
sale.ChangePaymentMethod
sale.WizardSaleReconcile
statement.OpenStatement
statement.CloseStatement
statement.PayInvoiceSupplier