| Origin |
Operation |
Product |
+ Lot/Serial Number |
Quantity |
Unit Price |
@@ -226,6 +234,9 @@
|
|
|
+ |
diff --git a/rma/views/rma_order_view.xml b/rma/views/rma_order_view.xml
index d5ef1d1a..738ab717 100644
--- a/rma/views/rma_order_view.xml
+++ b/rma/views/rma_order_view.xml
@@ -91,20 +91,29 @@
+
+
-
-
-
+
+
+
+
@@ -115,9 +124,10 @@
/>
-
+
-
-
+
+
-
@@ -146,7 +158,12 @@
'default_partner_id': partner_id,
'hide_title': True}"
>
-
+
@@ -167,6 +184,8 @@
+
+
@@ -192,151 +211,43 @@
rma.order.supplier.form
rma.order
+
+ primary
-
+
+
+
+
+ {
+ 'form_view_ref':'rma.view_rma_line_supplier_form',
+ 'default_rma_id': active_id,
+ 'default_partner_id': partner_id,
+ 'supplier': 1,
+ 'hide_title': True}
+
+
diff --git a/rma/wizards/rma_add_serial.py b/rma/wizards/rma_add_serial.py
index 7a6aafc2..b06c16de 100644
--- a/rma/wizards/rma_add_serial.py
+++ b/rma/wizards/rma_add_serial.py
@@ -102,6 +102,7 @@ class RmaAddSerialWiz(models.TransientModel):
vals = {
"partner_id": self.partner_id.id,
+ "description": self.rma_id.description,
"product_id": lot.product_id.id,
"lot_id": lot.id,
"uom_id": lot.product_id.uom_id.id,
diff --git a/rma/wizards/rma_add_serial_views.xml b/rma/wizards/rma_add_serial_views.xml
index bd03e5a3..186818ba 100644
--- a/rma/wizards/rma_add_serial_views.xml
+++ b/rma/wizards/rma_add_serial_views.xml
@@ -55,6 +55,7 @@
name="%(action_rma_add_serial_wiz_customer)d"
string="Add Lot/Serial Numbers"
type="action"
+ attrs="{'invisible':[('type', '!=', 'customer')]}"
/>
@@ -92,6 +93,7 @@
name="%(action_rma_add_serial_wiz_supplier)d"
string="Add Lot/Serial numbers"
type="action"
+ attrs="{'invisible':[('type', '!=', 'supplier')]}"
/>
diff --git a/rma/wizards/rma_add_stock_move.py b/rma/wizards/rma_add_stock_move.py
index 8638484b..50db2af5 100644
--- a/rma/wizards/rma_add_stock_move.py
+++ b/rma/wizards/rma_add_stock_move.py
@@ -122,6 +122,7 @@ class RmaAddStockMove(models.TransientModel):
)
data = {
"partner_id": self.partner_id.id,
+ "description": self.rma_id.description,
"reference_move_id": sm.id,
"product_id": sm.product_id.id,
"lot_id": lot and lot.id or False,
diff --git a/rma/wizards/rma_add_stock_move_view.xml b/rma/wizards/rma_add_stock_move_view.xml
index 9c4e02a9..bd9d1270 100644
--- a/rma/wizards/rma_add_stock_move_view.xml
+++ b/rma/wizards/rma_add_stock_move_view.xml
@@ -101,6 +101,7 @@
name="%(action_rma_add_stock_move_customer)d"
string="Add From Stock Move"
type="action"
+ attrs="{'invisible':[('type', '!=', 'customer')]}"
/>
@@ -155,6 +156,7 @@
name="%(action_rma_add_stock_move_supplier)d"
string="Add From Stock Move"
type="action"
+ attrs="{'invisible':[('type', '!=', 'supplier')]}"
/>
diff --git a/rma/wizards/rma_order_line_make_supplier_rma.py b/rma/wizards/rma_order_line_make_supplier_rma.py
index ba452230..aa8d2119 100644
--- a/rma/wizards/rma_order_line_make_supplier_rma.py
+++ b/rma/wizards/rma_order_line_make_supplier_rma.py
@@ -113,6 +113,7 @@ class RmaLineMakeSupplierRma(models.TransientModel):
)
data = {
"partner_id": self.partner_id.id,
+ "description": self.supplier_rma_id.description,
"type": "supplier",
"origin": item.line_id.rma_id.name,
"customer_address_id": item.line_id.delivery_address_id.id
diff --git a/rma_account/views/rma_order_view.xml b/rma_account/views/rma_order_view.xml
index bed185d5..883ad6c0 100644
--- a/rma_account/views/rma_order_view.xml
+++ b/rma_account/views/rma_order_view.xml
@@ -35,45 +35,4 @@
-
- rma.order.supplier.form
- rma.order
-
-
-
-
-
-
diff --git a/rma_purchase/wizards/rma_add_purchase.py b/rma_purchase/wizards/rma_add_purchase.py
index 018e6012..26aed30a 100644
--- a/rma_purchase/wizards/rma_add_purchase.py
+++ b/rma_purchase/wizards/rma_add_purchase.py
@@ -78,6 +78,7 @@ class RmaAddPurchase(models.TransientModel):
)
data = {
"partner_id": self.partner_id.id,
+ "description": self.rma_id.description,
"purchase_order_line_id": line.id,
"product_id": line.product_id.id,
"origin": line.order_id.name,
diff --git a/rma_repair/views/rma_order_view.xml b/rma_repair/views/rma_order_view.xml
index 3ea2a0fe..f3547211 100644
--- a/rma_repair/views/rma_order_view.xml
+++ b/rma_repair/views/rma_order_view.xml
@@ -13,6 +13,7 @@
class="oe_stat_button"
icon="fa-wrench"
groups="stock.group_stock_user"
+ attrs="{'invisible':[('type', '!=', 'customer')]}"
>
diff --git a/rma_sale/wizards/rma_add_sale.py b/rma_sale/wizards/rma_add_sale.py
index 44700e4e..c4810f1f 100644
--- a/rma_sale/wizards/rma_add_sale.py
+++ b/rma_sale/wizards/rma_add_sale.py
@@ -123,6 +123,7 @@ class RmaAddSale(models.TransientModel):
)
data = {
"partner_id": self.partner_id.id,
+ "description": self.rma_id.description,
"sale_line_id": line.id,
"product_id": line.product_id.id,
"lot_id": lot and lot.id or False,
diff --git a/rma_sale/wizards/rma_add_sale.xml b/rma_sale/wizards/rma_add_sale.xml
index 75fbe70c..0e823ec0 100644
--- a/rma_sale/wizards/rma_add_sale.xml
+++ b/rma_sale/wizards/rma_add_sale.xml
@@ -114,6 +114,7 @@
name="%(action_rma_add_sale)d"
string="Add From Sale Order"
type="action"
+ attrs="{'invisible':[('type', '!=', 'customer')]}"
/>
|