Skip to content

Commit

Permalink
fix create_invoice and sale view
Browse files Browse the repository at this point in the history
  • Loading branch information
LordVan committed May 31, 2023
1 parent 004767b commit 0968062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rm_extra_data/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def _get_invoice_grouping_fields(self, invoice):

def create_invoice(self):
inv = super().create_invoice()
inv.sale_group_name = self.sale_group_name
if inv:
inv.sale_group_name = self.sale_group_name
return inv

@classmethod
Expand Down
1 change: 1 addition & 0 deletions rm_extra_data/view/sale_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<field name="sale_group_name" />
<label name="sale_note" />
<field name="sale_note" />
<newline />
</xpath>
<xpath expr="/form/notebook/page/label[@name='currency']" position="replace" />
<xpath expr="/form/notebook/page/field[@name='currency']" position="replace" />
Expand Down

0 comments on commit 0968062

Please sign in to comment.