ForgeFlow / stock-rma

Stock RMA
GNU Affero General Public License v3.0
38 stars 41 forks source link

rma: AttributeError issue from create supplier rma button #511

Open probusedevp opened 5 months ago

probusedevp commented 5 months ago

When Create Supplier RMA from Wizard threw getting traceback like : AttributeError: 'rma.order.line.make.supplier.rma' object has no attribute 'rma_id'

For Solution as Suggestion:

rma/wizards/rma_order_line_make_supplier_rma.py File in _prepare_supplier_rma_line method (https://github.com/ForgeFlow/stock-rma/blob/16.0/rma/wizards/rma_order_line_make_supplier_rma.py#L105)

Solution : ("company_id", "=", self.rma_id.company_id.id), to ("company_id", "=", self.supplier_rma_id.company_id.id),

luke-stdev001 commented 4 months ago

@max3903 ,

This is also one of our devs above who encountered another small issue we wanted to report upstream.

max3903 commented 4 months ago

@JordiBForgeFlow Can you or your team look at this?