mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] defaults folio make invoice advance
This commit is contained in:
@@ -13,7 +13,7 @@ class FolioAdvancePaymentInv(models.TransientModel):
|
|||||||
partner_invoice_id = fields.Many2one(
|
partner_invoice_id = fields.Many2one(
|
||||||
string="Billing contact",
|
string="Billing contact",
|
||||||
help="Invoice address for current partner",
|
help="Invoice address for current partner",
|
||||||
default=lambda self: self._default_partner_invoice_id,
|
default=lambda self: self._default_partner_invoice_id(),
|
||||||
comodel_name="res.partner",
|
comodel_name="res.partner",
|
||||||
)
|
)
|
||||||
advance_payment_method = fields.Selection(
|
advance_payment_method = fields.Selection(
|
||||||
@@ -41,17 +41,17 @@ class FolioAdvancePaymentInv(models.TransientModel):
|
|||||||
string="Has down payments",
|
string="Has down payments",
|
||||||
help="Has down payments",
|
help="Has down payments",
|
||||||
readonly=True,
|
readonly=True,
|
||||||
default=lambda self: self._default_has_down_payment,
|
default=lambda self: self._default_has_down_payment(),
|
||||||
)
|
)
|
||||||
product_id = fields.Many2one(
|
product_id = fields.Many2one(
|
||||||
string="Down Payment Product",
|
string="Down Payment Product",
|
||||||
default=lambda self: self._default_product_id,
|
default=lambda self: self._default_product_id(),
|
||||||
comodel_name="product.product",
|
comodel_name="product.product",
|
||||||
domain=[("type", "=", "service")],
|
domain=[("type", "=", "service")],
|
||||||
)
|
)
|
||||||
count = fields.Integer(
|
count = fields.Integer(
|
||||||
string="Order Count",
|
string="Order Count",
|
||||||
default=lambda self: self._count,
|
default=lambda self: self._count(),
|
||||||
)
|
)
|
||||||
amount = fields.Float(
|
amount = fields.Float(
|
||||||
string="Down Payment Amount",
|
string="Down Payment Amount",
|
||||||
@@ -62,7 +62,7 @@ class FolioAdvancePaymentInv(models.TransientModel):
|
|||||||
string="Currency",
|
string="Currency",
|
||||||
help="Currency used in invoices",
|
help="Currency used in invoices",
|
||||||
comodel_name="res.currency",
|
comodel_name="res.currency",
|
||||||
default=lambda self: self._default_currency_id,
|
default=lambda self: self._default_currency_id(),
|
||||||
)
|
)
|
||||||
fixed_amount = fields.Monetary(
|
fixed_amount = fields.Monetary(
|
||||||
string="Down Payment Amount (Fixed)",
|
string="Down Payment Amount (Fixed)",
|
||||||
@@ -71,14 +71,14 @@ class FolioAdvancePaymentInv(models.TransientModel):
|
|||||||
deposit_account_id = fields.Many2one(
|
deposit_account_id = fields.Many2one(
|
||||||
string="Income Account",
|
string="Income Account",
|
||||||
help="Account used for deposits",
|
help="Account used for deposits",
|
||||||
default=lambda self: self._default_deposit_account_id,
|
default=lambda self: self._default_deposit_account_id(),
|
||||||
comodel_name="account.account",
|
comodel_name="account.account",
|
||||||
domain=[("deprecated", "=", False)],
|
domain=[("deprecated", "=", False)],
|
||||||
)
|
)
|
||||||
deposit_taxes_id = fields.Many2many(
|
deposit_taxes_id = fields.Many2many(
|
||||||
string="Customer Taxes",
|
string="Customer Taxes",
|
||||||
help="Taxes used for deposits",
|
help="Taxes used for deposits",
|
||||||
default=lambda self: self._default_deposit_taxes_id,
|
default=lambda self: self._default_deposit_taxes_id(),
|
||||||
comodel_name="account.tax",
|
comodel_name="account.tax",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user