[MIG] delivery_partner_ups: to 17.0

This commit is contained in:
Salomon Chambi
2023-11-03 20:37:43 +00:00
parent 90ab575d26
commit dd2c57a9b3
2 changed files with 10 additions and 3 deletions

View File

@@ -1,12 +1,17 @@
{ {
'name': 'UPS Partner Shipping Accounts', 'name': 'UPS Partner Shipping Accounts',
'author': 'Hibou Corp. <hello@hibou.io>', 'author': 'Hibou Corp.',
'version': '16.0.1.0.0', 'version': '17.0.1.0.0',
'license': 'LGPL-3', 'license': 'LGPL-3',
'category': 'Stock', 'category': 'Stock',
'sequence': 95, 'sequence': 95,
'summary': 'UPS Partner Shipping Accounts', 'summary': 'UPS Partner Shipping Accounts',
'description': """ 'description': """
UPS Partner Shipping Accounts
=============================
This module adds UPS to the delivery type selection dropdown on the Partner Shipping Account model.
Additionally, it adds a new required field UPS Account ZIP, as well as validation of entered UPS account number.
""", """,
'website': 'https://hibou.io/', 'website': 'https://hibou.io/',
'depends': [ 'depends': [

View File

@@ -6,7 +6,9 @@
<field name="inherit_id" ref="delivery_partner.partner_shipping_account_view_form"/> <field name="inherit_id" ref="delivery_partner.partner_shipping_account_view_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//group[@name='carrier']" position="inside"> <xpath expr="//group[@name='carrier']" position="inside">
<field name="ups_zip" attrs="{'invisible': [('delivery_type', '!=', 'ups')], 'required': [('delivery_type', '=', 'ups')]}"/> <field name="ups_zip"
invisible="not delivery_type == 'ups'"
required= "delivery_type == 'ups'"/>
</xpath> </xpath>
</field> </field>
</record> </record>