base offer template ready
This commit is contained in:
parent
9fd61e93cd
commit
4ee3411db1
@ -374,6 +374,7 @@ ctx = {
|
|||||||
"amount_untaxed": self.amount_untaxed,
|
"amount_untaxed": self.amount_untaxed,
|
||||||
"amount_tax": self.amount_tax,
|
"amount_tax": self.amount_tax,
|
||||||
"amount_total": self.amount_total,
|
"amount_total": self.amount_total,
|
||||||
|
"currency_symbol": self.currency_id.symbol,
|
||||||
"terms_and_conditions": self.note,
|
"terms_and_conditions": self.note,
|
||||||
|
|
||||||
# "payment_part_one": self.payment_part_one,
|
# "payment_part_one": self.payment_part_one,
|
||||||
@ -595,6 +596,15 @@ action = ctx
|
|||||||
<field name="sequence">4</field>
|
<field name="sequence">4</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<record id="contract_field_currency_symbol" model="res.partner.contract.field">
|
||||||
|
<field name="name">Currency symbol</field>
|
||||||
|
<field name="technical_name">currency_symbol</field>
|
||||||
|
<field name="description">
|
||||||
|
Symbol for used currency, for displaying in documents
|
||||||
|
</field>
|
||||||
|
<field name="sequence">4</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<record id="contract_field_terms_and_conditions" model="res.partner.contract.field">
|
<record id="contract_field_terms_and_conditions" model="res.partner.contract.field">
|
||||||
<field name="name">Terms and conditions</field>
|
<field name="name">Terms and conditions</field>
|
||||||
<field name="technical_name">terms_and_conditions</field>
|
<field name="technical_name">terms_and_conditions</field>
|
||||||
|
@ -229,7 +229,6 @@ class ContractWizard(models.TransientModel):
|
|||||||
or hasattr(self.target, "order_id")
|
or hasattr(self.target, "order_id")
|
||||||
and self.target.order_id.order_line
|
and self.target.order_id.order_line
|
||||||
):
|
):
|
||||||
|
|
||||||
def number_generator(n=1):
|
def number_generator(n=1):
|
||||||
while True:
|
while True:
|
||||||
yield n
|
yield n
|
||||||
@ -245,18 +244,16 @@ class ContractWizard(models.TransientModel):
|
|||||||
{
|
{
|
||||||
"products": [
|
"products": [
|
||||||
{
|
{
|
||||||
"number": next(counter),
|
"number": next(counter) if not item.display_type else "",
|
||||||
"vendor_code": item.product_id.default_code,
|
"vendor_code": item.product_id.default_code or "",
|
||||||
"label": item.product_id.display_name,
|
"label": item.product_id.display_name,
|
||||||
"description": item.name,
|
"description": item.name,
|
||||||
# "uom": item.product_id.uom_po_id.name,
|
|
||||||
"count": item.product_uom_qty,
|
"count": item.product_uom_qty,
|
||||||
"unit": item.product_uom.name,
|
"unit": item.product_uom.name,
|
||||||
"cost": self.to_fixed(item.price_unit),
|
"cost": item.price_unit,
|
||||||
"cost_wo_vat": self.to_fixed(item.price_reduce_taxexcl),
|
"cost_wo_vat": item.price_reduce_taxexcl,
|
||||||
"discount": self.to_fixed(item.discount),
|
"discount": item.discount,
|
||||||
"subtotal": self.to_fixed(item.price_subtotal),
|
"subtotal": item.price_subtotal,
|
||||||
"currency_symbol": item.currency_id.symbol,
|
|
||||||
"display_type": item.display_type,
|
"display_type": item.display_type,
|
||||||
}
|
}
|
||||||
for item in sale_order_rec.order_line or []
|
for item in sale_order_rec.order_line or []
|
||||||
|
BIN
Шаблон_КП.docx
BIN
Шаблон_КП.docx
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user