[IMP] rma_delivery: black, isort, prettier

This commit is contained in:
nikolausweingartmair
2022-12-19 12:53:12 +01:00
parent 434a0a76a8
commit 662c41b499
5 changed files with 15 additions and 4 deletions

View File

@@ -17,5 +17,6 @@ class Company(models.Model):
default="mixed_method", default="mixed_method",
) )
rma_fixed_delivery_method = fields.Many2one( rma_fixed_delivery_method = fields.Many2one(
comodel_name="delivery.carrier", string="Default RMA delivery method", comodel_name="delivery.carrier",
string="Default RMA delivery method",
) )

View File

@@ -7,8 +7,10 @@ class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings" _inherit = "res.config.settings"
rma_delivery_strategy = fields.Selection( 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( rma_fixed_delivery_method = fields.Many2one(
related="company_id.rma_fixed_delivery_method", readonly=False, related="company_id.rma_fixed_delivery_method",
readonly=False,
) )

View File

@@ -35,7 +35,8 @@ class TestRmaDelivery(TestRma):
"""Helper to return the rma""" """Helper to return the rma"""
delivery_form = Form( delivery_form = Form(
self.env["rma.delivery.wizard"].with_context( 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": if delivery_type == "replace":

View File

@@ -0,0 +1 @@
../../../../rma_delivery

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)