mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] delivery_partner_ups: to 17.0
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
{
|
||||
'name': 'UPS Partner Shipping Accounts',
|
||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||
'version': '16.0.1.0.0',
|
||||
'author': 'Hibou Corp.',
|
||||
'version': '17.0.1.0.0',
|
||||
'license': 'LGPL-3',
|
||||
'category': 'Stock',
|
||||
'sequence': 95,
|
||||
'summary': 'UPS Partner Shipping Accounts',
|
||||
'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/',
|
||||
'depends': [
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
<field name="inherit_id" ref="delivery_partner.partner_shipping_account_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<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>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user