mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[IMP] rma_delivery: black, isort, prettier
This commit is contained in:
@@ -17,5 +17,6 @@ class Company(models.Model):
|
||||
default="mixed_method",
|
||||
)
|
||||
rma_fixed_delivery_method = fields.Many2one(
|
||||
comodel_name="delivery.carrier", string="Default RMA delivery method",
|
||||
comodel_name="delivery.carrier",
|
||||
string="Default RMA delivery method",
|
||||
)
|
||||
|
||||
@@ -7,8 +7,10 @@ class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
rma_delivery_strategy = fields.Selection(
|
||||
related="company_id.rma_delivery_strategy", readonly=False,
|
||||
related="company_id.rma_delivery_strategy",
|
||||
readonly=False,
|
||||
)
|
||||
rma_fixed_delivery_method = fields.Many2one(
|
||||
related="company_id.rma_fixed_delivery_method", readonly=False,
|
||||
related="company_id.rma_fixed_delivery_method",
|
||||
readonly=False,
|
||||
)
|
||||
|
||||
@@ -35,7 +35,8 @@ class TestRmaDelivery(TestRma):
|
||||
"""Helper to return the rma"""
|
||||
delivery_form = Form(
|
||||
self.env["rma.delivery.wizard"].with_context(
|
||||
active_ids=rma.ids, rma_delivery_type=delivery_type,
|
||||
active_ids=rma.ids,
|
||||
rma_delivery_type=delivery_type,
|
||||
)
|
||||
)
|
||||
if delivery_type == "replace":
|
||||
|
||||
Reference in New Issue
Block a user