mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[ENH]activate description also fro customer RMAs
[ENH]add term and conditions field to be printed and send to the partner [FIX]do not show rma groups on the rma line form view if they are not activated
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
'name': 'RMA (Return Merchandise Authorization)',
|
||||
'version': '12.0.2.2.0',
|
||||
'version': '12.0.2.3.0',
|
||||
'license': 'LGPL-3',
|
||||
'category': 'RMA',
|
||||
'summary': 'Introduces the return merchandise authorization (RMA) process '
|
||||
|
||||
@@ -183,6 +183,7 @@ class RmaOrderLine(models.Model):
|
||||
' assigned.', copy=False
|
||||
)
|
||||
description = fields.Text(string='Description')
|
||||
conditions = fields.Html(string='Terms and conditions')
|
||||
origin = fields.Char(
|
||||
string='Source Document',
|
||||
readonly=True, states={'draft': [('readonly', False)]},
|
||||
|
||||
@@ -80,10 +80,14 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div t-if="doc.type=='supplier' and doc.description">
|
||||
<div t-if="doc.description">
|
||||
<strong><p>Description</p></strong>
|
||||
<span t-field="doc.description"></span>
|
||||
</div>
|
||||
<div t-if="doc.conditions">
|
||||
<strong><p>Term and conditions</p></strong>
|
||||
<span t-field="doc.conditions"></span>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<field name="partner_id"/>
|
||||
<field name="product_id"/>
|
||||
<field name="lot_id" groups="stock.group_production_lot"/>
|
||||
<field name="rma_id"/>
|
||||
<field name="rma_id" groups="rma.group_rma_groups"/>
|
||||
<field name="origin"/>
|
||||
<field name="operation_id"/>
|
||||
<field name="supplier_address_id"/>
|
||||
@@ -33,7 +33,7 @@
|
||||
<field name="partner_id"/>
|
||||
<field name="product_id"/>
|
||||
<field name="lot_id" groups="stock.group_production_lot"/>
|
||||
<field name="rma_id"/>
|
||||
<field name="rma_id" groups="rma.group_rma_groups"/>
|
||||
<field name="origin"/>
|
||||
<field name="operation_id" domain="[('type','=','supplier')]"/>
|
||||
<field name="uom_id" groups="uom.group_uom"/>
|
||||
@@ -188,7 +188,8 @@
|
||||
</page>
|
||||
<page name="other" string="Other Info">
|
||||
<group name="general" string="General">
|
||||
<field name="rma_id"/>
|
||||
<field name="conditions"/>
|
||||
<field name="rma_id" groups="rma.group_rma_groups"/>
|
||||
<field name="origin"/>
|
||||
|
||||
</group>
|
||||
@@ -309,6 +310,9 @@
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page name="description" string="Description">
|
||||
<field name="description" nolabel="1"/>
|
||||
</page>
|
||||
<page name="route" string="Routes">
|
||||
<group name="inbound" string="Inbound">
|
||||
<field name="in_warehouse_id"/>
|
||||
@@ -357,7 +361,8 @@
|
||||
</page>
|
||||
<page name="other" string="Other Info">
|
||||
<group name="general" string="General">
|
||||
<field name="rma_id"/>
|
||||
<field name="conditions"/>
|
||||
<field name="rma_id" groups="rma.group_rma_groups"/>
|
||||
<field name="origin"/>
|
||||
</group>
|
||||
<group name="company" string="Company"
|
||||
@@ -381,7 +386,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search RMA line">
|
||||
<field name="name"/>
|
||||
<field name="rma_id"/>
|
||||
<field name="rma_id" groups="rma.group_rma_groups"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="requested_by"/>
|
||||
<field name="assigned_to"/>
|
||||
|
||||
Reference in New Issue
Block a user