Skip to content

Commit

Permalink
feat: allow setting a default e-invoice profile per Customer
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Jan 24, 2025
1 parent dfa4a7f commit 345726a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions eu_einvoice/custom_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ def get_custom_fields():
"insert_after": "language",
"fieldtype": "Data",
},
{
"fieldname": "einvoice_profile",
"label": _("E Invoice Profile"),
"insert_after": "buyer_reference",
"fieldtype": "Select",
"options": PROFILE_OPTIONS,
"default": "EXTENDED",
},
],
"Sales Order": [
{
Expand Down Expand Up @@ -63,6 +71,8 @@ def get_custom_fields():
"insert_after": "e_invoice_validation_section",
"fieldtype": "Select",
"options": PROFILE_OPTIONS,
"fetch_from": "customer.einvoice_profile",
"fetch_if_empty": 1,
"print_hide": 1,
},
{
Expand Down

0 comments on commit 345726a

Please sign in to comment.