Skip to content
Snippets Groups Projects
Commit 2d738f85 authored by RomainLibert's avatar RomainLibert
Browse files

[FIX] product_form: remove hs code and duplicate internal note

The hs code was only used in a single view, hence it was decided that we
wouldn't keep it
parent 3fa2ca07
Branches
Tags
No related merge requests found
......@@ -20,7 +20,6 @@ invoices from picking, the system is able to add and compute the shipping line.
'views/product_packaging_view.xml',
'views/delivery_view.xml',
'views/partner_view.xml',
'views/product_template_view.xml',
'data/delivery_data.xml',
'data/mail_template_data.xml',
'views/report_shipping.xml',
......
......@@ -4,7 +4,6 @@
from . import res_config_settings
from . import delivery_carrier
from . import delivery_grid
from . import product_template
from . import product_packaging
from . import sale_order
from . import partner
......
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class ProductTemplate(models.Model):
_inherit = 'product.template'
hs_code = fields.Char(string="HS Code", help="Standardized code for international shipping and goods declaration")
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="delivery.product_template_hs_code">
<field name="name">product.template.form.hs_code</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='accounting']" position="inside">
<group string="GST" name="gst">
<field name="hs_code"/>
</group>
</xpath>
</field>
</record>
</odoo>
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="l10n_in.product_template_hs_code">
<field name="name">l10n_in.product.template.form.hs_code</field>
<record model="ir.ui.view" id="l10n_in.product_template_hsn_code">
<field name="name">l10n_in.product.template.form.hsn_code</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
......
......@@ -64,11 +64,6 @@
<group string="Internal Notes">
<field name="description" nolabel="1" placeholder="This note is only for internal purposes."/>
</group>
<group name="description_internal">
<group string="Description for Internal" colspan="4">
<field name="description" nolabel="1" placeholder="This note is only for internal purposes."/>
</group>
</group>
</page>
<page string="Sales" attrs="{'invisible':[('sale_ok','=',False)]}" name="sales" invisible="1">
<group name="sale">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment